Page 1 of 1

MERRA2 wget download name too long

Posted: Mon Jan 16, 2023 12:36 pm America/New_York
by linkerr
I am trying to download MERRA2 data with GES DISC and wget (on Windows). After receiving the download links (see subset1.pdf attached) I run
e:\wget_cookies>e:\wget\wget --load-cookies e:\wget\.urs_cookies --save-cookies wget\.urs_cookies --auth-no-challenge=on --keep-session-cookies --user=linkerr --ask-password -i subset1.txt

After inputting my password, the first file (MERRA2.README.pdf) downloads correctly but then I start getting messages that the filename is too long (see subset1_log.pdf attached). Something is eventually downloaded but the file name is truncated, the file name is without extension, I have no idea if the information in the file is correct and complete or how to read this file! Any help will be greatly appreciated!
Raphael

Re: MERRA2 wget download name too long

Posted: Tue Jan 17, 2023 10:55 am America/New_York
by mgreene
To fix file name problem add '--content-disposition' option to wget command.
Also, according to error log, file wget/.urs_cookies cannot be found.
Please review instructions at https://disc.gsfc.nasa.gov/data-access#windows_wget, create .urs_cookies file and provide correct path to it to wget command.

Re: MERRA2 wget download name too long

Posted: Tue Jan 17, 2023 11:12 am America/New_York
by linkerr
Thanks! This solved problem