Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions .github/workflows/ci_run_scm_ufs_replay.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,15 +61,15 @@ jobs:
run: |
if test ! -d "${dir_rt_cache}"; then
mkdir -p ${dir_rt_cache} && cd ${dir_rt_cache}
wget https://dtcenter.ucar.edu/ccpp/rt/ufs_rts_scmreplay_ci.tar
tar -xvf ufs_rts_scmreplay_ci.tar
ls ${dir_rt_cache}
wget -q https://github.com/NCAR/ccpp-scm/releases/download/v7.0.1/ufs_rts_scmreplay_ci.tar.gz
tar -xvf ufs_rts_scmreplay_ci.tar.gz
ls ${dir_rt_cache}/data_new
fi

- name: Create UFS-replay case.
run: |
cd ${SCM_ROOT}/scm/etc/scripts/
./UFS_forcing_ensemble_generator.py -d ${dir_rt_cache}/ --C_RES 192 -dt 360 -n control_c192 -lons 300 -lats 34 -sc
./UFS_forcing_ensemble_generator.py -d ${dir_rt_cache}/data_new --C_RES 192 -dt 360 -n control_c192 -lons 97 -lats 34 -sc

#######################################################################################
# Done
Expand Down
8 changes: 4 additions & 4 deletions scm/etc/scripts/UFS_forcing_ensemble_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def main():

###########################################################################
#
# Set longitude/latitude
# Set longitude/latitude
#
###########################################################################
if (args.nensmembers):
Expand Down Expand Up @@ -144,7 +144,7 @@ def main():
print(" Using -tile [] -is [] -js [] (e.g. -tile 5 -is 5 6 7 -js 40 40 40)")
exit()
# end if

###########################################################################
#
# Create SCM case configuration (etc/case_config) file.
Expand Down Expand Up @@ -190,7 +190,7 @@ def main():

# What is the surface type? (get from SCM input file)
dataset = xr.open_dataset(file_scminput)
sfc_type = int(np.round_(dataset.slmsk.values[0]))
sfc_type = int(np.round(dataset.slmsk.values[0]))

# Create case_config file(s)
fileOUT = "../../etc/case_config/"+case_name+".nml"
Expand All @@ -210,7 +210,7 @@ def main():

# Add case to dictionary to be used by run_scm.py
run_list.append({"case": case_name, "suite": args.suite})

#
count = count + 1
# end if
Expand Down