Usage
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 = "[]")
Arguments
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
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.