nco: NCO operators

Description Usage Arguments Details Examples

Description

Provides an interface to the (external to R) NetCDF Operators (NCO)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23

Arguments

defaults

Character string supplying the defaults to be used by CDO

...

List of arguments to be converted to a text string

debug

Doesn't run the command, but returns the command that would be run

Details

Default options for nco can be set at the system wide level using the set.nc.defaults() command. Two of the most useful of these include "–overwrite" (to overwrite files by default) and "–netcdf4" to force NetCDF4 output. See the documentation of NCO for more.

Examples

1
2
3
4
5
6
# Note, to run this in the wild, remove the debug=TRUE arguments
set.nco.defaults("--overwrite")
in.fname <- "tos_Omon_IPSL-CM5A-LR_historical_r1i1p1_185001-200512.nc"
out.fname <- "foo.nc"
ncra(in.fname,out.fname,debug=TRUE)
ncwa(in.fname,out.fname,debug=TRUE)

markpayneatwork/ClimateOperators documentation built on June 19, 2021, 7:26 p.m.