createLatLongTime: createLatLongTime

Description Usage Arguments Details Value Author(s)

View source: R/createLatLongTime.R

Description

create empty lat/lon/time ncdf file

Usage

1
2
3
4
5
createLatLongTime(file.name, varNames = sub("[.]nc", 
    "", file.name), lat.values = c(), long.values = c(), 
    time.values = c(), lat.length = length(lat.values), 
    long.length = length(long.values), time.length = length(time.values), 
    ..., units = "1", timeVar = "time", user = Sys.info()["user"])

Arguments

file.name

character string: name of the target file.

varNames

character vector: names of the variablesin 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: 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

...

further arguments to modifyNcdfAddVars

units

string vector: units of the variables in target file.

timeVar

the name of the time variable

user

user name put to history entry

Details

Creates an empty standardized latitude/longitude/time ncdf 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, Thomas Wutzler


bgctw/ncdfTools documentation built on Jan. 29, 2020, 1:16 p.m.