Skip to main content

Client library for NASA Earthdata APIs

Project description

earthaccess

earthaccess, a python library to search, download or stream NASA Earth science data with just a few lines of code

DOI Art Designer: Allison Horst Package version Conda Versions Python Versions Documentation Status

earthaccess is a python library to search for, and download or stream NASA Earth science data with just a few lines of code.

Visit our documentation to learn more!

Try it in your browser without installing anything! Binder

Why earthaccess

During several workshops organized by NASA Openscapes, the need to provide easy-to-use tools to our users became evident. Open science is a collaborative effort; it involves people from different technical backgrounds, and the data analysis to solve the pressing problems we face cannot be limited by the complexity of the underlying systems. Therefore, providing easy access to NASA Earthdata regardless of the data storage location (hosted within or outside of the cloud) is the main motivation behind this Python library.

How to Get Started with earthaccess

How to install

To install earthaccess go to your terminal and install it using pip:

python -m pip install earthaccess

How to access NASA Earth Science data

With earthaccess, data is 3 steps away!

import earthaccess

# 1. Login
earthaccess.login()

# 2. Search
results = earthaccess.search_data(
    short_name='ATL06',  # ATLAS/ICESat-2 L3A Land Ice Height
    bounding_box=(-10, 20, 10, 50),  # Only include files in area of interest...
    temporal=("1999-02", "2019-03"),  # ...and time period of interest.
    count=10
)

# 3. Access
files = earthaccess.download(results, "/tmp/my-download-folder")

Visit our quick start guide for more details.

Help!

We're here for you! Before you open a new issue/discussion/topic, please search to see if anyone else has opened a similar one.

:bug: If you've found a bug or mistake, please use GitHub issues.

:bulb: If you'd like to request a feature or ask a question, please use GitHub discussions.

:left_speech_bubble: If you prefer real-time chat, please visit us in our Zulip chat space! We'd love to see you there! :open_hands:

Compatibility

The minimum supported Python version is 3.12.

How to Contribute to earthaccess

If you want to contribute to earthaccess checkout the Contributing Guide.

Contributors

Contributors

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

earthaccess-0.18.0.tar.gz (12.8 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

earthaccess-0.18.0-py3-none-any.whl (77.1 kB view details)

Uploaded Python 3

File details

Details for the file earthaccess-0.18.0.tar.gz.

File metadata

  • Download URL: earthaccess-0.18.0.tar.gz
  • Upload date:
  • Size: 12.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for earthaccess-0.18.0.tar.gz
Algorithm Hash digest
SHA256 5733316a7a524b8bbed3d551ddf2b3fd5c624e302a2acd123547a65ef34627cf
MD5 35d4f64416e5de15f72949e317bf917d
BLAKE2b-256 b4a9e3aabb8b1965370424b08edfd6a6ed6301e8b0f437ece149b27e86adb824

See more details on using hashes here.

Provenance

The following attestation bundles were made for earthaccess-0.18.0.tar.gz:

Publisher: publish.yml on earthaccess-dev/earthaccess

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file earthaccess-0.18.0-py3-none-any.whl.

File metadata

  • Download URL: earthaccess-0.18.0-py3-none-any.whl
  • Upload date:
  • Size: 77.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for earthaccess-0.18.0-py3-none-any.whl
Algorithm Hash digest
SHA256 888bff5a2f206ece0269a8ead0841d0432fff5b1b4564f6da37ac1a7c73f8195
MD5 840e785ee66264c51b1f4eabb82764da
BLAKE2b-256 bc152b94815f5b5cd0be68d4d3f5846e893f0b8d79371aa54f7985feadfd692b

See more details on using hashes here.

Provenance

The following attestation bundles were made for earthaccess-0.18.0-py3-none-any.whl:

Publisher: publish.yml on earthaccess-dev/earthaccess

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page