tlakhankar / CCNY-WRF-Research

CCNY Research on PR and Maine under the supervision of Dr. Tarendra Lakhankar.
2 stars 0 forks source link

NLDAS/GLDAS [NASA Forcing Data] #18

Closed AIdrisy0139 closed 5 years ago

AIdrisy0139 commented 5 years ago

Readme for GLDAS: https://hydro1.gesdisc.eosdis.nasa.gov/data/GLDAS/README_GLDAS2.pdf

Readme for NLDAS: https://hydro1.gesdisc.eosdis.nasa.gov/data/NLDAS/README.NLDAS2.pdf

WK-Kz commented 5 years ago

Follow instructions in order to download data:

Make an EarthData Account

  1. Create an Earthdata account at
  2. Link GES Disk with your account. Follow instructions at this link: https://disc.gsfc.nasa.gov/earthdata-login
  3. Create a .netrc file, as this will contain your username and password.
    > cd ~
    > touch .netrc
    > echo "machine urs.earthdata.nasa.gov login uid_goes_here password password_goes_here" > .netrc
    > chmod 0600 .netrc
  4. Create a cookie file that will be used to persist sessions across individual cURL/Wget calls, making it more efficient.

Resources used: https://wiki.earthdata.nasa.gov/display/EL/How+To+Access+Data+With+cURL+And+Wget https://disc.gsfc.nasa.gov/data-access#mac_linux_wget

Run in terminal

wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --keep-session-cookies -r -c -nH -nd -np -A nc4 --content-disposition -i myfile.dat

The command above takes in urls from myfile.dat and downloads all nc4 files inside each of them. Note that myfile.dat is a list of urls provided.

AIdrisy0139 commented 5 years ago

Current Issue : GLDAS Longwave Radiation Values. -9999 is the default value