- User Services
- Posts: 132
- Joined: Fri Apr 23, 2021 9:14 am America/New_York
- Has thanked: 12 times
- Been thanked: 6 times
I am trying to download MODIS SST data (for instance: "https://oceandata.sci.gsfc.nasa.gov/directdataaccess/Level-3 Mapped/Aqua-MODIS/2021/336/AQUA_MODIS.20211202.L3m.DAY.SST4.sst4.4km.nc") via a wget script under Linux. While I followed the steps to generate a .netrc file and also otherwise followed the instructions about how to download the data I am not able to retrieve the netCDF file with its full file size / it is not recognized as a netCDF file. That particular file is downloaded with a size of 18562 Bytes.
However, when I am using a browser (Mozilla Firefox) I can download the file without any problem.
While you might say, ok, then do it via the browser ... I wish to download the data beginning December 2021 until now, daily and monthly, Terra and Aqua, night and day SST ... hence the browser is certainly not an option. I would therefore be grateful if you could assist me in solving the riddle and also tell me how to download more than just one file in one command. Thank you.
- Subject Matter Expert
- Posts: 37
- Joined: Fri Jun 03, 2022 10:54 am America/New_York
- Location: NASA GSFC
- Been thanked: 1 time
I downloaded the file using following code without any problem:
Code: Select all
wget --load-cookies ~/.urs_cookies --save-cookies ~/.urs_cookies --auth-no-challenge=on https://oceandata.sci.gsfc.nasa.gov/ob/getfile/AQUA_MODIS.20211202.L3m.DAY.SST4.sst4.4km.nc
Please try again and let us know if the problem still exists.