This module contains operators for a nearest neighbor remapping of fields between grids in spherical coordinates.
Usage
cdo_gennn(ifile, grid = NULL, map3d = NULL, ofile = NULL)
cdo_remapnn(ifile, grid = NULL, map3d = NULL, ofile = NULL)
Value
Operators that output one or more files return a character vector to the output files.
Operators that output an indefinite number of files return a string with the basename of the files.
Operatos that don't return filenames return a character vector with the string output.
Details
remapnn Nearest neighbor remapping
Performs a nearest neighbor remapping on all input fields.
gennn Generate nearest neighbor remap weights
Generates nearest neighbor remapping weights for the first input field and writes the result to a file.
The format of this file is NetCDF following the SCRIP convention.
Use the operator remap to apply this remapping weights to a data file with the same source grid.
Set the parameter map3d=true to generate all mapfiles of the first 3D field with varying masks.
In this case the mapfiles will be named <outfile><xxx>.nc. xxx will have five digits with the number of the mapfile.