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
This package uses wget for file transfers.
On macOS, install wget with Homebrew:
brew install wget
Install the ECOv002-CMR package, with a dash in the name, from PyPi using pip:
pip install ECOv002-CMR
Import the ECOv002_CMR
package, with an underscore in the name:
import ECOv002_CMR
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)