Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add authentication cell to MEASURES--> google bucket NB #29

Open
jkingslake opened this issue Apr 17, 2024 · 0 comments
Open

add authentication cell to MEASURES--> google bucket NB #29

jkingslake opened this issue Apr 17, 2024 · 0 comments

Comments

@jkingslake
Copy link
Member

Add the following code to the notebook which shows how to download measures data and upload to the bucket, and check that it works etc.

import earthaccess
from earthaccess import Auth, Store, DataCollections, DataGranules
auth = Auth()
#auth.login(strategy="interactive", persist=True)   # if the code below fails it is probably because you haven't got credentials saved in a netrc file yet. Run this commented line to login and create a netrc file.
auth.login(strategy="netrc")
print(auth.authenticated)

downloading

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant