Comparison between packages RnetCDF, ncdf4 and ncdf
Let use the same nc file obtained from NOAA ( http://www.esrl.noaa.gov/psd/data/gridded/data.noaa.oisst.v2.highres.html ) be used. Here I show the 3 ways to get annual data depending on the package used. utcal.nc from package RnetCDF is very useful. dest <- "sst.day.mean.2014.v2.nc" For all the package, I will use the same coordinates: lat=35, lon=28 # Note that the function ind_long_lat can be used data from any of these packages library(RNetCDF) dat.RNetCDF <- open.nc(dest) lat=35 lon=28 # it will be used for all data library(phenology) indice <- ind_long_lat(ncdf=dat.RNetCDF, long=lon, lat=lat) Packages RnetCDF point_SST.RNetCDF_corr <- var.get.nc(ncfile=dat.RNetCDF, variable="sst", start=c(indice ,1), count=c(1, 1, 1)) # Get the time label.time <- dim.inq.nc(dat.RNetCDF, 0)$name date.char <- utcal.nc(att.get.nc(dat.RNet...