These notebooks demonstrate how to read data from OPeNDAP Hyrax data servers hosted by NASA. There are twelve DAACs (Distributed Active Archive Centers) run by NASA and ten of those provide at least one OPeNDAP access point.
Go to urs.earthdata.nasa.gov and get a free Earthdata Login (EDL) account.
Of course, if you already have an EDL account, use that.
If possible - create / renew the Bearer Token.
NB: If you want to run the tutorial notebooks locally, skip to the next section (Running the notebooks locally).
Click on the Binder
badge and a browser window with the tutorials
running in Jupyter should open. That's it for the setup.
-
Get Started.ipynb All about Earthdata Login Run this to create a local token object. Must have a an active EDL account. The token object will be used in other notebooks.
-
ECCOv4.ipynb Uses pydap an xarray to aggregate an an entire collection of the ECCOv4 simulation. It uses the Common Metadata Repository (CMR) to find cloud OPeNDAP URLs associated with the DOI of the data collection.
-
earthaccess.ipynb Uses earthaccess to create a VirtualZarr from OPeNDAP DMR++ for Cloud data. earthaccess uses the Common Metadata Repository (CMR) to query all dataset by their short name.
-
on-premOPeNDAP.ipynb Using pydap an xarray it creates a virtually aggregation of 100s of OPeNDAP URLs hosted by NASA on premises on the OB.DAAC.
You can run this on your local machine. To do so you need to have Anaconda installed.
- Steps 1
Clone the repository https://github.com/OPENDAP/NASA-tutorials
git clone https://github.com/OPENDAP/NASA-tutorials
cd NASA-tutorials
- Steps 2
Start conda so the '(base)' environment is active. That may be the case by default, so this step might not be needed.
conda activate
Build the virtual environment for the tutorials
conda env create -f binder/environment.yml`
After a few minutes, activate the new environment
conda activate Earthdata2025`
- Step 3 Starting the local copy of the notebooks
Run jupyter lab
and the notebooks will appear in your running/default
web browser.
jupyter lab
Copyright (C) 2025 OPeNDAP, Inc. This Jupyter Notebook is made available under the Creative Commons Attribution license 4.0.