createLatLongTime: Create empty lat/lon/time netCDF file

Description

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

Usage

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

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

Nothing is returned but a file is created. TODO: units has to work with more than one variable

Author(s)

Jannis v. Buttlar


Questions? Problems? Suggestions? or email at ian@mutexlabs.com.

All documentation is copyright its authors; we didn't write any of that.