Skip to content

Commit

Permalink
Clean up scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
ShanSunNOAA committed Oct 20, 2023
1 parent 7a680cb commit 73b193a
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 16 deletions.
2 changes: 1 addition & 1 deletion driver_scripts/driver_grid.hera.sh
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ export soil_type_src="bnu.v3.30s" # Soil type data.
# 1) "bnu.v3.30s" for global 30s data.

# choose dataset sources for lakefrac & lakedepth so that lake_data_srce=LakeFrac_LakeDepth;
# available options are 'MODISP_GLDBV3', 'MODISP_GLOBATHY' & 'VIIRS_GLDBV3';
# available options are 'MODISP_GLDBV3', 'MODISP_GLOBATHY', 'VIIRS_GLDBV3', 'VIIRS_GLOBATHY' & 'GLDBV3'
export lake_data_srce=MODISP_GLDBV3

if [ $gtype = uniform ]; then
Expand Down
2 changes: 1 addition & 1 deletion driver_scripts/driver_grid.jet.sh
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export soil_type_src="bnu.v3.30s" # Soil type data.
# 5) "statsgo.30s" for global 30s data

# choose dataset sources for lakefrac & lakedepth so that lake_data_srce=LakeFrac_LakeDepth;
# available options are 'MODISP_GLDBV3', 'MODISP_GLOBATHY' & 'VIIRS_GLDBV3';
# available options are 'MODISP_GLDBV3', 'MODISP_GLOBATHY', 'VIIRS_GLDBV3', 'VIIRS_GLOBATHY' & 'GLDBV3'
export lake_data_srce=MODISP_GLDBV3

if [ $gtype = uniform ]; then
Expand Down
2 changes: 1 addition & 1 deletion driver_scripts/driver_grid.orion.sh
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export soil_type_src="bnu.v3.30s" # Soil type data.
# 5) "statsgo.30s" for global 30s data

# choose dataset sources for lakefrac & lakedepth so that lake_data_srce=LakeFrac_LakeDepth;
# available options are 'MODISP_GLDBV3', 'MODISP_GLOBATHY' & 'VIIRS_GLDBV3';
# available options are 'MODISP_GLDBV3', 'MODISP_GLOBATHY', 'VIIRS_GLDBV3', 'VIIRS_GLOBATHY' & 'GLDBV3'
export lake_data_srce=MODISP_GLDBV3

if [ $gtype = uniform ]; then
Expand Down
2 changes: 1 addition & 1 deletion driver_scripts/driver_grid.wcoss2.sh
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ export soil_type_src="bnu.v3.30s" # Soil type data
# 5) "statsgo.30s" for global 30s data

# choose dataset sources for lakefrac & lakedepth so that lake_data_srce=LakeFrac_LakeDepth;
# available options are 'MODISP_GLDBV3', 'MODISP_GLOBATHY' & 'VIIRS_GLDBV3';
# available options are 'MODISP_GLDBV3', 'MODISP_GLOBATHY', 'VIIRS_GLDBV3', 'VIIRS_GLOBATHY' & 'GLDBV3'
export lake_data_srce=MODISP_GLDBV3

if [ $gtype = uniform ]; then
Expand Down
20 changes: 8 additions & 12 deletions ush/fv3gfs_make_lake.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,28 +14,24 @@ if [ $gtype != uniform ] && [ $gtype != regional_gfdl ]; then
exit 0
fi
echo "lake_data_srce = $lake_data_srce"
if [ $lake_data_srce == GLDBV3 ]; then
lakestatusrc="GLDBV3"
if [ $lake_data_srce == MODISP_GLDBV3 ]; then
lakestatusrc="MODISP"
lakedepthsrc="GLDBV3"
fi
if [ $lake_data_srce == GLDBV2 ]; then
lakestatusrc="GLDBV2"
lakedepthsrc="GLDBV2"
fi
if [ $lake_data_srce == MODISP_GLOBATHY ]; then
lakestatusrc="MODISP"
lakedepthsrc="GLOBATHY"
fi
if [ $lake_data_srce == VIIRS_GLOBATHY ]; then
if [ $lake_data_srce == VIIRS_GLDBV3 ]; then
lakestatusrc="VIIRS"
lakedepthsrc="GLOBATHY"
fi
if [ $lake_data_srce == MODISP_GLDBV3 ]; then
lakestatusrc="MODISP"
lakedepthsrc="GLDBV3"
fi
if [ $lake_data_srce == VIIRS_GLDBV3 ]; then
if [ $lake_data_srce == VIIRS_GLOBATHY ]; then
lakestatusrc="VIIRS"
lakedepthsrc="GLOBATHY"
fi
if [ $lake_data_srce == GLDBV3 ]; then
lakestatusrc="GLDBV3"
lakedepthsrc="GLDBV3"
fi

Expand Down

0 comments on commit 73b193a

Please sign in to comment.