@BeginModule
@Name      = Remap
@Title     = SCRIP grid remapping
@Section   = Interpolation
@Class     = Interpolation
@Arguments = ifile ofile
@Operators = remap
@EndModule


@BeginOperator_remap
@Title     = SCRIP grid remapping
@Parameter = grid weights

@BeginDescription
This operator remaps all input fields to a new horizontal grid. The remap type and 
the interpolation weights of one input grid are read from a netCDF file. The netCDF 
file with the weights should follow the \htmlref{SCRIP}{SCRIP} convention. Normally these weights 
come from a previous call to module @mod{GENWEIGHTS} or were created by the original
SCRIP package.
@EndDescription
@EndOperator


@BeginParameter
@Item = grid
STRING  Target grid description file or name
@Item = weights
STRING  Interpolation weights (SCRIP netCDF file)
@EndParameter


@BeginEnvironment
@Item = NORMALIZE_OPT
This variable is used to choose the normalization of the conservative 
interpolation. By default NORMALIZE_OPT is set to 'fracarea' and will
include the destination area fraction in the output weights; other 
options are 'none' and 'destarea' (for more information see \cite{SCRIP}).
@Item = REMAP_EXTRAPOLATE
This variable is used to switch the extrapolation feature 'on' or 'off'.
By default the extrapolation is enabled for remapdis, remapnn
and for circular grids.
@EndEnvironment


@BeginNote
For this module the author has converted the original Fortran 90 SCRIP 
software to ANSI C99. If there are any problems send a bug report to CDO and
not to SCRIP!
@EndNote


@BeginExample
Say @file{ifile} contains fields on a regular quadrilateral grid.
To remap all fields bilinear to a T42 Gaussian grid use:
@BeginVerbatim
   cdo genbil,t42grid ifile remapweights.nc
   cdo remap,t42grid,remapweights.nc ifile ofile
@EndVerbatim
@EndExample
