Description Usage Arguments Value Author(s)
View source: R/createLatLongTime.R
this function creates an empty standardized latitude/longitude/time netCDF file.
1 2 3 4 5 | createLatLongTime(file.name, var.names = sub("[.]nc", "", file.name),
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), scale_factor = 1, add_offset = 0,
type.var = "NC_DOUBLE", missing_value = -9999, units = "[]")
|
file.name |
character string: name of the target file. |
var.names |
character vector: names of the variables in the target file. |
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 |
scale_factor |
numeric: scale factor |
add_offset |
numeric: offset |
type.var |
character string: type of the data |
missing_value |
numeric: missing data value |
units |
character string: units of the variables in target file. |
Nothing is returned but a file is created. TODO: units has to work with more than one variable
Jannis v. Buttlar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.