nc2time | R Documentation |
ncdf4
-object as as.Date
-object
reads and converts the time variable of a netcdf-file ('.nc'-file) or ncdf4
-object as as.Date
-object.
nc2time(nc,varname)
nc |
character string indicating the filepath to a netcdf-file ('.nc'-file), or a |
varname |
character string indicating the name of the time vaiable of the netcdf-file. |
Robert K. Bauer
path <- system.file("test_files", package="oceanmap")
nfile <- Sys.glob(paste0(path,'/herring*.nc')) # load sample-'.nc'-files
head(nc2time(nfile))
library('ncdf4')
nc <- nc_open(nfile)
head(nc2time(nc))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.