Skip to content

OPENDAP/NASA-tutorials

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 

Repository files navigation

Binder

Jupyter Notebook Tutorials Demonstrating Access to NASA Data

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.

Setup

Step 0: Get a NASA Earthdata Login

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.

Step 1: Use Binder

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.

The notebooks

  • 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.


Optional: Running the notebooks locally

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.

About

Tutorials for NASA's OPeNDAP services

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •