nc_write: nc_write

Description Usage Arguments Details Note

Description

Quickly write content to netcdf following a netcdf template file

Usage

1
nc_write(nctempfile, file, varname, data, append = FALSE, ...)

Arguments

nctempfile

path to netcdf template (see details)

file

path to output netcdf file

varname

variable name to write output to (if set to NULL, the first variable in the template file will be used)

data

array (or vector) containing the data to be written to the output file

append

logical, should data be appended to existing netcdf file?

...

additional parameters passed to ncvar_put

Details

This function copies an already existing NetCDF file to the new location and writes data to the variable indicated by varname. The dimensions and all other attributes are copied from nctempfile.

Note

The climate data operators cdo command line tool is used to produce an empty netcdf file


jonasbhend/myhelpers documentation built on May 19, 2019, 7:27 p.m.