Skip to content
Kim Kreiss edited this page Jun 22, 2023 · 11 revisions

Downloading Datasets from Earthdata

Shell Script (More Time-Consuming; doesn't require python)

  1. Register for an account on https://urs.earthdata.nasa.gov. In order to create a profile, you will be prompted to provide a username, password, email address, and data about your title/role/institution. You'll receive an e-mail asking you to confirm account activation, don't forget to click on the link in that e-mail to fully activate your account!

$~~~~$

  1. Locate the dataset you would like to download on https://search.earthdata.nasa.gov/ and click on it. Once selected, press the green "Download Data" button.

$~~$

$~~~~$

  1. Wait until the download is 100% ready.

$~~$

$~~~~$

  1. Click the "Download Script" tab. Create a path on the Remote Directory to store your data. In the desired folder, create a shell (.sh) file (called download.sh, for example). Copy and paste the provided script into your shell (.sh) file. $~~$

$~~~~$

  1. In the terminal, run the command chmod 777 download.sh (replace "download" with whatever you named your shell file). This command just allows you to access and run the shell file.

$~~~~$

  1. In the terminal, run the command ./download.sh (once again, replace "download" with whatever you named your shell file). You will be prompted to type your Earthdata username and password.

$~~~~$

  1. The download will begin! :D

Downloading through Podaac (needs python >= 3.7)

  1. Register for an account on https://urs.earthdata.nasa.gov. In order to create a profile, you will be prompted to provide a username, password, email address, and data about your title/role/institution. You'll receive an e-mail asking you to confirm account activation, don't forget to click on the link in that e-mail to fully activate your account!

$~~~~$

  1. Locate the dataset you want to download. Click the download button under Capabilities and jot down the PO.DAAC Data Subscriber code. For example, the GRACE dataset is located in GRACE website and the PO.DAAC Data Subscriber code is podaac-data-subscriber -c TELLUS_GRAC_L3_CSR_RL06_LND_v04 -d ./data/TELLUS_GRAC_L3_CSR_RL06_LND_v04 --start-date 2002-04-05T00:00:00Z

$~~~~$

  1. Now, we can follow the instruction to download the data from PODAAC's Github page. Note the following command works on Macbook, Windows users should consult the Github page for more detail. First, run the following command in terminal pip install podaac-data-subscriber. This requires Python >= 3.7.

$~~~~$

  1. Run echo $HOME, then pwd. Make sure the two locations are the same.

$~~~~$

  1. Create and write a .netrc file by running the following commands at the same location touch .netrc, then nano .netrc. In the .netrc file, you should put in the following information: machine urs.earthdata.nasa.gov login <your username> password <your password> The username and password is your login information from https://urs.earthdata.nasa.gov. Then, save and close the file using control+o, enter, and then control+w

$~~~~$

  1. Then, download the dataset you want by entering the PO.DAAC Data Subscriber code in step 2 to the terminal. If you want to "download PO.DAAC data once in a while or prefer to do it 'on-demand'", instead of "continuously pulling the latest data from the PO.DAAC archive", change the subscriber in the command line to downloader and add an end date to the data you want to download. For example, for GRACE data, you can change the command line from podaac-data-subscriber -c TELLUS_GRAC_L3_CSR_RL06_LND_v04 -d ./data/TELLUS_GRAC_L3_CSR_RL06_LND_v04 --start-date 2002-04-05T00:00:00Z to podaac-data-downloader -c TELLUS_GRAC_L3_CSR_RL06_LND_v04 -d ./data/TELLUS_GRAC_L3_CSR_RL06_LND_v04 --start-date 2002-04-05T00:00:00Z --end-date 2017-10-19T00:00:00Z

Datasets & Technical Notes

GRACE & GRACE-FO

  • GRACE goes until Oct 2017; GRACE FO starts in May 2018
  • After 2018, they shut the accelerometer off on one of the satellites, resulting in degradation of data quality.
Clone this wiki locally