Skip to content

Commit

Permalink
Merge pull request #297 from grantfirl/RUC_LSM_support
Browse files Browse the repository at this point in the history
Add RUC LSM support
  • Loading branch information
grantfirl committed Feb 11, 2022
2 parents 13cc9a2 + 17526e0 commit 60fe8a5
Show file tree
Hide file tree
Showing 11 changed files with 1,765 additions and 491 deletions.
29 changes: 29 additions & 0 deletions scm/etc/case_config/gabls3_ruc.nml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
$case_config
model_name = 'FV3',
n_columns = 1,
case_name = 'gabls3_ruc',
dt = 600.0,
time_scheme = 1,
runtime = 86400,
n_itt_out = 1,
n_itt_diag = 6,
n_levels = 64,
output_file = 'output',
case_data_dir = '../data/processed_case_input',
vert_coord_data_dir = '../data/vert_coord_data',
thermo_forcing_type = 2,
mom_forcing_type = 2,
relax_time = 7200.0,
sfc_flux_spec = .false.,
lsm_ics = .true.,
do_spinup = .true.,
spinup_timesteps = 12,
sfc_roughness_length_cm = 15.0,
sfc_type = 1,
reference_profile_choice = 2,
year = 2006,
month = 7,
day = 1,
hour = 12,
column_area = 1.45E8,
$end
2 changes: 1 addition & 1 deletion scm/etc/scm_qsub_example.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
USER = os.getenv('USER')
STRINGS = [USER, 'ucar.edu']
MY_EMAIL = '@'.join(STRINGS)
PROC = Popen('qsub', shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=True)
PROC = Popen('qsub -V', shell=True, stdin=PIPE, stdout=PIPE, stderr=PIPE, close_fds=True)

### Begin User-editable section ###
JOB_NAME = "test_job"
Expand Down
18 changes: 13 additions & 5 deletions scm/etc/scripts/GABLS3_LSM.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,11 @@ begin
tg3@units = "K"
tg3@long_name = "deep soil temperature"

zorlw = 15.0 ;(cm) from case specs
zorl = 15.0 ;(cm) from case specs
zorl@long_name = "composite surface roughness length"
zorl@units = "cm"

zorlw = zorl ;(cm) from case specs
zorlw@long_name = "surface roughness length over ocean"
zorlw@units = "cm"

Expand Down Expand Up @@ -482,7 +486,7 @@ begin

;derive friction velocity from known values
wind1 = sqrt(u_specified(1)^2 + v_specified(1)^2)
uustar = von_K*wind1/log(u_h(1)/(0.01*zorlw))
uustar = von_K*wind1/log(u_h(1)/(0.01*zorl))
uustar@units = "m s-1"
uustar@long_name = "friction velocity"

Expand Down Expand Up @@ -533,19 +537,19 @@ begin
tsfcl@long_name = "surface skin temperature over land"
tsfcl@units = "K"

zorll = zorlw ;(cm) from case specs
zorll = zorl ;(cm) from case specs
zorll@long_name = "surface roughness length over land"
zorll@units = "cm"

zorli = zorlw ;(cm) from case specs
zorli = zorl ;(cm) from case specs
zorli@long_name = "surface roughness length over ice"
zorli@units = "cm"

stc = (/ 292.55, 289.9, 285.35, 283.15 /)
stc@units = "K"
stc@long_name = "initial profile of soil temperature"

smc = (/ 0.197, 0.197, 0.197, 0.197 /)
smc = (/ 0.203, 0.203, 0.203, 0.203 /)
smc@units = "m3 m-3"
smc@long_name = "initial profile of soil moisture"

Expand Down Expand Up @@ -636,6 +640,10 @@ begin
filevarattdef(g1,"tg3",tg3)
g1->tg3 = tg3

filevardef(g1,"zorl",typeof(zorl),"ncl_scalar")
filevarattdef(g1,"zorl",zorl)
g1->zorl = zorl

filevardef(g1,"zorlw",typeof(zorlw),"ncl_scalar")
filevarattdef(g1,"zorlw",zorlw)
g1->zorlw = zorlw
Expand Down
16 changes: 12 additions & 4 deletions scm/etc/scripts/GABLS3_LSM_NoahMP.ncl
Original file line number Diff line number Diff line change
Expand Up @@ -431,7 +431,11 @@ begin
tg3@units = "K"
tg3@long_name = "deep soil temperature"

zorlw = 15.0 ;(cm) from case specs
zorl = 15.0 ;(cm) from case specs
zorl@long_name = "composite surface roughness length"
zorl@units = "cm"

zorlw = zorl ;(cm) from case specs
zorlw@long_name = "surface roughness length over ocean"
zorlw@units = "cm"

Expand Down Expand Up @@ -482,7 +486,7 @@ begin

;derive friction velocity from known values
wind1 = sqrt(u_specified(1)^2 + v_specified(1)^2)
uustar = von_K*wind1/log(u_h(1)/(0.01*zorlw))
uustar = von_K*wind1/log(u_h(1)/(0.01*zorl))
uustar@units = "m s-1"
uustar@long_name = "friction velocity"

Expand Down Expand Up @@ -533,11 +537,11 @@ begin
tsfcl@long_name = "surface skin temperature over land"
tsfcl@units = "K"

zorll = zorlw ;(cm) from case specs
zorll = zorl ;(cm) from case specs
zorll@long_name = "surface roughness length over land"
zorll@units = "cm"

zorli = zorlw ;(cm) from case specs
zorli = zorl ;(cm) from case specs
zorli@long_name = "surface roughness length over ice"
zorli@units = "cm"

Expand Down Expand Up @@ -636,6 +640,10 @@ begin
filevarattdef(g1,"tg3",tg3)
g1->tg3 = tg3

filevardef(g1,"zorl",typeof(zorl),"ncl_scalar")
filevarattdef(g1,"zorl",zorl)
g1->zorl = zorl

filevardef(g1,"zorlw",typeof(zorlw),"ncl_scalar")
filevarattdef(g1,"zorlw",zorlw)
g1->zorlw = zorlw
Expand Down
Loading

0 comments on commit 60fe8a5

Please sign in to comment.