Description Usage Arguments Value Author(s)
This function transforms a binary data file to a netCDF file formatted in a standardized way.
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)
|
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. |
Nothing is returned but a netCDF file with a standardized name is written in the working directory.
Jannis v. Buttlar
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.