ncvar_change_compression: Change the compression of the variables in a ncdf object.

View source: R/nctools-auxiliar.R

ncvar_change_compressionR Documentation

Change the compression of the variables in a ncdf object.

Description

Change the compression of the variables in a ncdf object.

Usage

ncvar_change_compression(nc, varid = NA, compression)

Arguments

nc

An open connection to a netCDF file as in nc_open(file, write=TRUE).

varid

Either the name of the variable or an ncvar object indicating whose compression value will be changed. If NA, all the variables will be changed to the new compression.

compression

The new compression value.


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