MERRA2 wget download name too long

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
linkerr
Posts: 2
Joined: Mon Jan 16, 2023 12:19 pm America/New_York
Answers: 0

MERRA2 wget download name too long

by linkerr » Mon Jan 16, 2023 12:36 pm America/New_York

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
Attachments
subset1_log.pdf
wget echo
(72.06 KiB) Downloaded 76 times
subset1.pdf
download links
(54.22 KiB) Downloaded 59 times

Tags:

GES DISC - mgreene
User Services
User Services
Posts: 191
Joined: Wed Sep 25, 2019 9:35 am America/New_York
Answers: 2
Been thanked: 1 time

Re: MERRA2 wget download name too long

by GES DISC - mgreene » Tue Jan 17, 2023 10:55 am America/New_York

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.

linkerr
Posts: 2
Joined: Mon Jan 16, 2023 12:19 pm America/New_York
Answers: 0

Re: MERRA2 wget download name too long

by linkerr » Tue Jan 17, 2023 11:12 am America/New_York

Thanks! This solved problem

Post Reply