Client library for NASA Earthdata APIs
Project description
earthdata 🌍
Client library for NASA CMR and EDL APIs
Overview
A Python library to search and access NASA datasets.
Installing earthdata
Install the latest release:
pip install earthdata
Or you can clone earthdata
and get started locally
# ensure you have Poetry installed
pip install --user poetry
# install all dependencies (including dev)
poetry install
# develop!
Example Usage
from earthdata import Auth, DataGranules, DataCollections, Accessor
auth = Auth() # if we want to access NASA DATA in the cloud
auth.login()
collections = DataCollections(auth).keyword('MODIS').get(10)
granules = DataGranules(auth).concept_id('C1711961296-LPCLOUD').bounding_box(-10,20,10,50).get(5)
# We provide some convenience functions for each result
data_links = [granule.data_links() for granule in granules]
# The Acessor class allows to get the granules from on-prem locations with get()
# NOTE: Some datasets require users to accept a Licence Agreement before accessing them
access = Accessor(auth)
# This works with both, on-prem or cloud based collections**
access.get(granules, './data')
# if you're in a AWS instance (us-west-2) you can use open() to get a fileset!
fileset = accessor.open(granules)
xarray.open_mfdataset(fileset, combine='by_coords')
Only Python 3.7+ is supported as required by the black, pydantic packages
Contributing Guide
Welcome! 😊👋
Please see the Contributing Guide.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
earthdata-0.1.1a6.tar.gz
(37.0 kB
view hashes)
Built Distribution
Close
Hashes for earthdata-0.1.1a6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1658b95201b2ae3074021637a6aab2016712026c76e60cc49b91fbf3fba05d21 |
|
MD5 | 3219005ba58fd7dc412f3d6c6de4fd9f |
|
BLAKE2b-256 | ab73a61902db35ef24782c02a17081ae7f32f21eba3ff76cc10c8a6fbd79f236 |