Earthdata Versions Save

Python Library for NASA Earthdata APIs

v0.9.0

2 months ago

What's Changed

New Contributors

Full Changelog: https://github.com/nsidc/earthaccess/compare/v0.8.2...v0.9.0

v0.8.2

5 months ago

What's Changed

  • Bug fixes:
    • Enable AWS check with IMDSv2
    • Add region to running in AWS check
    • Handle opening multi-file granules
  • Maintenance:
    • Add CI tests with minimum supported versions
    • Update poetry lockfile
    • Add python-dateutil as a direct dependency
    • Remove binder PR comments
    • Add YAML formatting (prettier)

Full Changelog: https://github.com/nsidc/earthaccess/compare/v0.8.1...v0.8.2

v0.8.1

5 months ago

What's Changed

  • New Features:
    • Add kerchunk metadata consolidation utility.
  • Enhancements:
    • Handle S3 credential expiration more gracefully.
  • Maintenanece:
    • Use dependabot to update Github Actions.
    • Consolidate dependabot updates.
    • Switch to ruff for formatting.

Full Changelog: https://github.com/nsidc/earthaccess/compare/v0.8.0...v0.8.1

v0.8.0

5 months ago

What's Changed

  • Bug fixes:
    • Fix zero granules being reported for restricted datasets. (#358)
  • Enhancements:
    • earthaccess will raise errors instead of printing them in more cases. (#351)
    • daac and provider parameters are now normalized to uppercase, since lowercase characters are never valid. (#355)

New Contributors

Full Changelog: https://github.com/nsidc/earthaccess/compare/v0.7.1...v0.8.0

v0.7.1

6 months ago

What's Changed

Full Changelog: https://github.com/nsidc/earthaccess/compare/v0.7.0...v0.7.1

v0.7.0

6 months ago
  • Bug Fixes:
    • Fix spelling mistake in access variable assignment (direc -> direct) in earthaccess.store._get_granules.
    • Pass threads arg to _open_urls_https in earthaccess.store._open_urls, replacing the hard-coded value of 8.
    • Return S3 data links by default when in region.
  • Enhancements:
    • earthaccess.download now accepts a single granule as input in addition to a list of granules.
    • earthaccess.download now returns fully qualified local file paths.
  • New Features:
    • Earthaccess will now automatically search for Earthdata authentication. earthaccess.login() still works as before, but is no longer required if you have a ~/.netrc file for have set EARTHDATA_USERNAME and EARTHDATA_PASSWORD environment variables.
    • Add earthaccess.auth_environ() utility for getting Earthdata authentication environment variables.

v0.6.1

7 months ago

Hotfix: A version number was out of sync prior to the last release. This release brings all the version numbers in sync and enables a successful publish to PyPI.

v0.6.0

7 months ago

bug fixes

  • earthaccess.search_datasets() and earthaccess.search_data() can find restricted datasets #296
  • distributed serialization fixed for EarthAccessFile #301 and #276

new features

  • earthaccess.get_s3fs_session() can use the results to find the right set of S3 credentials

v0.5.3

9 months ago

Enhancements

  • We can search by doi at the granule level, if a collection is found earthaccess will grab the concept_id from the CMR record and search using it.
  • We will be able to use pattern matching on the granule file names! closes #198 combining the two we could have searches like
results = earthaccess.search_data(
    doi = "10.5067/SLREF-CDRV3",
    granule_name = "2005-*.nc",
    count=100
)
  • If using remote Dask cluster, earthaccess will open the files using HTTPS links and will switch on the fly to S3 links if the cluster is in us-west-2 Thanks to @jrbourbeau! this change implemented a thin wrapper around fsspec.AbstractFileSystem

  • The granule representation removed the spatial output in favor of a simpler is_cloud_hosted until we have a nicer spatial formatter (it was a blob of json)

Bugs fixed

  • size() method for granules had a typo and returned 0 all the time, this was fixed
  • https sessions returned to trust_env=False with a True value the session will read the .netrc and send both simple auth and tokens at the same time causing an authentication error with most services.

Documentation improvements

  • Reorganized docs to include resources and end to end examples
  • README is now using the SSHA dataset from PODAAC as is simpler to explain and work with compared to ATL data, addresses #241
  • SSL and EMIT examples included in the documentation, they are executed end to end on CI
  • Added a minimal example of search_data() filtering thanks @andypbarrett!

CI Maintenance:

  • Integration tests are on a different file
  • Integration tests are going to run only on pushes to main
  • Documentation is only going to be updated when we update main
  • PODAAC migrated all their data to the cloud already so there is no point in having it on the on_prem tests

Contributors to this release

@MattF-NSIDC @jrbourbeau @mrocklin @andypbarrett @betolink

:rocket:

v0.5.2

1 year ago
  • deprecating Benedict as dict data structure in favor of just using the built-in Python dict. Thanks @psarka!
  • fixed NSIDC S3 credentials endpoint