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

The parameter of earthaccess.login() #73

Open
zygym opened this issue Jun 4, 2024 · 1 comment
Open

The parameter of earthaccess.login() #73

zygym opened this issue Jun 4, 2024 · 1 comment

Comments

@zygym
Copy link

zygym commented Jun 4, 2024

Hey, I When I run Jupyter, I enter my username and password interactively to log in (earthaccess.login(strategy='interactive', persist=True)). Now I want to run it in a local script, how can I set a non-interactive login method in earthaccess.login()?

@mfisher87
Copy link
Member

Hey @zygym , we offer 3 authentication strategies, and by default we'll try them all until we find one that works. For a script, try the "netrc" or "environment" strategy!

https://earthaccess.readthedocs.io/en/latest/user-reference/api/api/#earthaccess.api.login

We also have a discussion space for earthaccess where you can request additional support from our community: https://github.com/nsidc/earthaccess/discussions

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

2 participants