Earthdata

Latest version: v0.4.2

Safety actively analyzes 693883 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 2 of 2

0.4.0

earthdata can now persist user's credentials into a `.netrc` file

python
from earthdata import Auth, DataCollections, DataGranules, Store

auth = Auth().login(strategy="netrc")
are we authenticated?
if not auth.authenticated:
ask for credentials and persist them in a .netrc file
auth.login(strategy="interactive", persist=True)


We can also renew our CMR token to make sure our authenticated queries work:

python
auth.refresh_token()
collections = DataCollections(auth).concept_id("c-some-restricted-dataset").get()



We can get authenticated `fsspec` file sessions. closes 41

python
store = Store(auth)

fs = store.get_https_session()
we can use fsspec to get any granule from any DAAC!
fs.get("https://DAAC/granule", "./data")


We can use `Store` to get our files from a URL list. closes 43

python
store = Store(auth)
files = store.get(["https://GRANULE_URL"], "./data/")



Lastly, we can stream certain datasets directly into xarray (even if we are not in AWS)

python
%%time
import xarray as xr

query_results = DataGranules().concept_id("C2036880672-POCLOUD").temporal("2018-01-01", "2018-12-31").get()
ds = xr.open_mfdataset(store.open(query_results))
ds

0.3.1

This is probably the first usable version for `earthdata`

New features:

- python-cmr:
- it now uses the latest python-cmr version(NASA fork) which opens new possibilities for querying CMR. Soon, on top of datasets and data files(granules) also platforms and variables will be supported.

- Documentation:
- Documentation is now available at both [readthedocs](https://earthdata.readthedocs.io/en/latest/) and [github pages](https://nsidc.github.io/earthdata/)

- Authentication:
- Auth can persist user credentials into a netrc file
- Auth can refresh CMR tokens

0.1.1alpha.6

Core features are now working making the library usable.

**New features and improvements**

* The Auth class can now authenticate using a `.netrc` file or environment variables
* Queries can be debugged with `.debug(True)`
* cloud collections will return S3 links by default or HTTPS with `.data_links(direct_s3=False)`

**Bug fixes**

* Date parses incomplete dates in a more predictable way

0.1.1alpha.0

Initial beta release of *earthdata* a client library for NASA CMR and EDL.

**New features and improvements**

* Added simple classes to search and download collections and granules
* Authentication is managed using an Auth class that gets the user's EDL credentials one time.
* No need to use .netrc as all the calls from the client use the Auth session if provided.

**Acknowledgments**

* [NASA OpenScapes](https://earthdata.nasa.gov/learn/articles/openscapes): A NASA funded project to support open science and scientific researchers using data from NASA Distributed Active Archive Centers (DAACs) as they migrate workflows to the cloud.

Page 2 of 2

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.