21 character(len=200) :: pth1
22 character(len=200) :: pth2,pth3
23 character(len=10) :: atmres,ocnres
25 integer :: binary_lake
26 integer :: lat,lon,tile
28 real,
allocatable :: lake_frac(:,:),lake_depth(:,:),land_frac(:,:),ocn_frac(:,:),slmsk(:,:),lat2d(:,:)
30 print*,
"- BEGIN OCEAN MERGE PROGRAM." 32 call read_nml(pth1, pth2, atmres, ocnres, pth3,binary_lake)
36 call read_grid_dims(pth1, atmres, ocnres, tile, lon, lat)
39 write(6,*)
'lat=',lat,
'lon=',lon
40 allocate (lake_frac(lon,lat),lake_depth(lon,lat),land_frac(lon,lat), &
41 ocn_frac(lon,lat),slmsk(lon,lat),lat2d(lon,lat))
44 call read_ocean_frac(pth1,atmres,ocnres,tile,lon,lat,ocn_frac)
46 call read_lake_mask(pth2,atmres,tile,lon,lat,lake_frac, &
49 call merge(lon, lat, binary_lake, lat2d, ocn_frac, lake_frac, lake_depth, land_frac, slmsk)
51 call write_data(atmres,ocnres,pth3,tile,lon,lat,land_frac, &
52 lake_frac,lake_depth,slmsk)
56 deallocate (lake_frac,lake_depth,land_frac,ocn_frac,slmsk,lat2d)
58 print*,
"- NORMAL TERMINATION." program merge_lake_ocnmsk
Determine the water mask by merging the lake mask with the mapped ocean mask from MOM6...