download from oceandata.sci.gsfc.nasa.gov

Use this Forum to find information on, or ask a question about, NASA Earth Science data.
Post Reply
sergdkv
Posts: 2
Joined: Sun May 19, 2024 9:23 pm America/New_York
Answers: 0

download from oceandata.sci.gsfc.nasa.gov

by sergdkv » Sun May 19, 2024 10:20 pm America/New_York

Good afternoon.
I can't download some files from oceandata.sci.gsfc.nasa.gov.

More precisely, I'm trying to get files using wget.

If the file is small, I download the file successfully.

If the download takes more than 5 minutes, the download is interrupted. In this case, resuming the download (-c option) does not work.

Is it possible to do anything in this situation?

PARTS OF WGET LOG:

--2024-05-20 12:14:47-- https://oceandata.sci.gsfc.nasa.gov/ob/getfile/A2024123052000.L1A_LAC.bz2
...................................
Length: 212295824 (202M) [application/octet-stream]
Saving to: '/var/www/html/lab34/cache//A2024123052000.L1A_LAC.bz2'

0K .......... .......... .......... .......... .......... 0% 192K 17m58s
50K .......... .......... .......... .......... .......... 0% 132K 22m3s
......................
17500K .......... .......... .. 8% 109K=2m12s

2024-05-20 12:17:01 (133 KB/s) - Connection closed at byte 17942819. Giving up.

Filters:

OB.DAAC - amscott
User Services
User Services
Posts: 362
Joined: Mon Jun 22, 2020 5:24 pm America/New_York
Answers: 1
Has thanked: 8 times
Been thanked: 5 times

Re: download from oceandata.sci.gsfc.nasa.gov

by OB.DAAC - amscott » Mon May 20, 2024 10:11 am America/New_York

Hello! This may be hard to replicate without more information. Would you mind sharing your wget command?

sergdkv
Posts: 2
Joined: Sun May 19, 2024 9:23 pm America/New_York
Answers: 0

Re: download from oceandata.sci.gsfc.nasa.gov

by sergdkv » Mon May 20, 2024 7:37 pm America/New_York

I use this commands (--limit-rate=200k has been added for simulates slow connection).

# clear cookies
echo -n >~/.urs_cookies;
# fill username and etc
echo 'machine urs.earthdata.nasa.gov login MYLOGIN password MYPASSWORD' >~/.netrc
chmod 0600 ~/.netrc

wget -4 --limit-rate=200k --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --auth-no-challenge=on --content-disposition https://oceandata.sci.gsfc.nasa.gov/ob/getfile/A2024123052000.L1A_LAC.bz2

Post Reply