The netCDF library has a builtin capability of lazily reading data from an OPeNDAP server as the following code demonstrates. I was wondering how to tell Raster
to do the same.
using NCDatasets: NCDataset
using Rasters
url = "http://apdrc.soest.hawaii.edu:80/dods/public_data/" *
"WOA/WOA18/5_deg/monthly/temp"
varname = "tmn"
#-- works ---
NCDataset(url) do ds
display(ds[varname])
end
#-- works if you have the file --
rs = Raster("tmp.nc"; name = "slp")
display(rs)
#-- fails ---
rs = Raster(url; name = varname)