-
Notifications
You must be signed in to change notification settings - Fork 1
Data
Kim Kreiss edited this page Jun 22, 2023
·
11 revisions
- 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!
- 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.
- Wait until the download is 100% ready.
- 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 (calleddownload.sh
, for example). Copy and paste the provided script into your shell (.sh
) file.$~~$
- 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.
- 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.
- The download will begin! :D
- 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!
- 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
- 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.
- Run
echo $HOME
, thenpwd
. Make sure the two locations are the same.
- Create and write a
.netrc
file by running the following commands at the same locationtouch .netrc
, thennano .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
- 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 todownloader
and add an end date to the data you want to download. For example, for GRACE data, you can change the command line frompodaac-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
topodaac-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
- 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.