write_ncvar: Write data to netCDF file.

Description Usage Arguments

View source: R/nc4_relevents.R

Description

Write data to netCDF file.

Usage

1
write_ncvar(val, file, var, dims = c(), newvar = FALSE, units = "NULL")

Arguments

val

Values to be write to the file. Should be matrix or array.

file

Path of the netCDF file to be write.

var

Name of the variable to be write. If the variable is not exist and the parameter "newvar" set to TRUE then the variable would be create.

dims

A vector of string to determine the dimensions of the variable when create a new variable. If some dimensions was not determine, it would atuomatically find a dimension that fit it.

newvar

If is TRUE, if the variable is not exist, it would create a new variable. Default FALSE.

units

Units of the new variable if the new variable is created.


Sibada/sibadaR documentation built on Jan. 31, 2020, 6:40 p.m.