-
Notifications
You must be signed in to change notification settings - Fork 108
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
27cea32
commit 89db7a9
Showing
2 changed files
with
166 additions
and
28 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,102 @@ | ||
#!/bin/bash | ||
|
||
#----------------------------------------------------------------------------- | ||
# Invoke chgres to create 13-km CONUS coldstart files using RAP GRIB2 data | ||
# as input. The coldstart files are then compared to baseline files | ||
# using the 'nccmp' utility. This script is run by the machine specific | ||
# driver script. | ||
#----------------------------------------------------------------------------- | ||
|
||
set -x | ||
|
||
export DATA=$OUTDIR/13km_conus_rap-smoke_grib2 | ||
rm -fr $DATA | ||
|
||
export CRES=778 | ||
export KMRES=13km | ||
export FIXfv3=${HOMEreg}/fix/RRFS_CONUS_${KMRES} | ||
|
||
export COMIN=${HOMEreg}/input_data/rap.grib2 | ||
|
||
export GRIB2_FILE_INPUT=1921221000900 | ||
export VCOORD_FILE=${HOMEufs}/fix/am/global_hyblev.l64.txt | ||
export VARMAP_FILE=${HOMEufs}/parm/varmap_tables/GSDphys_smoke_var_map.txt | ||
export INPUT_TYPE='grib2' | ||
export CONVERT_NST=".false." | ||
export OROG_FILES_TARGET_GRID="C778_oro_data.tile7.nc" | ||
export REGIONAL=1 | ||
export HALO_BLEND=0 | ||
export HALO_BNDY=4 | ||
export CDATE=2019080100 | ||
export EXTERNAL_MODEL="RAP" | ||
export NSOILL_OUT=9 | ||
export TRACERS_TARGET='"NULL"' | ||
export TRACERS_INPUT='"NULL"' | ||
export SOTYP_FROM_CLIMO=.false. | ||
export VGTYP_FROM_CLIMO=.false. | ||
export VGFRC_FROM_CLIMO=.true. | ||
export MINMAX_VGFRC_FROM_CLIMO=.true. | ||
export TG3_FROM_SOIL=.true. | ||
export LAI_FROM_CLIMO=.true. | ||
export GEOGRID_FILE_INPUT=${HOMEufs}/fix/am/geo_em.d01.nc_RAPX | ||
|
||
export OMP_NUM_THREADS_CH=${OMP_NUM_THREADS:-1} | ||
|
||
NCCMP=${NCCMP:-$(which nccmp)} | ||
|
||
#----------------------------------------------------------------------------- | ||
# Invoke chgres program. | ||
#----------------------------------------------------------------------------- | ||
|
||
echo "Starting at: " `date` | ||
|
||
${HOMEufs}/ush/chgres_cube.sh | ||
|
||
iret=$? | ||
if [ $iret -ne 0 ]; then | ||
set +x | ||
echo "<<< 13-km CONUS RAP-SMOKE W/ GSD PHYSICS AND SFC FROM FILE GRIB2 TEST FAILED. <<<" | ||
exit $iret | ||
fi | ||
|
||
echo "Ending at: " `date` | ||
|
||
#----------------------------------------------------------------------------- | ||
# Compare output from chgres to baseline set of data. | ||
# | ||
# orion's nccmp utility does not work with the netcdf | ||
# required to run ufs_utils. So swap it. | ||
#----------------------------------------------------------------------------- | ||
|
||
machine=${machine:-NULL} | ||
if [ $machine == 'orion' ]; then | ||
module unload netcdfp/4.7.4.release | ||
module load netcdf/4.7.2 | ||
fi | ||
|
||
cd $DATA | ||
|
||
test_failed=0 | ||
for files in *.nc | ||
do | ||
if [ -f $files ]; then | ||
echo CHECK $files | ||
$NCCMP -dmfqS $files $HOMEreg/baseline_data/13km_conus_rap_grib2/$files | ||
iret=$? | ||
if [ $iret -ne 0 ]; then | ||
test_failed=1 | ||
fi | ||
fi | ||
done | ||
|
||
set +x | ||
if [ $test_failed -ne 0 ]; then | ||
echo "<<< 13-km CONUS RAP-SMOKE W/ GSD PHYSICS AND SFC FROM FILE GRIB2 TEST FAILED. >>>" | ||
if [ "$UPDATE_BASELINE" = "TRUE" ]; then | ||
$HOMEufs/reg_tests/update_baseline.sh $HOMEreg "13km_conus_rap-smoke_grib2" $commit_num | ||
fi | ||
else | ||
echo "<<< 13-km CONUS RAP-SMOKE W/ GSD PHYSICS AND SFC FROM FILE GRIB2 TEST PASSED. >>>" | ||
fi | ||
|
||
exit 0 |
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