:D
I'm trying to download many files with OpenDap in R software but I have a problem ... Indeed, I want to download all files of GHRSST Level 4 MUR Global Foundation Sea Surface Temperature Analysis (v4.1)from 2002 to 2018 because I need to get the sea ice fraction.
But I just need these data on a specific grid so I would like to create a loop to download all files with some constraints of variables and latitude / longitude . In the order to do this, I have got the URL for (an example) the 2019 september 20th : https://podaac-opendap.jpl.nasa.gov:443/opendap/allData/ghrsst/data/GDS2/L4/GLOB/JPL/MUR/v4.1/2017/263/20170920090000-JPL-L4_GHRSST-SSTfnd-MUR-GLOB-v02.0-fv04.1.nc?time[0:1:0],lat[2000:1:4000],lon[18000:1:27000],sea_ice_fraction[0:1:0][2000:1:4000][18000:1:27000]
When I try download this URL directly by the R software (function download.file), I have the whole of this file, all variables on the whole of the Earth so it's a great problem because each file make 330 Mo ... and the file that I want make less 100 Mo ...
My function in R studio is : download.file("https://podaac-opendap.jpl.nasa.gov:443/opendap/allData/ghrsst/data/GDS2/L4/GLOB/JPL/MUR/v4.1/2017/263/20170920090000-JPL-L4_GHRSST-SSTfnd-MUR-GLOB-v02.0-fv04.1.nc?time[0:1:0],lat[2000:1:4000],lon[18000:1:27000],sea_ice_fraction[0:1:0][2000:1:4000][18000:1:27000]", "nc_20110910090000.nc.nc4",mode="wb") I hope you can assist me ...
Kind regards,
Alexandre Modi