-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Lake fraction and depth in one regional domain #187
Merged
GeorgeGayno-NOAA
merged 3 commits into
ufs-community:develop
from
ShanSunNOAA:lake_SAR_20201025
Oct 27, 2020
Merged
Changes from all commits
Commits
Show all changes
3 commits
Select commit
Hold shift + click to select a range
5186965
From Ning Wang: this commit expands lake fraction and depth calculati…
ShanSunNOAA 67be759
From Ning Wang: this commit expands lake fraction and depth calculati…
ShanSunNOAA aca0d79
From Ning Wang: this commit expands lake fraction and depth calculati…
ShanSunNOAA File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -23,7 +23,7 @@ | |
# Note: The sfc_climo_gen program only runs with an | ||
# mpi task count that is a multiple of six. This is | ||
# an ESMF library requirement. Large grids may require | ||
# tasks spread across multiple nodes. The orography code | ||
# tasks spread across multiple nodes. The orography code | ||
# benefits from threads. | ||
# | ||
# To run, do the following: | ||
|
@@ -36,8 +36,9 @@ | |
# "regional_gfdl" - stand-alone gfdl regional grid | ||
# "regional_esg" - stand-alone extended Schmidt gnomonic | ||
# (esg) regional grid | ||
# 3) For "uniform" grids - to include lake fraction and | ||
# depth, set "add_lake" to true, and the "lake_cutoff" value. | ||
# 3) For "uniform" and "regional_gfdl" grids - to include lake | ||
# fraction and depth, set "add_lake" to true, and the | ||
# "lake_cutoff" value. | ||
# 4) For "stretch" and "nest" grids, set the stretching factor - | ||
# "stretch_fac", and center lat/lon of highest resolution | ||
# tile - "target_lat" and "target_lon". | ||
|
@@ -68,32 +69,32 @@ module list | |
# Set grid specs here. | ||
#----------------------------------------------------------------------- | ||
|
||
export gtype=uniform # 'uniform', 'stretch', 'nest' | ||
# 'regional_gfdl', 'regional_esg' | ||
|
||
export gtype=uniform # 'uniform', 'stretch', 'nest', | ||
# 'regional_gfdl', 'regional_esg' | ||
if [ $gtype = uniform ]; then | ||
export res=96 | ||
export add_lake=false # Add lake frac and depth to orography data. | ||
# Uniform grids only. | ||
export lake_cutoff=0.20 # lake frac less than lake_cutoff is ignored | ||
export add_lake=false # Add lake frac and depth to orography data. | ||
export lake_cutoff=0.20 # lake frac < lake_cutoff ignored when add_lake=T | ||
elif [ $gtype = stretch ]; then | ||
export res=96 | ||
export stretch_fac=1.5 # Stretching factor for the grid | ||
export target_lon=-97.5 # Center longitude of the highest resolution tile | ||
export target_lat=35.5 # Center latitude of the highest resolution tile | ||
elif [ $gtype = nest ] || [ $gtype = regional_gfdl ]; then | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I would set the default for add_lake to be false. And I would include a lake_cutoff variable. Please update the script prolog for these changes. The other four 'driver' scripts will need to be updated as well. |
||
export res=96 | ||
export add_lake=false # Add lake frac and depth to orography data. | ||
export lake_cutoff=0.20 # lake frac < lake_cutoff ignored when add_lake=T | ||
export res=768 | ||
export stretch_fac=1.5 # Stretching factor for the grid | ||
export target_lon=-97.5 # Center longitude of the highest resolution tile | ||
export target_lat=35.5 # Center latitude of the highest resolution tile | ||
export target_lat=38.5 # Center latitude of the highest resolution tile | ||
export refine_ratio=3 # The refinement ratio | ||
export istart_nest=27 # Starting i-direction index of nest grid in parent tile supergrid | ||
export jstart_nest=37 # Starting j-direction index of nest grid in parent tile supergrid | ||
export iend_nest=166 # Ending i-direction index of nest grid in parent tile supergrid | ||
export jend_nest=164 # Ending j-direction index of nest grid in parent tile supergrid | ||
export istart_nest=123 # Starting i-direction index of nest grid in parent tile supergrid | ||
export jstart_nest=331 # Starting j-direction index of nest grid in parent tile supergrid | ||
export iend_nest=1402 # Ending i-direction index of nest grid in parent tile supergrid | ||
export jend_nest=1194 # Ending j-direction index of nest grid in parent tile supergrid | ||
export halo=3 # Lateral boundary halo | ||
elif [ $gtype = regional_esg ] ; then | ||
export res=-999 # equivalent res is computed. | ||
export res=-999 # equivalent resolution is computed | ||
export target_lon=-97.5 # Center longitude of grid | ||
export target_lat=35.5 # Center latitude of grid | ||
export idim=301 # Dimension of grid in 'i' direction | ||
|
@@ -108,10 +109,10 @@ elif [ $gtype = regional_esg ] ; then | |
fi | ||
|
||
#----------------------------------------------------------------------- | ||
# Check paths. | ||
# Check paths. | ||
# home_dir - location of repository. | ||
# TEMP_DIR - working directory. | ||
# out_dir - where files will be placed upon completion. | ||
# TEMP_DIR - working directory. | ||
# out_dir - where files will be placed upon completion. | ||
#----------------------------------------------------------------------- | ||
|
||
export home_dir=$SLURM_SUBMIT_DIR/.. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see you tested with a C768 regional grid. Will the lake code work with other resolutions?