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.
download from oceandata.sci.gsfc.nasa.gov
-
- Posts: 397
- Joined: Mon Jun 22, 2020 5:24 pm America/New_York
- Has thanked: 8 times
- Been thanked: 8 times
Re: download from oceandata.sci.gsfc.nasa.gov
Hello! This may be hard to replicate without more information. Would you mind sharing your wget command?
Re: download from oceandata.sci.gsfc.nasa.gov
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
# 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