In order to mitigate errors, GES DISC provides customized Anaconda YAML environment files, which users can install before running select Python tutorials. These YAMLs are organized by services, such as OPeNDAP, and can be installed directly or by downloading from the gesdisc-tutorials/environments folder. The instructions for installing each individual environment are described here, and will be updated as more environment files are added or changed.
An Anaconda installation is required for installing custom environment files. We recommend installing miniconda for lightweight, terminal-based environment management, or the standard Anaconda Distribution, which includes a GUI (Anaconda Navigator) for managing environment files. miniconda installation steps can be accessed here, and Anaconda Distribution steps can be accessed here, available for Windows/macOS/Linux.
The nasa-gesdisc.yml environment contains a Python 3.10 installation that works with all of our how-tos except for our OPeNDAP guides or ArcGIS tutorials. If you wish to access Cloud OPeNDAP, we recommend following the steps for installing nasa-gesdisc-opendap.yml outlined in step 3, or for utilizing ArcGIS tutorials, please install nasa-gesdisc-arcgis.yml by following step 4.
-
To install via a command line:
- Open a terminal, ensuring that the
condacan be called. - Enter:
conda env create -f https://raw.githubusercontent.com/nasa/gesdisc-tutorials/refs/heads/main/environments/nasa-gesdisc.yml. - Activate the environment by entering:
conda activate nasa-gesdisc.
- Open a terminal, ensuring that the
-
To install via Anaconda Navigator:
- Download
nasa-gesdisc.ymlto your computer. - Open Anaconda Navigator, click
Environments->Import - Select
Import from: Local driveand select the downloadednasa-gesdisc.ymlfile.New Environment Namewill automatically fill using the name from the file, but you can change this if desired. - Click the triangular "play" button to the right of the
nasa-gesdiscenvironment tab, and click the "Open in Terminal" button to activate the environment in a terminal session
- Download
The nasa-gesdisc-opendap.yml environment contains a Python 3.10 installation that only works with select OPeNDAP how-tos, which includes the Pydap library. If you are not accessing an OPeNDAP service with Python, we recommend installing the nasa-gesdisc.yml environment, outlined in step 2.
-
To install via a command line:
- Open a terminal, ensuring that the
condacan be called. - Enter:
conda env create -f https://raw.githubusercontent.com/nasa/gesdisc-tutorials/refs/heads/main/environments/nasa-gesdisc-opendap.yml. - Activate the environment by entering:
conda activate nasa-gesdisc-opendap.
- Open a terminal, ensuring that the
-
To install via Anaconda Navigator:
- Download
opendap.ymlto your computer. - Open Anaconda Navigator, click
Environments->Import - Select
Import from: Local driveand select the downloadednasa-gesdisc-opendap.ymlfile.New Environment Namewill automatically fill using the name from the file, but you can change this if desired. - Click the triangular "play" button to the right of the
opendapenvironment tab, and click the "Open in Terminal" button to activate the environment in a terminal session.
- Download
The nasa-gesdisc-arcgis.yml environment contains a Python 3.10 installation that only works with select ArcGIS how-tos.
-
To install via a command line:
- Open a terminal, ensuring that the
condacan be called. - Enter:
conda env create -f https://raw.githubusercontent.com/nasa/gesdisc-tutorials/refs/heads/main/environments/nasa-gesdisc-arcgis.yml. - Activate the environment by entering:
conda activate nasa-gesdisc-arcgis.
- Open a terminal, ensuring that the
-
To install via Anaconda Navigator:
- Download
arcgis.ymlto your computer. - Open Anaconda Navigator, click
Environments->Import - Select
Import from: Local driveand select the downloadedarcgis.ymlfile.New Environment Namewill automatically fill using the name from the file, but you can change this if desired. - Click the triangular "play" button to the right of the
nasa-gesdisc-arcgisenvironment tab, and click the "Open in Terminal" button to activate the environment in a terminal session.
- Download