I am trying to load netcdf file into R:
f <- "A20020012002365.L3b_YR_CHL.nc"
u <- "https://oceandata.sci.gsfc.nasa.gov/cgi/getfile/"
curl::curl_download(file.path(u, f), f)
r <- brick("A20020012002365.L3b_YR_CHL.nc")
Error message I get:
Error in R_nc4_open: NetCDF: Unknown file format
Also tried:
tidync::tidync("A20020012002365.L3b_YR_CHL.nc")
nc <- RNetCDF::open.nc("A20020012002365.L3b_YR_CHL.nc")
RNetCDF::print.nc(nc)
file <- RNetCDF::open.nc("A20020012002365.L3b_YR_CHL.nc")
ncdf4::nc_open("A20020012002365.L3b_YR_CHL.nc", verbose=TRUE, readunlim = FALSE, suppress_dimvals = TRUE)
none of those worked