Learn R Programming

ncdf.tools (version 0.7.1.295)

createLatLongTime: Create empty lat/lon/time netCDF file

Description

this function creates an empty standardized latitude/longitude/time netCDF file.

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
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.

Value

TODO: units has to work with more than one variable