Python Modules

Python Modules#

The tutorials requires additional Python modules installed in your system. These are listed on the requirements.txt file within the repository. You can install the modules using pip as:

pip install -r requirements.txt

If you use conda environment, you can create and activate the conda environment as

conda env create -f environment.yml
conda activate cms

The tutorials specifically uses two python modules:

  1. earthaccess: earthaccess is a python library to search for, and download or stream NASA Earth science data with just a few lines of code. earthaccess handles authentication with NASA’s Earthdata Login (EDL), search using NASA’s CMR and cloud-access through fsspec.

  2. harmony-py: Harmony-Py is a Python library for integrating with NASA’s Harmony Services. It provides a Python client to directly using Harmony’s API and handles NASA’s Earthdata Login (EDL) authentication and integrates with the NASA’s CMR by accepting collection results as a request parameter.