Skip to content

NPI-4495 Earthdata creds via env var#114

Merged
treefern merged 1 commit intomainfrom
NPI-4495-allow-loading-earthdata-creds-from-env-var
Mar 11, 2026
Merged

NPI-4495 Earthdata creds via env var#114
treefern merged 1 commit intomainfrom
NPI-4495-allow-loading-earthdata-creds-from-env-var

Conversation

@treefern
Copy link
Collaborator

@treefern treefern commented Mar 6, 2026

A NASA Earthdata account is required for some file downloads.
This PR adds an additional option to the credential fetching function for this, allowing creds to be provided via env vars.

@treefern treefern requested a review from ronaldmaj March 6, 2026 07:45
@treefern treefern self-assigned this Mar 6, 2026
Copy link
Collaborator

@ronaldmaj ronaldmaj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good - allows this to search for environment variables that assign the EarthData credentials.
Tested this locally and works as expected picking up the environment variables.

This also means that environment variables override any .netrc present in home directory

@treefern treefern merged commit f1f0959 into main Mar 11, 2026
4 checks passed
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

Successfully merging this pull request may close these issues.

2 participants