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

Program edit_grid

Contact: Z. Liang
Reviewers: S. M. Griffies
Change History: WebCVS Log


OVERVIEW

edit grid topography.

This program can edit the topography of input grid_spec file "orig_grid" according to the ascii input file "grid_edits". Then it will output the new grid_spec file "mod_grid". The program read file "grid_edits" line by line. Each line contains grid points position and new topography value of those grid points. The grid points position is specified by the grid index. You can specify a point or a region at each line. For example,
 100, 60, 0 
 will set the depth at point (100,60) to 0. 
 40:45, 30:34, 1000
 will set the depth at region ( index i from 54 to 50 and j from 30 to 34 ) to 1000.


MODULES USED

      mpp_mod
mpp_io_mod
fms_mod
constants_mod
topog_mod

PUBLIC INTERFACE



PUBLIC DATA

None.


PUBLIC ROUTINES


    NAMELIST

    &edit_grid_nml

    mod_grid
    original grid file
    [character(len=128)]
    orig_grid
    output grid file after modification.
    [character(len=128)]
    grid_edits
    input text file. Each line is in the format as "is:ie, js:je, depth", which means set the depth at region (is:ie, js:je) to value "depth". is and ie can be equal or different. js and je can be same or different.
    [character(len=128)]
    debug
    Control standard output. Default value is false.
    [logical]


    DATA SETS

    None.


    ERROR MESSAGES

    None.


    top