Python Library for NASA Earthdata APIs
Features:
earthaccess.download()
by @kvenkman in https://github.com/nsidc/earthaccess/pull/459
user-agent
headers to track usage. https://github.com/nsidc/earthaccess/pull/443
instrument
or project
e.g. instrument="gedi"
https://github.com/nsidc/earthaccess/pull/443
Bug fixes:
Maintenance:
Full Changelog: https://github.com/nsidc/earthaccess/compare/v0.8.2...v0.9.0
python-dateutil
as a direct dependencyFull Changelog: https://github.com/nsidc/earthaccess/compare/v0.8.1...v0.8.2
kerchunk
metadata consolidation utility.ruff
for formatting.Full Changelog: https://github.com/nsidc/earthaccess/compare/v0.8.0...v0.8.1
raise
errors instead of print
ing them in more cases. (#351)daac
and provider
parameters are now normalized to uppercase, since lowercase
characters are never valid. (#355)Full Changelog: https://github.com/nsidc/earthaccess/compare/v0.7.1...v0.8.0
RelatedUrls
are not cloud hosted by @mfisher87 in https://github.com/nsidc/earthaccess/pull/339
Full Changelog: https://github.com/nsidc/earthaccess/compare/v0.7.0...v0.7.1
access
variable assignment (direc
-> direct
)
in earthaccess.store._get_granules
.threads
arg to _open_urls_https
in
earthaccess.store._open_urls
, replacing the hard-coded value of 8.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.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.earthaccess.auth_environ()
utility for getting Earthdata authentication environment variables.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.
concept_id
from the CMR record and search using it.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)
size()
method for granules had a typo and returned 0 all the time, this was fixedtrust_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.search_data()
filtering thanks @andypbarrett!on_prem
tests@MattF-NSIDC @jrbourbeau @mrocklin @andypbarrett @betolink
:rocket: