Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Alternative way to quickly get the NLDAS data without running/updating the 01_getNLDAS.R script #1

Open
patriciatran opened this issue Jan 18, 2024 · 0 comments

Comments

@patriciatran
Copy link

Hello team!

I was revisiting this code for someone and thought I would share this alternative method in case that's helpful for future tutorials using this repository.

A faster way to run 01_getNLDAS.R that doesn't require updating the links formatting in the Rscript every once in a while.

This requires using the command line and using wget from the command line:

For example:

  1. Go on https://disc.gsfc.nasa.gov/datasets?keywords=NLDAS as usual
  2. Use the filters to find the dataset
  3. Click on "Subset/Get data"
  4. Refine date ranges
  5. Click on Get data
  6. Click on "Downloads links list in the lower left pop-up", which creates a txt file with URLs
    Screenshot 2024-01-18 at 11 07 21 AM

Open the terminal

mkdir NLDAS_data
cd NLDAS_data
wget --user [username] --password [password] -i [text_file_downloaded] --content-disposition

where [text_file_downloaded] is the path to the file downloaded in step 6 above.

--content-disposition ensures the files are not renamed but keep their ".grb" file extension/naming format.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant