Skip to content

gregory-halverson/ECOv002-CMR

 
 

Repository files navigation

Common Metadata Repository (CMR) Search for ECOSTRESS Collection 2

CI

The ECOv002-CMR Python package is a utility for searching and downloading ECOSTRESS Collection 2 tiled data product granules using the Common Metadata Repository (CMR) API.

Gregory H. Halverson (they/them)
gregory.h.halverson@jpl.nasa.gov
NASA Jet Propulsion Laboratory 329G

Pre-Requisites

This package uses wget for file transfers.

On macOS, install wget with Homebrew:

brew install wget

Installation

Install the ECOv002-CMR package, with a dash in the name, from PyPi using pip:

pip install ECOv002-CMR

Usage

Import the ECOv002_CMR package, with an underscore in the name:

import ECOv002_CMR

Download an ECOSTRESS Granule

Use the download_ECOSTRESS_granule function to download a granule by specifying the product, tile, and acquisition date (optionally orbit and scene):

from ECOv002_CMR import download_ECOSTRESS_granule
from datetime import date

# Example: Download an ECOSTRESS granule
granule = download_ECOSTRESS_granule(
    product="ECO2LSTE.002",
    tile="10UEV",
    aquisition_date=date(2023, 8, 1)
)

# The returned object is an ECOSTRESSGranule instance
print(granule)

About

Common Metadata Repository (CMR) Search for ECOSTRESS Collection 2

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Jupyter Notebook 99.2%
  • Other 0.8%