Description Usage Arguments Value Author(s)
This function writes an empty netCDF file with variable names, dimensions and attributes formatted in a standardized way.
1 2 3 4 5 6 | createStdNcdfFile(var.names, file.name = c(), units = "[]", lat.values = c(),
long.values = c(), time.values = c(), add.dims = list(),
lat.length = length(lat.values), long.length = length(long.values),
time.length = length(time.values), year.start.end = c(),
scale_factor = 1, add_offset = 0, type.var = "NC_DOUBLE",
missing_value = -9999, con.atts = c(), data = c())
|
var.names |
character string: name of the target variable in the file |
file.name |
character string: name of the file. If not given, this is determined automatically in a standardized way from the variable name and the dimension extends. |
units |
character string: units of variable (should be compatible with udunits) |
lat.values |
numeric values: coordinate values for the latitude positions. |
long.values |
numeric values: coordinate values for the latitude positions. |
time.values |
POSIXct vector: time values for the time dimension |
add.dims |
|
lat.length |
integer: length of the latitude dimension |
long.length |
integer: length of the longitude dimension |
time.length |
integer: length of the time dimension |
year.start.end |
integer vector (length two): start and end year. If not given, this is determined from the time vector. |
scale_factor |
numeric: scale factor |
add_offset |
numeric: offset |
type.var |
character string: type of the data |
missing_value |
numeric: missing data value |
con.atts |
RNetCDF file connection: Possible file to use as source for copying attributes to the new file. |
data |
character string: name off the file created.
Jannis v. Buttlar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.