createLatLongTime: Create empty lat/lon/time netCDF file

Description Usage Arguments Value Author(s)

View source: R/createLatLongTime.R

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


ncdf.tools documentation built on May 2, 2019, 5:16 p.m.