Skip to content

Commit

Permalink
Add logics to set window shift parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
emilyhcliu committed Nov 1, 2023
1 parent 2344598 commit 312165f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions ush/ufoeval/run_ufo_hofx_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 ----------------
Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 312165f

Please sign in to comment.