This function renders a difference plot (absolute or relative) of two variables.
cmsaf.diff(
var1,
infile1,
var2,
infile2,
outfile,
plot.out = FALSE,
relative = FALSE,
nc34 = 4,
overwrite = FALSE,
verbose = FALSE,
toolbox = FALSE,
nc1 = NULL,
nc2 = NULL
)A NetCDF file is written.
Name of the first NetCDF variable (character).
Filename of the first input NetCDF file. This may include the directory (character).
Name of the second NetCDF variable (character).
Filename of the second input NetCDF file. This may include the directory (character).
Filename of output NetCDF file. This may include the directory (character).
logical; if TRUE, the plot will be stored in the same folder as outfile. If FALSE, the plot will not be saved.
logical; if TRUE, plot a relative difference plot
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
logical; if TRUE, toolbox mode enabled. The two files are adjusted in space and time so that they can be plotted.
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).
Other 2d visualization:
cmsaf.side.by.side()