Skip to content

Commit

Permalink
Improving the previous commit: change default values and comments
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanSunNOAA committed Nov 2, 2023
1 parent 4a7eeb3 commit adc79a3
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 12 deletions.
4 changes: 2 additions & 2 deletions driver_scripts/driver_grid.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ export lake_data_srce=MODISP_GLDBV3
if [ $gtype = uniform ]; then
export res=96
export add_lake=true # Add lake frac and depth to orography data.
export lake_cutoff=0.50 # ignore lake_frac < lake_cutoff when add_lake=T
export binary_lake=1 # return '1 > lake_frac >= lake_cutoff' as 1/0 when binary_lake=1/0
export lake_cutoff=0.50 # return 0 if lake_frac < lake_cutoff & add_lake=T
export binary_lake=1 # return 1 if lake_frac >= lake_cutoff & add_lake=T
elif [ $gtype = stretch ]; then
export res=96
export stretch_fac=1.5 # Stretching factor for the grid
Expand Down
4 changes: 2 additions & 2 deletions driver_scripts/driver_grid.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@ export lake_data_srce=MODISP_GLDBV3
if [ $gtype = uniform ]; then
export res=96
export add_lake=true # Add lake frac and depth to orography data.
export lake_cutoff=0.50 # ignore lake_frac < lake_cutoff when add_lake=T
export binary_lake=1 # return '1 > lake_frac >= lake_cutoff' as 1/0 when binary_lake=1/0
export lake_cutoff=0.50 # return 0 if lake_frac < lake_cutoff & add_lake=T
export binary_lake=1 # return 1 if lake_frac >= lake_cutoff & add_lake=T
elif [ $gtype = stretch ]; then
export res=96
export stretch_fac=1.5 # Stretching factor for the grid
Expand Down
4 changes: 2 additions & 2 deletions driver_scripts/driver_grid.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -110,8 +110,8 @@ export lake_data_srce=MODISP_GLDBV3
if [ $gtype = uniform ]; then
export res=96
export add_lake=true # Add lake frac and depth to orography data.
export lake_cutoff=0.50 # ignore lake_frac < lake_cutoff when add_lake=T
export binary_lake=1 # return '1 > lake_frac >= lake_cutoff' as 1/0 when binary_lake=1/0
export lake_cutoff=0.50 # return 0 if lake_frac < lake_cutoff & add_lake=T
export binary_lake=1 # return 1 if lake_frac >= lake_cutoff & add_lake=T
elif [ $gtype = stretch ]; then
export res=96
export stretch_fac=1.5 # Stretching factor for the grid
Expand Down
4 changes: 2 additions & 2 deletions driver_scripts/driver_grid.wcoss2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -109,8 +109,8 @@ export lake_data_srce=MODISP_GLDBV3
if [ $gtype = uniform ]; then
export res=96
export add_lake=true # Add lake frac and depth to orography data.
export lake_cutoff=0.50 # ignore lake_frac < lake_cutoff when add_lake=T
export binary_lake=1 # return '1 > lake_frac >= lake_cutoff' as 1/0 when binary_lake=1/0
export lake_cutoff=0.50 # return 0 if lake_frac < lake_cutoff & add_lake=T
export binary_lake=1 # return 1 if lake_frac >= lake_cutoff & add_lake=T
elif [ $gtype = stretch ]; then
export res=96
export stretch_fac=1.5 # Stretching factor for the grid
Expand Down
2 changes: 2 additions & 0 deletions reg_tests/grid_gen/c96.uniform.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@ export res=96
export gtype=uniform
export add_lake=true
export lake_data_srce=MODISP_GLDBV3
export lake_cutoff=0.50
export binary_lake=1

NCCMP=${NCCMP:-$(which nccmp)}

Expand Down
4 changes: 2 additions & 2 deletions sorc/orog_mask_tools.fd/lake.fd/lakefrac.F90
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@ PROGRAM lake_frac
CALL getarg(5, lakedepth_srce)

IF (iargc() == 5) THEN
lake_cutoff = 0.20
binary_lake = 0
lake_cutoff = 0.50
binary_lake = 1
ELSE
CALL getarg(6, arg)
READ(arg,*,iostat=stat) lake_cutoff
Expand Down
4 changes: 2 additions & 2 deletions ush/fv3gfs_driver_grid.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ export gtype=${gtype:-uniform} # grid type: uniform, stretch, nest, regional_gf
# or regional_esg

export add_lake=${add_lake:-false} # add lake fraction and depth. uniform only.
export lake_cutoff=${lake_cutoff:-0.20} # ignore lake_frac < lake_cutoff when add_lake=T
export binary_lake=${binary_lake:0} # return '1 > lake_frac >= lake_cutoff' as 1/0 when binary_lake=1/0
export lake_cutoff=${lake_cutoff:-0.50} # return 0 if lake_frac < lake_cutoff & add_lake=T
export binary_lake=${binary_lake:-1} # return 1 if lake_frac >= lake_cutoff & add_lake=T

export make_gsl_orog=${make_gsl_orog:-false} # when true, create GSL drag suite orog files.

Expand Down

0 comments on commit adc79a3

Please sign in to comment.