Skip to content

Commit ecda649

Browse files
Yujin ZengYujin Zeng
authored andcommitted
Add documentation for version information in mk_runofftbl.f90 and add version arg in make_bcs_latlon.py and make_bcs_cube.py
1 parent 6b1395d commit ecda649

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/make_bcs_cube.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
/bin/mv rst/Pfafstetter-M.rst rst/Pfafstetter.rst
5454
bin/CombineRasters.x -f 0 -t {NT} {OCEAN_VERSION}{DATENAME}{IMO}x{POLENAME}{JMO} Pfafstetter >/dev/null
5555
bin/CombineRasters.x -t {NT} CF{NC}x6C{SGNAME} {OCEAN_VERSION}{DATENAME}{IMO}x{POLENAME}{JMO}-Pfafstetter
56-
bin/mk_runofftbl.x CF{NC}x6C{SGNAME}_{OCEAN_VERSION}{DATENAME}{IMO}x{POLENAME}{JMO}-Pfafstetter
56+
bin/mk_runofftbl.x -g CF{NC}x6C{SGNAME}_{OCEAN_VERSION}{DATENAME}{IMO}x{POLENAME}{JMO}-Pfafstetter -v {lbcsv}
5757
setenv OMP_NUM_THREADS 1
5858
if ({SKIPLAND} != True) bin/mkCatchParam.x -x {NX} -y {NY} -g CF{NC}x6C{SGNAME}_{OCEAN_VERSION}{DATENAME}{IMO}x{POLENAME}{JMO}-Pfafstetter -v {lbcsv}
5959
endif

GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/make_bcs_latlon.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
/bin/mv rst/Pfafstetter-M.rst rst/Pfafstetter.rst
4242
bin/CombineRasters.x -f 0 -t {NT} {DATENAME}{IMO}x{POLENAME}{JMO} Pfafstetter >/dev/null
4343
bin/CombineRasters.x -t {NT} DC{IM}xPC{JM} {DATENAME}{IMO}x{POLENAME}{JMO}-Pfafstetter
44-
bin/mk_runofftbl.x DC{IM}xPC{JM}_{DATENAME}{IMO}x{POLENAME}{JMO}-Pfafstetter
44+
bin/mk_runofftbl.x -g DC{IM}xPC{JM}_{DATENAME}{IMO}x{POLENAME}{JMO}-Pfafstetter -v {lbcsv}
4545
setenv OMP_NUM_THREADS 1
4646
if ( {SKIPLAND} != True ) bin/mkCatchParam.x -x {NX} -y {NY} -g DE{IMO}xPE{JMO}_DE{IMO}xPE{JMO}-Pfafstetter -v {lbcsv}
4747
setenv OMP_NUM_THREADS {NCPUS}

GEOSagcm_GridComp/GEOSphysics_GridComp/GEOSsurface_GridComp/Utils/Raster/makebcs/mk_runofftbl.F90

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,20 @@ program mk_runofftbl
1313
! This program generates the runoff table *.trn and *.TRN files that are used in the Catchment model for
1414
! directing runoff to its ocean sink. The inputs are (i) bcs geometry files associated with the Gridname
1515
! and (ii) a binary file ("Outlet_latlon.43200x21600") that provides the land raster grid cells where the
16-
! outlets are located. The latter file is created by [..]/Raster/preproc/routing/run_routing_raster.py.
16+
! outlets are located. The latter file is either created by [..]/Raster/preproc/routing/run_routing_raster.py
17+
! or from Randy's ([email protected]) old file under {MAKE_BCS_INPUT_DIR}/land/route/v1.
1718
! The program first moves the outlet locations from the land raster grid cells to the nearest ocean pixels
18-
! by calling outlets_to_ocean() and then generates the runoff table files.
19-
! The program currently works only for the MOM5 and MOM6 tripolar ocean grids.
19+
! by calling outlets_to_ocean() (only with bcs version v11, v12 or later) and then generates the runoff table files.
20+
! The program outlets_to_ocean() currently works only for the MOM5 and MOM6 tripolar ocean grids.
21+
!
22+
!Basically based on bcs version we would use have these 3 options:
23+
!=======================================================
24+
!bcs version --> Outlet lat/lon file version
25+
!---------------------------------------------------
26+
!v12 --> (new) v2 (produced with Yujin's pre-processing routines)
27+
!v11 --> (old) v1 (produced with Randy's old file)
28+
!otherwise --> n/a (produced with Randy's old file, but do not move outlet locations to ocean)
29+
!=========================================================
2030
!
2131
! Yujin Zeng - June 17, 2024
2232

0 commit comments

Comments
 (0)