! 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.
!
!
!
use mpp_mod, only : mpp_error, FATAL, NOTE, mpp_pe, mpp_npes
use mpp_io_mod, only : mpp_open, mpp_close, mpp_read, mpp_write, mpp_write_meta
use mpp_io_mod, only : MPP_RDONLY, MPP_NETCDF, MPP_SINGLE, MPP_ASCII, MPP_OVERWR
use mpp_io_mod, only : axistype, fieldtype, atttype, mpp_get_atts, mpp_get_info
use mpp_io_mod, only : mpp_get_axes, mpp_get_fields, mpp_get_axis_data, mpp_copy_meta
use mpp_io_mod, only : mpp_get_att_char, mpp_get_att_name, mpp_get_att_real_scalar
use mpp_io_mod, only : mpp_get_att_type, mpp_get_att_real
use fms_mod, only : fms_init, fms_end, file_exist, close_file, stdout
use fms_mod, only : open_namelist_file, check_nml_error, write_version_number
use constants_mod, only : constants_init
use topog_mod, only : process_topo, show_deepest, set_topog_nml
implicit none
#include