-
Notifications
You must be signed in to change notification settings - Fork 176
/
Copy pathconfig.prep
executable file
·58 lines (43 loc) · 1.78 KB
/
config.prep
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/ksh -x
########## config.prep ##########
# Prep step specific
echo "BEGIN: config.prep"
# Get task specific resources
. $EXPDIR/config.resources prep
export DO_MAKEPREPBUFR="YES" # if NO, will copy prepbufr from globaldump
# Relocation and syndata QC
export PROCESS_TROPCY=${PROCESS_TROPCY:-NO}
[[ $RUN_ENVIR == "nco" && $envir == "prod" ]] && export PROCESS_TROPCY="YES"
export DO_RELOCATE="NO"
export TROPCYQCRELOSH="$HOMEgfs/scripts/exglobal_atmos_tropcy_qc_reloc.sh"
export SENDCOM=YES
export COMINsyn=${COMINsyn:-${COMROOT}/gfs/prod/syndat}
export HOMERELO=$HOMEgfs
export EXECRELO=${HOMERELO}/exec
export FIXRELO=${HOMERELO}/fix/fix_am
export USHRELO=${HOMERELO}/ush
# Adjust observation error for GFS v16 parallels
#
# NOTE: Remember to set OBERROR in config.anal as PRVT is set below
#
# Set default prepobs_errtable.global
export PRVT=$FIXgsi/prepobs_errtable.global
# Set prepobs.errtable.global for GFS v16 retrospective parallels
if [[ $RUN_ENVIR == "emc" ]]; then
if [[ "$CDATE" -ge "2019021900" && "$CDATE" -lt "2019110706" ]]; then
export PRVT=$FIXgsi/gfsv16_historical/prepobs_errtable.global.2019021900
fi
# Place GOES-15 AMVs in monitor, assimilate GOES-17 AMVs, assimilate KOMPSAT-5 gps
if [[ "$CDATE" -ge "2019110706" && "$CDATE" -lt "2020040718" ]]; then
export PRVT=$FIXgsi/gfsv16_historical/prepobs_errtable.global.2019110706
fi
# NOTE:
# As of 2020040718, gfsv16_historical/prepobs_errtable.global.2020040718 is
# identical to ../prepobs_errtable.global. Thus, the logic below is not
# needed at this time
# Set observation errors for type 135 (T) & 235 (uv) Canadian AMDAR observations
# if [[ "$CDATE" -ge "2020040718" && "$CDATE" -lt "YYYMMDDHH" ]]; then
# export PRVT=$EXPDIR/prepobs_errtable.global
# fi
fi
echo "END: config.prep"