The function subtracts the fields of infile2 from the fields of infile1. Infiles have to have the same spatial and temporal dimension.
cmsaf.sub.rel(
var1,
infile1,
var2,
infile2,
outfile,
nc34 = 4,
overwrite = FALSE,
verbose = FALSE,
nc1 = NULL,
nc2 = NULL
)
A NetCDF file including the subtracted fields of infile1 and infile2 is written.
Name of variable in infile1 (character).
Filename of first input NetCDF file. This may include the directory (character).
Name of variable in infile2 (character).
Filename of second input NetCDF file. This may include the directory (character).
Filename of output NetCDF file. This may include the directory (character).
NetCDF version of output file. If nc34 = 3
the output file will be
in NetCDFv3 format (numeric). Default output is NetCDFv4.
logical; should existing output file be overwritten?
logical; if TRUE, progress messages are shown
Alternatively to infile1
you can specify the input as an
object of class ncdf4
(as returned from ncdf4::nc_open
).
Alternatively to infile2
you can specify the input as an
object of class ncdf4
(as returned from ncdf4::nc_open
).