forked from NOAA-EMC/UPP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
run_JGLOBAL_NCEPPOST
executable file
·141 lines (111 loc) · 3.74 KB
/
run_JGLOBAL_NCEPPOST
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
#!/bin/sh
#BSUB -o STDDIR/test_post_RRR_CURRENTDATE.o%J
#BSUB -e STDDIR/test_post_RRR_CURRENTDATE.o%J
#BSUB -J test_post
#BSUB -extsched 'CRAYLINUX[]'
#BSUB -W 00:30
#BSUB -q debug
#BSUB -P GFS-T2O
#BSUB -M 1000
#BSUB -cwd STDDIR
set -x
# specify computation resource
export NODES=8
export ntasks=96
export ptile=12
export threads=1
export MP_LABELIO=yes
export OMP_NUM_THREADS=$threads
export APRUN="aprun -j 1 -n${ntasks} -N${ptile} -d${threads} -cc depth"
# specify user's own post working directory for testing
#export svndir=/u/Wen.Meng/noscrubc/ncep_post/post_fv3gfs_flat
############################################
# Loading module
############################################
. $MODULESHOME/init/ksh
module load PrgEnv-intel ESMF-intel-haswell/3_1_0rp5 cfp-intel-sandybridge iobuf craype-hugepages2M craype-haswell
#module load cfp-intel-sandybridge/1.1.0
module use /gpfs/hps/nco/ops/nwprod/modulefiles
module load prod_envir
#module load prod_util
module load prod_util/1.0.23
module load grib_util/1.0.3
module load crtm-intel/2.2.5
module list
# specify version numbers
#export hwrf_ver=v11.0.5
# specify PDY (the cycle start yyyymmdd) and cycle
export CDATE=CURRENTDATE
export PDY=`echo $CDATE | cut -c1-8`
export cyc=`echo $CDATE | cut -c9-10`
export cycle=t${cyc}z
# specify the directory environment for executable, it's either para or prod
export envir=prod
####################################
# Specify RUN Name and model
####################################
export NET=gfs
export RUN=RRR
#export RUN=gfs
# set up running dir
export job=${RUN}_post_${cyc}
export pid=${pid:-$$}
export jobid=${job}.${pid}
mkdir -p /gpfs/hps3/ptmp/$LOGNAME/nceppost/logs
export jlogfile=/gpfs/hps3/ptmp/$LOGNAME/nceppost/logs/jlogfile.${job}.${pid}
export DATA=/gpfs/hps/stmp/$LOGNAME/test/$jobid
mkdir -p $DATA
cd $DATA
rm -f ${DATA}/*
####################################
# SENDSMS - Flag Events on SMS
# SENDCOM - Copy Files From TMPDIR to $COMOUT
# SENDDBN - Issue DBNet Client Calls
# RERUN - Rerun posts from beginning (default no)
# VERBOSE - Specify Verbose Output in global_postgp.sh
####################################
export SENDCOM=YES
export SENDDBN=NO
export RERUN=NO
export VERBOSE=YES
export HOMEgfs=${svndir}
##############################################
# Define COM directories
##############################################
export COMIN=$COMINP/${RUN}.${PDY}/${cyc}
# specify my own COMOUT dir to mimic operations
export COMOUT=/gpfs/hps3/ptmp/$LOGNAME/com2/gfs/test/${RUN}.$PDY/${cyc}
mkdir -p $COMOUT
# specify variables if testing post in non gfs structure environment
#export FIXglobal=/gpfs/hps3/emc/global/noscrub/emc.glopara/git/fv3gfs/master/global_shared.v15.0.0/fix
export FIXgfs=/gpfs/hps3/emc/global/noscrub/emc.glopara/git/fv3gfs/master/global_shared.v15.0.0/fix
export nemsioget=/gpfs/hps3/emc/global/noscrub/emc.glopara/git/fv3gfs/master/global_shared.v15.0.0/exec/nemsio_get
#export POSTGRB2TBL=${HOMEglobal}/parm/params_grib2_tbl_new
export POSTGRB2TBL=/gpfs/hps/nco/ops/nwprod/lib/g2tmpl/v1.5.0/src/params_grib2_tbl_new
export POSTGPEXEC=${HOMEgfs}/exec/ncep_post
export PARMpost=${HOMEgfs}/parm
#export PGBF=NO
export PGB1F=YES
export FLXF=NO
export GOESF=NO
export GTGF=NO
export KEEPDATA=NO
####################################
# Specify Forecast Hour Range
####################################
#if [ $RUN = gdas ]; then
# #export allfhr="anl 00 03 06 09"
# export allfhr="anl 000 006"
#elif [ $RUN = gfs ]; then
# #export allfhr="anl 00 01 06 12 60 120 180 240 252 384"
# export allfhr="000"
#fi
#############################################################
for post_times in $allfhr; do
export post_times
date
$HOMEgfs/jobs/J_NCEPPOST
echo $?
date
done
#############################################################