write_ncdf: Data output in ncdf format

View source: R/nctools-main.R

write_ncdfR Documentation

Data output in ncdf format

Description

Data output in ncdf format

Usage

write_ncdf(x, filename, ...)

Arguments

x

An array to write to a ncdf file.

filename

The file to write.

varid

The name of the variable in the ncdf file.

dim

A list with the values of the dimensions. Names are taken from the list.

longname

The longname for the variable to be created.

units

The units for the variable to be created.

prec

The precision for the variable to be created.

missval

Value set for NAs.

compression

If set to an integer between 1 (least compression) and 9 (most compression), this enables compression for the variable as it is written to the file. Turning compression on forces the created file to be in netcdf version 4 format, which will not be compatible with older software that only reads netcdf version 3 files.

chunksizes

For compression, the size of the chunks.

verbose

Do you want to know what's happening?

dim.units

Units of the dimensions

dim.longname

Longname of the dimensions.

unlim

Name of the unlimited dimension.

global

List of global attributes to be saved.


roliveros-ramos/nctools documentation built on Aug. 13, 2022, midnight