PUBLIC INTERFACE ~ PUBLIC DATA ~ PUBLIC ROUTINES ~ NAMELIST ~ DIAGNOSTIC FIELDS ~ ERROR MESSAGES ~ REFERENCES ~ NOTES

Program regrid_2d

Contact: M.J. Harrison
Reviewers: Bonnie SamuelsZhi Liang
Change History: WebCVS Log


OVERVIEW

regrid 2-d lat-lon gridded data to logically rectangular grid described by grid descriptor file. If two fields are specified for regridding, it is assumed that they represent vector components. Rotation to the local grid direction on the target grid will be performed.



MODULES USED

         mpp_mod
mpp_io_mod
mpp_domains_mod
horiz_interp_mod
axis_utils_mod
fms_mod
constants_mod

PUBLIC INTERFACE



PUBLIC DATA

None.


PUBLIC ROUTINES


    NAMELIST

    &regrid_2d_nml

    src_file
    Name of input file containing grid and data to be regridded.
    [character(len=128), default: src_file.nc]
    src_field_name
    Name of input field(s).
    [character(len=128),dimension(2)]
    dest_field_name
    Name of out field(s).
    [character(len=128),dimension(2)]
    dest_grid
    Name of grid descriptor file containing target grid information.
    [character(len=128), default: dest_grid.nc]
    dest_file
    Name of output file.
    [character(len=128), default: dest_file.nc]
    numfields
    Number of fields (1 or 2). If numfields=2, then the fields are assumed to represent vector components.
    [integer, default: 1]
    dest_grid_type
    Name of target grid. Valid choices are (T)racer and (C)orner
    [character(len=1), default: T]
    stop_crit
    The stopping criteria when extrapping data onto missing points.
    [character(len=1),dimension(2), default: 0.001]
    apply_dest_mask
    flag to indicate if the land/sea mask of destination grid will be applied on the output dest_file. when true, land/sea mask of destination grid will be applied on the output dest_file. When false, the output data will be global data. Default is true.
    [logical, default: true]
    vector_field
    True if fields are vector components.
    [logical, default: False]
    level
    Vertical level from the source grid if one exists.
    [integer, default: 1]
    num_nbrs
    Number of nearest neighbors for regridding
    [integer, default: 10]
    max_dist
    Maximum radial influence for regridding.
    [integer, units: radians, default: 0.17]
    scale_factor
    scaling factor for data (e.g. -1 to flip sign or 0.01 to convert from centimeters)
    [real,dimension(2) ]
    interp_method
    specifying the remapping method when remampping data onto current grid. Its value can be "spherical" or " bilinear". Default value is "bilinear". "bilinear" interpolation is recommanded, since bilinear interpolation will provide more smooth results than "spherical" interpolation (especially when interpolating from coarse grid to fine grid). Plus bilinear interpolation is much more efficiency than "spherical interpolation". The reason to have "spherical" option is for backward compatibility.
    [character(len=20)]


    DATA SETS

    None.


    ERROR MESSAGES

    None.


    top