convertBinary2Ncdf: transform binary file to netCDF file

Description Usage Arguments Value Author(s)

Description

This function transforms a binary data file to a netCDF file formatted in a standardized way.

Usage

1
2
3
4
5
convertBinary2Ncdf(file.input, date.vec, length = 1, type = numeric(), 
    type.ncdf = "NC_DOUBLE", dimensions, dimension.values, signed = TRUE, 
    var.name, long_name = var.name, var.units = "[]", scale.factor.in = 1, 
    scale.factor.out = scale.factor.in, na.value.in = -9999, 
    na.value.out = na.value.in, offset.in = 0, offset.out = offset.in)

Arguments

file.input

character string: name of the input file.

date.vec

R date object: time vector for the time coordinate

length

integer: Length in bytes of each entry in the input file.

type

R data type of the data in the input file.

type.ncdf

character string: Desired data type in the netCDF file.

dimensions

character vector: Names of the dimensions in the binary file.

dimension.values

list: Each list element has to contain the coordinate values for the respective dimension.

signed

logical: Whether the binary file contains signed integer values.

var.name

character string: Short name of the variable in the binary file (used for the meta data in the NetCDF file).

long_name

character string: long name of the variable in binary file (used for the meta data in the NetCDF file).

var.units

character string: units of the variable (used for the meta data in the NetCDF file).

scale.factor.in

numeric: factor to multiply the binary input data with.

scale.factor.out

numeric: desired scale factor of the data in the netCDF file.

na.value.in

numeric: missing value for input data.

na.value.out

numeric: missing value for output data.

offset.in

numeric: offset for input data.

offset.out

numeric: offset for output data.

Value

Nothing is returned but a netCDF file with a standardized name is written in the working directory.

Author(s)

Jannis v. Buttlar


ncdf.tools documentation built on May 2, 2019, 4:19 a.m.