earthaccess

Search, download or stream NASA Earth science data with just a few lines of code.
https://github.com/earthaccess-dev/earthaccess

Category: Sustainable Development
Sub Category: Data Catalogs and Interfaces

Keywords

access climate-data cloud-computing cmr data gis nasa nasa-api nasa-data open-science openscience pangeo remote-sensing

Keywords from Contributors

icesat-2 closember cryosphere glacier zarr 2023-hackweek community-driven jupyterbook earth-observation gdal

Last synced: about 18 hours ago
JSON representation

Repository metadata

Python Library for NASA Earthdata APIs

README.md

earthaccess

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.

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

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

🗨️ If you prefer real-time chat, please visit us in our
Zulip chat space!
We'd love to see you there! 👐

Compatibility

The minimum supported Python version is 3.11.

How to Contribute to earthaccess

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

Contributors

Contributors

Citation (CITATION.cff)

cff-version: 1.2.0
message: |
  Please cite this software using these metadata.
  Authors are listed in alphabetical order.

title: "earthaccess"
doi: "10.5281/zenodo.8365009"
abstract: "Python Library for NASA Earthdata APIs"
contact:
  - name: "The earthaccess community"
    website: "https://github.com/earthaccess-dev/earthaccess/discussions"
  - name: "NSIDC"
    email: "nsidc@nsidc.org"
type: "software"
# NOTE: The CFF spec says `license` can be a list, but Zenodo is currently not
#       accepting lists for this key:
#       https://github.com/zenodo/zenodo/issues/2515
license: "MIT"
keywords:
  - "data"
  - "Remote sensing"
  - "Cloud computing"
  - "authentication"
  - "Earthdata Login"

url: "https://earthaccess.readthedocs.io"
repository-code: "https://github.com/earthaccess-dev/earthaccess"

version: "0.16.0"
date-released: "2026-01-30"

authors:
  - family-names: "Barrett"
    given-names: "Andrew"
    orcid: "https://orcid.org/0000-0003-4394-5445"
    website: "https://github.com/andypbarrett"
  - family-names: "Battisto"
    given-names: "Chris"
    orcid: "https://orcid.org/0000-0002-9608-3634"
    website: "https://github.com/battistowx"
  - family-names: "Bourbeau"
    given-names: "James"
    orcid: "https://orcid.org/0000-0003-2164-7789"
    website: "https://github.com/jrbourbeau"
  - family-names: "Carroll"
    given-names: "Ian"
    orcid: "https://orcid.org/0000-0002-3616-810X"
    website: "https://github.com/itcarroll"
  - family-names: "Daniels"
    given-names: "Chuck"
    website: "https://github.com/chuckwondo"
  - family-names: "Fisher"
    given-names: "Matt"
    orcid: "https://orcid.org/0000-0003-3260-5445"
    website: "https://mfisher87.github.io/"
  - family-names: "Kaufman"
    given-names: "Daniel"
    orcid: "https://orcid.org/0000-0002-1487-7298"
    website: "https://github.com/danielfromearth"
  - family-names: "Kennedy"
    given-names: "Joseph"
    orcid: "https://orcid.org/0000-0002-9348-693X"
    website: "https://github.com/jhkennedy"
  - family-names: "Lopez"
    given-names: "Luis"
    orcid: "https://orcid.org/0000-0003-4896-3263"
    website: "https://github.com/betolink"
  - family-names: "Lowndes"
    given-names: "Julia"
    orcid: "https://orcid.org/0000-0003-1682-3872"
    website: "https://github.com/jules32"
  - family-names: "Scheick"
    given-names: "Jessica"
    orcid: "https://orcid.org/0000-0002-3421-4459"
    website: "https://github.com/JessicaS11"
  - family-names: "Steiker"
    given-names: "Amy"
    orcid: "https://orcid.org/0000-0002-3039-0260"
    website: "https://github.com/asteiker"
  - family-names: "Varghese"
    given-names: "Sherwin"
    orcid: "https://orcid.org/0009-0005-7030-213X"
    website: "https://github.com/Sherwin-14"



references:
  - type: "grant"
    title: "Openscapes: Supporting better science for future us"
    institution:
      name: "National Aeronautics and Space Administration"
    number: "20-TWSC20-2-0003"
    authors:
      - family-names: "Lowndes"
        given-names: "Julia"
        orcid: "https://orcid.org/0000-0003-1682-3872"
        website: "https://github.com/jules32"
      - family-names: "Robinson"
        given-names: "Erin"
        orcid: "https://orcid.org/0000-0001-9998-0114"
        website: "https://erinrobinson.info/"

Owner metadata


GitHub Events

Total
Last Year

Committers metadata

Last synced: 3 days ago

Total Commits: 1,228
Total Committers: 53
Avg Commits per committer: 23.17
Development Distribution Score (DDS): 0.774

Commits in past year: 351
Committers in past year: 29
Avg Commits per committer in past year: 12.103
Development Distribution Score (DDS) in past year: 0.783

