Skip to content

Commit

Permalink
set lat type to cap for ncremap
Browse files Browse the repository at this point in the history
* generate destination rectilinear grids with ncremap
using lat type "cap"
  • Loading branch information
DeniseWorthen committed Oct 8, 2023
1 parent 751bb18 commit a9309cb
Showing 1 changed file with 6 additions and 12 deletions.
18 changes: 6 additions & 12 deletions ush/cpld_gridgen.sh
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,7 @@ if [ $RESNAME = 100 ]; then
export EDITSFILE=topo_edits_011818.nc
if [ $DO_POSTWGTS == .true. ]; then
#pre-generate SCRIP files for dst rectilinear grids using NCO
# TODO: is the stagger really correct? The first pt is at 0.0E?
# should lat_type be cap? #lon_typ=grn_ctr#lat_typ=cap
ncremap -g ${OUTDIR_PATH}/rect.1p0_SCRIP.nc -G latlon=181,360#lon_typ=grn_ctr
ncremap -g ${OUTDIR_PATH}/rect.1p0_SCRIP.nc -G latlon=181,360#lon_typ=grn_ctr#lat_typ=cap
fi
fi

Expand All @@ -77,10 +75,8 @@ if [ $RESNAME = 050 ]; then
export EDITSFILE='none'
if [ $DO_POSTWGTS == .true. ]; then
#pre-generate SCRIP files for dst rectilinear grids using NCO
# TODO: is the stagger really correct? The first pt is at 0.0E?
# should lat_type be cap? #lon_typ=grn_ctr#lat_typ=cap
ncremap -g ${OUTDIR_PATH}/rect.1p0_SCRIP.nc -G latlon=181,360#lon_typ=grn_ctr
ncremap -g ${OUTDIR_PATH}/rect.0p5_SCRIP.nc -G latlon=361,720#lon_typ=grn_ctr
ncremap -g ${OUTDIR_PATH}/rect.1p0_SCRIP.nc -G latlon=181,360#lon_typ=grn_ctr#lat_typ=cap
ncremap -g ${OUTDIR_PATH}/rect.0p5_SCRIP.nc -G latlon=361,720#lon_typ=grn_ctr#lat_typ=cap
fi
fi

Expand All @@ -91,11 +87,9 @@ if [ $RESNAME = 025 ]; then
export EDITSFILE=All_edits.nc
if [ $DO_POSTWGTS == .true. ]; then
#pre-generate SCRIP files for dst rectilinear grids using NCO
# TODO: is the stagger really correct? The first pt is at 0.0E?
# should lat_type be cap? #lon_typ=grn_ctr#lat_typ=cap
ncremap -g ${OUTDIR_PATH}/rect.1p0_SCRIP.nc -G latlon=181,360#lon_typ=grn_ctr
ncremap -g ${OUTDIR_PATH}/rect.0p5_SCRIP.nc -G latlon=361,720#lon_typ=grn_ctr
ncremap -g ${OUTDIR_PATH}/rect.0p25_SCRIP.nc -G latlon=721,1440#lon_typ=grn_ctr
ncremap -g ${OUTDIR_PATH}/rect.1p0_SCRIP.nc -G latlon=181,360#lon_typ=grn_ctr#lat_typ=cap
ncremap -g ${OUTDIR_PATH}/rect.0p5_SCRIP.nc -G latlon=361,720#lon_typ=grn_ctr#lat_typ=cap
ncremap -g ${OUTDIR_PATH}/rect.0p25_SCRIP.nc -G latlon=721,1440#lon_typ=grn_ctr#lat_typ=cap
fi
fi

Expand Down

0 comments on commit a9309cb

Please sign in to comment.