write2ncdf4.list | R Documentation |
Method to save data as netCDF, making sure to include the data
structure and meta-data (attributes). The code tries to follow the netCDf
'CF' convention. The method is built on the ncdf4
package.
## S3 method for class 'list'
write2ncdf4(
x,
...,
file = "field.nc",
prec = "short",
scale = 0.1,
offset = NULL,
torg = "1970-01-01",
missval = -999,
verbose = FALSE
)
x |
data object |
... |
additional arguments |
file |
file name |
prec |
Precision: see |
scale |
Sets the atttribute 'scale_factor' which is used to scale (multiply) the values stored (to save space may be represented as 'short'). |
offset |
Sets the attribute 'add_offset' which is added to the values stored (to save space may be represented as 'short'). |
torg |
Time origin |
missval |
Missing value: see |
verbose |
if TRUE print progress |
start |
defines the start of the year (default is 'January') |
None
write2ncdf4
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.