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

Program regrid

Contact:  Zhi Liang
Reviewers: 
Change History: WebCVS Log


OVERVIEW

This program remap data from any grid (tripolar or spherical) to any grid.

This program expects to read data from a netcdf file, which is specfied by the namelist variable "src_data". The number of data to be remapped is specified by num_flds. The name of field to be remapped is specified by the namelist variable "fld_name". The source data should be on the source grid which is specified by namelist variable src_grid. The destination grid is specified by nml dst_grd. The output file is a netcdf file specified by the namelist variable "dst_data". Each field can be a scalar variable or a vector field, which is specified by vector_fld. The vector field should always be paired together. Vertical interpolation will be performed when namelist do_vertical_interp is set to true.


MODULES USED

         mpp_mod
mpp_domains_mod
fms_mod
fms_io_mod
constants_mod
horiz_interp_mod

PUBLIC INTERFACE



PUBLIC DATA

None.


PUBLIC ROUTINES


    NAMELIST

    &regrid_nml

    num_flds
    Number of fields.
    [integer, default: 0]
    src_data
    Name of input file containing to-be-remapped data.
    [character(len=128)]
    dst_data
    Name of output file containing after-remapped data.
    [character(len=128)]
    dst_grid
    Name of grid descriptor file containing target grid information.
    [character(len=128)]
    src_grid
    Name of grid descriptor file containing source grid information.
    [character(len=128)]
    fld_name
    Name of runoff field in input file.
    [character(len=128), dimension(max_flds)]
    fld_pos
    Name of grid where the field located. Valid choices are (T)racer, (C)orner, (E)ast and (N)orth.
    [character(len=1),dimension(max_flds), default: T]
    vector_field
    True if fields are vector components. All the vector field should be paired together. That is, if vector_field(n) is .true., then vector_field(n+1) should be true.
    [logical,dimension(max_flds), default: False]
    stop_crit
    The stopping criteria when extrapping data onto missing points.
    [character(len=1),dimension(max_flds), default: 0.001]
    num_nbrs
    Number of nearest neighbors for regridding.
    [integer]
    max_dist
    Maximum region of influence around destination grid points.
    [real, units: radians]
    do_vertical_interp
    logical variable to indicate if there is vertical interpolation. If true, vertical interpolation will be done on each level of destination grid. If false, no vertical interpolation. The destination grid mask will determine where is ocean.
    [logical]
    do_laplace_extrap
    logical variable to indicate if the laplacian extrapolation will be done when doing vertical interpolation. If true, will do lapacian extrapolation. when do_vertical_interp is false, laplacian extrapolation will be done regardless the value of do_laplace_extrap
    [logical, default: FALSE]


    DATA SETS

    None.


    ERROR MESSAGES

    None.


    top