Description Usage Arguments Value Author(s) See Also Examples
Method to save station 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.
1 2 3 | write2ncdf(x,file,...)
write2ncdf.station(x,file,prec='short',missval=-99.9,offs=0,scalf=0.1,
torg='1899-12-31',verbose=FALSE)
|
x |
data object |
file |
file name |
prec |
Precision: see |
missval |
Missing value: see |
offs |
Sets the attribute 'add_offset' which is added to the values stored (to save space may be represented as 'short'). |
scalf |
Sets the atttribute 'scale_factor' which is used to scale (multiply) the values stored (to save space may be represented as 'short'). |
torg |
Time origin |
verbose |
TRUE - clutter the screen. |
A "zoo" "field" object with additional attributes used for further processing.
R.E. Benestad
1 2 3 | nacd <- station(src='nacd')
X <- annual(nacd)
write2ncdf(X,file='test.nc')
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.