Description Usage Arguments Value See Also
arraytonc
creates a new netCDF file from an array object.
1 |
a |
the array containing the data to be used to create the new netCDF file. |
fileout |
the name and location of the nteCDF file to be created. |
varname |
the name of the variable to be created (character string). |
units |
The variable's units (character string). Or, pass a zero length string (") to have no units attribute. |
r |
a raster file with extent parameters that the new netCDF file should follow. |
tme |
an object of class |
baseyear |
the calendar year that measurements began. |
an object of class ncdf4 that has the fields described above and is saved to the location specified by 'fileout'.
the tmecreate()
function can be used to create a POSIXlt object.
mydata <- array(rnorm(1460), dim = c(2,2,1460)) r <- raster(mydata,,1) tme <- tmecreate(2010, 6) arraytonc (mydata, "new.nc", varname = "6-hourly air temperature", units = "degrees Celcius", r, tme, baseyear = 1900)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.