Name Email Commits
betolink b****n@g****m 277
Matt Fisher m****7@g****m 200
Andy Barrett a****t@n****g 81
Sherwin-14 v****n@g****m 73
Joseph H Kennedy me@j****g 67
danielfromearth d****n@n****v 54
James Bourbeau j****u@g****m 51
Chuck Daniels c****k@d****g 49
Ian Carroll i****l@n****v 34
betolink:w l****z@n****g 30
pre-commit-ci[bot] 6****] 29
doug-newman-nasa d****n@n****v 25
jennifer j****k@c****u 24
Andy Barrett a****t@g****m 21
dependabot[bot] 4****] 21
ayushnag 3****g 17
Matt Fisher m****r@n****g 14
Julia Stewart Lowndes j****a@o****g 13
Benjamin Root b****t@g****m 13
ana-sher n****a@g****m 12
Chris Battisto 3****x 10
karthik venkataramani k****t@v****u 10
Hailiang Zhang h****g@n****v 9
Owen Littlejohns o****s@n****v 8
Keenan Ganz 3****z 8
Amy Steiker 4****r 7
Kevin Grimes K****s@j****v 7
Doug Newman d****n@n****v 6
Trey Stafford t****d@c****u 6
Jessica Scheick J****1 6
and 23 more...

Committer domains:


Issue and Pull Request metadata

Last synced: 3 days ago

Total issues: 3
Total pull requests: 5
Average time to close issues: about 2 hours
Average time to close pull requests: 4 months
Total issue authors: 3
Total pull request authors: 5
Average comments per issue: 7.0
Average comments per pull request: 4.4
Merged pull request: 2
Bot issues: 0
Bot pull requests: 0

Past year issues: 3
Past year pull requests: 5
Past year average time to close issues: about 2 hours
Past year average time to close pull requests: 4 months
Past year issue authors: 3
Past year pull request authors: 5
Past year average comments per issue: 7.0
Past year average comments per pull request: 4.4
Past year merged pull request: 2
Past year bot issues: 0
Past year bot pull requests: 0

More stats: https://issues.ecosyste.ms/repositories/lookup?url=https://github.com/earthaccess-dev/earthaccess

Top Issue Authors

  • itcarroll (1)
  • briardew (1)
  • saberbrasher (1)

Top Pull Request Authors

  • itcarroll (1)
  • andypbarrett (1)
  • jhkennedy (1)
  • stefaniebutland (1)
  • danielfromearth (1)

Top Issue Labels

  • type: bug (1)
  • needs: triage (1)
  • impact: documentation (1)
  • type: experience report (1)

Top Pull Request Labels


Dependencies

pyproject.toml pypi
  • autoflake >=1.3 develop
  • black >=21.11b0 develop
  • flake8 >=3.7 develop
  • ipywidgets ^7.7.0 develop
  • isort >=5 develop
  • jupyterlab >=3 develop
  • markdown-include >=0.6 develop
  • mkdocs >=1.2 develop
  • mkdocs-jupyter =0.19.0 develop
  • mkdocs-material >=7.1,<9.0 develop
  • mkdocstrings >=0.18 develop
  • mypy >=0.812 develop
  • pre-commit >=2.4 develop
  • pygments =2.11.1 develop
  • pymdown-extensions =9.2 develop
  • pytest >=6.0 develop
  • pytest-cov >=2.8 develop
  • pytest-watch >=4.2 develop
  • responses >=0.14 develop
  • types-requests >=0.1 develop
  • types-setuptools >=0.1 develop
  • widgetsnbextension ^3.6.0 develop
  • pqdm >=0.1
  • python >=3.8,<4.0
  • python-benedict >=0.25
  • python-cmr >=0.7
  • requests >=2.26
  • s3fs >=2021.11, <2024
  • tinynetrc ^1.3.1
.github/workflows/issue-manager.yml actions
  • tiangolo/issue-manager master composite
.github/workflows/publish.yml actions
  • JRubics/poetry-publish v1.8 composite
  • actions/checkout v2 composite
.github/workflows/test.yml actions
  • actions/cache v1 composite
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
  • codecov/codecov-action v1 composite
.github/workflows/integration-test.yml actions
  • actions/cache v1 composite
  • actions/checkout v2 composite
  • actions/setup-python v1 composite
  • codecov/codecov-action v1 composite
poetry.lock pypi
  • 194 dependencies
.github/workflows/pr-rtd-link.yml actions
  • readthedocs/actions/preview v1 composite
.github/workflows/static-analysis.yml actions
  • actions/checkout v4 composite
  • actions/setup-python v4 composite
.github/workflows/test-mindeps.yml actions
  • actions/checkout v4.1.1 composite
  • codecov/codecov-action v1 composite
  • conda-incubator/setup-miniconda v2.2.0 composite
binder/environment.yml conda
  • cartopy >=0.18.0
  • dask >=2022.1
  • geopandas >=0.9
  • h5netcdf >=0.11
  • h5py >=3.2
  • holoviews
  • hvplot
  • ipyleaflet >=0.15
  • jupyterlab >=3
  • matplotlib-base >=3.3
  • netcdf4 >=1.5
  • panel
  • python 3.9.*
  • rioxarray >=0.3
  • xarray >=0.19
  • zarr >=2.9.5

Score: 10.567437615438774