-
Notifications
You must be signed in to change notification settings - Fork 110
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
global_cycle - New option to apply snow depth increments from JEDI (#568
) Addition of routines to add snow depth increments from the JEDI output increment file to the surface restart files. Includes screening to apply updates over land only and to adjust the SWE to match the snow depth analysis. This is an option. The default is to not read in or apply the increments. Fixes #561
- Loading branch information
1 parent
2ad0033
commit dea8dd9
Showing
15 changed files
with
745 additions
and
328 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,85 @@ | ||
#!/bin/bash | ||
|
||
#------------------------------------------------------------------ | ||
# Run global_cycle for a C768 case to test the ingest of snow | ||
# increments from JEDI. Compare output to a baseline set of | ||
# files using the 'nccmp' utility. | ||
#------------------------------------------------------------------ | ||
|
||
set -x | ||
|
||
NCCMP=${NCCMP:-$(which nccmp)} | ||
|
||
export MAX_TASKS_CY=6 | ||
|
||
export HOMEgfs=$NWPROD | ||
export BASE_GSM=$NWPROD | ||
|
||
export CYCLEXEC=$BASE_GSM/exec/global_cycle | ||
|
||
export CDATE=2019073000 | ||
export FHOUR=00 | ||
export DELTSFC=6 | ||
|
||
export CASE=C768 | ||
|
||
export COMIN=$HOMEreg/input_data | ||
export FNTSFA=$COMIN/gdas.t00z.rtgssthr.grb | ||
export FNSNOA=$COMIN/gdas.t00z.snogrb_t1534.3072.1536 | ||
export FNACNA=$COMIN/gdas.t00z.seaice.5min.blend.grb | ||
export NST_FILE=$COMIN/gdas.t00z.dtfanl.nc | ||
|
||
export DO_SNO_INC=.true. # must be lower-case. | ||
export JCAP=1534 | ||
export LONB=3072 | ||
export LATB=1536 | ||
|
||
export FIXgsm=$BASE_GSM/fix/fix_am | ||
|
||
export DONST="NO" | ||
export use_ufo=.true. | ||
|
||
export DO_SFCCYCLE=".FALSE." | ||
export DO_LNDINC=".TRUE." | ||
|
||
export VERBOSE=YES | ||
export CYCLVARS=FSNOL=99999.,FSNOS=99999., | ||
|
||
$BASE_GSM/ush/global_cycle_driver.sh | ||
|
||
iret=$? | ||
if [ $iret -ne 0 ]; then | ||
set +x | ||
echo "<<< C768 LANDINC SNOW CYCLE TEST FAILED. >>>" | ||
exit $iret | ||
fi | ||
|
||
test_failed=0 | ||
|
||
cd $DATA | ||
for files in *tile*.nc | ||
do | ||
if [ -f $files ]; then | ||
echo CHECK $files | ||
$NCCMP -dmfqS $files $HOMEreg/baseline_data/c768.lndincsnow/$files | ||
iret=$? | ||
if [ $iret -ne 0 ]; then | ||
test_failed=1 | ||
fi | ||
fi | ||
done | ||
|
||
set +x | ||
if [ $test_failed -ne 0 ]; then | ||
echo | ||
echo "****************************************" | ||
echo "<<< C768 LANDINC SNOW CYCLE TEST FAILED. >>>" | ||
echo "****************************************" | ||
else | ||
echo | ||
echo "***************************************" | ||
echo "<<< C768 LANDINC SNOW CYCLE TEST PASSED. >>>" | ||
echo "***************************************" | ||
fi | ||
|
||
exit |
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
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
Oops, something went wrong.