From 312165f97e54de0c9400e16dcf52d11340ec090b Mon Sep 17 00:00:00 2001 From: Emily Liu Date: Wed, 1 Nov 2023 12:37:25 -0500 Subject: [PATCH] Add logics to set window shift parameter --- ush/ufoeval/run_ufo_hofx_test.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/ush/ufoeval/run_ufo_hofx_test.sh b/ush/ufoeval/run_ufo_hofx_test.sh index c4fb7ab4b..230966284 100755 --- a/ush/ufoeval/run_ufo_hofx_test.sh +++ b/ush/ufoeval/run_ufo_hofx_test.sh @@ -33,6 +33,7 @@ run_filtering=YES run_eva=YES eva_stats_only=NO keep_output=NO +window_shift=False while getopts "c:hsxq" opt; do case $opt in @@ -99,7 +100,6 @@ if [ $run_filtering == NO ]; then else yamlpath=$GDASApp/parm/atm/obs/testing/${obtype}.yaml fi - exename=test_ObsFilters.x #-------------- Do not modify below this line ---------------- @@ -178,12 +178,13 @@ export OPREFIX=gdas.t${cyc}z export APREFIX=gdas.t${cyc}z export GPREFIX=gdas.t${gcyc}z +if [ $obtype == "conv_ps" ]; then window_shift=True; fi cat > $workdir/temp.yaml << EOF window begin: '{{ WINDOW_BEGIN | to_isotime }}' window end: '{{ WINDOW_END | to_isotime }}' observations: - !INC $yamlpath -window shift: True +window shift: ${window_shift} EOF $GDASApp/ush/genYAML --input $workdir/temp.yaml --output $workdir/${obtype}_${cycle}.yaml