Skip to content

Commit 3052902

Browse files
Ref #28
Rm debug statements.
1 parent 918f346 commit 3052902

24 files changed

+255
-372
lines changed

src/Conventional_Monitor/data_extract/ush/ConMon_DE.sh

-7
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,6 @@ jobname=ConMon_DE_${CONMON_SUFFIX}
106106
echo "C_TANKDIR = ${C_TANKDIR}"
107107
echo "C_LOGDIR = ${C_LOGDIR}"
108108
echo "C_IMGNDIR = ${C_IMGNDIR}"
109-
echo "MON_USH = $MON_USH"
110109

111110
if [[ ! -d ${C_TANKDIR} ]]; then
112111
mkdir -p ${C_TANKDIR}
@@ -141,8 +140,6 @@ if [[ ${#cnvstat_location} -le 0 ]]; then
141140
export cnvstat_location=${COMROOT}/gfs/${gfs_ver}
142141
fi
143142
export CNVSTAT_LOCATION=${cnvstat_location}
144-
echo "CNVSTAT_LOCATION = $CNVSTAT_LOCATION"
145-
146143
export COMPONENT=${COMPONENT:-atmos}
147144

148145
export C_DATDIR=${C_DATDIR:-${CNVSTAT_LOCATION}/${RUN}.${PDY}/${CYC}/${COMPONENT}}
@@ -181,10 +178,6 @@ if [[ ! -s ${pgrbf06} ]]; then
181178
export pgrbf06="${C_GDATDIR}/gdas.t${GCYC}z.pgrb2.1p00.f006"
182179
fi
183180

184-
echo "cnvstat = $cnvstat"
185-
echo "pgrbf00 = $pgrbf00"
186-
echo "pgrbf06 = $pgrbf06"
187-
188181

189182
#---------------------------------------------
190183
# override the default convinfo definition

src/Conventional_Monitor/image_gen/gscripts/defint.gs

+1-5
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,8 @@ while(i <= 6)
2828
endif
2929
i=i+1
3030
endwhile
31-
say line
31+
3232
line
33-
*say 'set ccols 49 47 45 44 43 42 99 22 23 24 25 27 29'
34-
*'set ccols 49 47 45 44 43 42 99 22 23 24 25 27 29'
35-
say 'set ccols 9 14 4 11 5 3 99 7 12 8 2 25 29'
3633
'set ccols 9 14 4 11 5 3 99 7 12 8 2 27 6'
37-
*exit 0
3834
return
3935
endfile

src/Conventional_Monitor/image_gen/gscripts/plot_qsfc_horz.gs

+4-4
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ dbug=0
4949
setmap(plotfile,he)
5050
'set gxout shaded'
5151
'defint.gs 0.5 0'
52-
'd 10*(RH2m.1-RH2m.2)/RHprs.1'
52+
'd 10*(RHprs.1-RHprs.2)/RHprs.1'
5353
'colorbar.gs'
5454
'set ccolor 6'
5555
'set digsiz 0.12'
@@ -63,7 +63,7 @@ setmap(plotfile,he)
6363
setmap(plotfile,he)
6464
'set gxout shaded'
6565
'defint.gs 0.5 0'
66-
'd 10*(RH2m.1-RH2m.2)/RHprs.1'
66+
'd 10*(RHprs.1-RHprs.2)/RHprs.1'
6767
'colorbar.gs'
6868
'set ccolor 6'
6969
'set digsiz 0.12'
@@ -77,7 +77,7 @@ setmap(plotfile,he)
7777
setmap(plotfile,he)
7878
'set gxout shaded'
7979
'defint.gs 0.5 0'
80-
'd 10*(RH2m.1-RH2m.2)/RHprs.1'
80+
'd 10*(RHprs.1-RHprs.2)/RHprs.1'
8181
'colorbar.gs'
8282
'set ccolor 98'
8383
'draw title Humidity INCT*10/Anal at 'rdate'z'
@@ -86,7 +86,7 @@ setmap(plotfile,he)
8686
setmap(plotfile,he)
8787
'set gxout shaded'
8888
'defint 10 50'
89-
'd RH2m.1'
89+
'd RHprs.1'
9090
'colorbar.gs'
9191
'draw title Surface Humidity Analysis(RH,%) at 'rdate'z'
9292
if(dbug=1)

src/Conventional_Monitor/image_gen/gscripts/plot_uvallev_horz.gs

-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,6 @@ function plot_horz(plotfile,plotfile2,xsize,ysize,he,rdate,levx,levx1,hint,var)
8888
'set digsiz 0.12'
8989
levy=levx-hint
9090
ley1=levx+hint+1
91-
say 'levy='levy
92-
say 'ley1='ley1
9391
'set lev 'levy
9492
'set dfile 4'
9593
'set lev 'levy

src/Conventional_Monitor/image_gen/gscripts/plot_uvsatwind_horz.gs

-2
Original file line numberDiff line numberDiff line change
@@ -135,8 +135,6 @@ function plot_horz(plotfile,plotfile2,xsize,ysize,he,rdate,levx,levx1,hint,var)
135135
'set digsiz 0.12'
136136
levy=levx-hint
137137
ley1=levx+hint+1
138-
say 'levy='levy
139-
say 'ley1='ley1
140138
'set lev 'levy
141139
'set dfile 4'
142140
'set lev 'levy

src/Conventional_Monitor/image_gen/gscripts/plotstas_time_bias.gs

+10-25
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ function time_bias (args)
1414
'q time'
1515
dmy=sublin(result,1)
1616
ti=subwrd(dmy,5)
17-
say ti
1817
hh=substr(ti,1,2)
1918
dd=substr(ti,4,2)
2019

@@ -23,13 +22,10 @@ function time_bias (args)
2322
ixc=subwrd(size,3)
2423
iyc=subwrd(size,6)
2524
izc=subwrd(size,9)
26-
say ixc
27-
say 'iyc=' iyc
2825

2926
'!echo $CONMON_RESTRICT_PLOT_AREAS > rest.txt'
3027
rest=read(rest.txt)
3128
restrict=subwrd(rest,2)
32-
say 'restrict=' restrict
3329

3430
ix=1
3531
while(ix <=ixc)
@@ -46,6 +42,16 @@ function time_bias (args)
4642
endif
4743
result=close(info.txt)
4844

45+
* Avoid plotting stypes "uv235" and "all". Stype all is included in the ctl file (from
46+
* which the stypes are taken) but the web site has never included all stypes, so
47+
* eliminating plotting them is a space/time savings. Stype 235 (uv only) produces
48+
* missing data errors on half the plots -- the upper half. This will be
49+
* investigated in a separate fix.
50+
if ( stype = 235 | stype = all )
51+
ix=ix+1
52+
continue
53+
endif
54+
4955
iy=1
5056
while(iy <=iyc)
5157

@@ -57,7 +63,6 @@ function time_bias (args)
5763
endif
5864
endif
5965

60-
say 'iy=' iy
6166
'!rm -f area.txt'
6267

6368
if ( iy <10)
@@ -74,7 +79,6 @@ function time_bias (args)
7479
area=substr(info,14,25)
7580
endif
7681
result=close(area.txt)
77-
say 'area = 'area
7882
iz=1
7983

8084
while(iz <=izc)
@@ -130,22 +134,17 @@ endfile
130134

131135
function plottime(ix,iy,iz,dtype,hh,dd,area,stype,subtype,iuse,dtype,levz,debug)
132136

133-
'page'
134137
'clear'
135138

136139
nfield=4
137140
field.1.1=bias1.1
138141
field.1.2=bias1.2
139-
field.1.3=bias1.3
140142
field.2.1=rms1.1
141143
field.2.2=rms1.2
142-
field.2.3=rms1.3
143144
field.3.1=bias3.1
144145
field.3.2=bias3.2
145-
field.3.3=bias3.3
146146
field.4.1=rms3.1
147147
field.4.2=rms3.2
148-
field.4.3=rms3.3
149148

150149
title.1="o-g(used)"
151150
title.2="rms(used)"
@@ -162,9 +161,6 @@ function plottime(ix,iy,iz,dtype,hh,dd,area,stype,subtype,iuse,dtype,levz,debug)
162161
y1=10.6-(nf-1)*2.5
163162
y2=y1-1.8
164163
ystring=y1+0.1
165-
say ' y1='y1
166-
say ' y2='y2
167-
say ' ystring='ystring
168164
'set t 1 last'
169165
'query time'
170166
dmy=sublin(result,1)
@@ -188,14 +184,10 @@ function plottime(ix,iy,iz,dtype,hh,dd,area,stype,subtype,iuse,dtype,levz,debug)
188184
if(maxvar1 > maxvar)
189185
maxvar=maxvar1
190186
endif
191-
say ' 'minvar
192-
say ' 'maxvar
193187
yrange=maxvar-minvar
194188
dy=0.1*yrange
195189
minvar=minvar-dy
196190
maxvar=maxvar+dy
197-
say ' 'minvar
198-
say ' 'maxvar
199191
'set parea 1.0 8.0 'y2' 'y1
200192
'set gxout line'
201193
'set t 1 last'
@@ -205,8 +197,6 @@ function plottime(ix,iy,iz,dtype,hh,dd,area,stype,subtype,iuse,dtype,levz,debug)
205197
'set y 'iy
206198
'set x 'ix
207199
'set z 'iz
208-
* 'set axlim 'minvar' 'maxvar
209-
* 'set yaxis 'minvar' 'maxvar' 'dy
210200
'set vrange 'minvar' 'maxvar
211201
'set ccolor 1'
212202
'set cmark 0'
@@ -215,9 +205,6 @@ function plottime(ix,iy,iz,dtype,hh,dd,area,stype,subtype,iuse,dtype,levz,debug)
215205
'set cmark 1'
216206
'd 'field.nf.2
217207
'set ccolor 3'
218-
* 'set cmark 2'
219-
* 'd 'field.nf.3
220-
* if(iuse = 1);datause='assimilated';endif
221208
if(iuse = -1)
222209
datause='mon.'
223210
else
@@ -231,8 +218,6 @@ function plottime(ix,iy,iz,dtype,hh,dd,area,stype,subtype,iuse,dtype,levz,debug)
231218
'set line 2 1'
232219
'draw line 3.1 0.6 3.4 0.6'
233220
'draw string 3.5 0.55 final outloop'
234-
* 'set line 3 1'
235-
* 'draw line 5.1 0.6 5.4 0.6'
236221
'draw string 5.5 0.55 'fti'-'ti
237222
nf=nf+1
238223
endwhile

src/Conventional_Monitor/image_gen/gscripts/plotstas_time_bias2.gs

+10-26
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,13 @@ function plot_bias2 (args)
77
dtype=DTYPE
88
'open ges_'dtype'_stas.ctl'
99
'open anl_'dtype'_stas.ctl'
10-
* 'open 'dtype'_stas_int.ctl'
1110
'set grads off'
1211
debug=0
1312

1413
'set t 1 last'
1514
'q time'
1615
dmy=sublin(result,1)
1716
ti=subwrd(dmy,5)
18-
say ti
1917
hh=substr(ti,1,2)
2018
dd=substr(ti,4,2)
2119

@@ -24,8 +22,6 @@ function plot_bias2 (args)
2422
ixc=subwrd(size,3)
2523
iyc=subwrd(size,6)
2624
izc=subwrd(size,9)
27-
say ixc
28-
say 'iyc=' iyc
2925

3026
iz=1
3127
while(iz <=izc)
@@ -63,7 +59,6 @@ function plot_bias2 (args)
6359
'!echo $CONMON_RESTRICT_PLOT_AREAS > rest.txt'
6460
rest=read(rest.txt)
6561
restrict=subwrd(rest,2)
66-
say 'restrict=' restrict
6762

6863
iy=1
6964
while(iy <=iyc)
@@ -76,7 +71,6 @@ function plot_bias2 (args)
7671
endif
7772
endif
7873

79-
say 'iy=' iy
8074
'!rm -f area.txt'
8175
'!cat ges_'dtype'_stas.ctl |grep "region= 'iy' " > area.txt'
8276
result=read(area.txt)
@@ -87,7 +81,6 @@ function plot_bias2 (args)
8781
area=substr(info,14,25)
8882
endif
8983
result=close(area.txt)
90-
say 'area = 'area
9184
ix=1
9285

9386
while(ix <=ixc)
@@ -105,6 +98,16 @@ function plot_bias2 (args)
10598
endif
10699
result=close(info.txt)
107100

101+
* Avoid plotting syptes "uv235" and "all". Stype all is included in the ctl file (from
102+
* which the stypes are taken) but the web site has never included all stypes, so
103+
* eliminating plotting them is a space/time savings. Stype 235 (uv only) produces
104+
* missing data errors on half the plots -- the upper half. This will be
105+
* investigated in a separate fix.
106+
if ( stype = 235 | stype = all )
107+
ix=ix+1
108+
continue
109+
endif
110+
108111
plottime(ix,iy,iz,dtype,hh,dd,area,stype,subtype,iuse,levz,debug)
109112

110113
ix=ix+1
@@ -122,25 +125,20 @@ endfile
122125

123126
function plottime(ix,iy,iz,dtype,hh,dd,area,stype,subtype,iuse,levz,debug)
124127

125-
'page'
126128
'clear'
127129

128130
nfield=4
129131
field.1.1=bias2.1
130132
field.1.2=bias2.2
131-
field.1.3=bias2.3
132133

133134
field.2.1=rms2.1
134135
field.2.2=rms2.2
135-
field.2.3=rms2.3
136136

137137
field.3.1=bias3.1
138138
field.3.2=bias3.2
139-
field.3.3=bias3.3
140139

141140
field.4.1=rms3.1
142141
field.4.2=rms3.2
143-
field.4.3=rms3.3
144142

145143
title.1="o-g for rej. by GC "
146144
title.2="rms for rej. by GC"
@@ -157,9 +155,6 @@ function plottime(ix,iy,iz,dtype,hh,dd,area,stype,subtype,iuse,levz,debug)
157155
y1=10.6-(nf-1)*2.5
158156
y2=y1-1.8
159157
ystring=y1+0.1
160-
say ' y1='y1
161-
say ' y2='y2
162-
say ' ystring='ystring
163158
'set t 1 last'
164159
'query time'
165160
dmy=sublin(result,1)
@@ -186,14 +181,10 @@ function plottime(ix,iy,iz,dtype,hh,dd,area,stype,subtype,iuse,levz,debug)
186181
maxvar=maxvar1
187182
endif
188183

189-
say ' 'minvar
190-
say ' 'maxvar
191184
yrange=maxvar-minvar
192185
dy=0.1*yrange
193186
minvar=minvar-dy
194187
maxvar=maxvar+dy
195-
say ' 'minvar
196-
say ' 'maxvar
197188
'set parea 1.0 8.0 'y2' 'y1
198189
'set gxout line'
199190
'set t 1 last'
@@ -203,8 +194,6 @@ function plottime(ix,iy,iz,dtype,hh,dd,area,stype,subtype,iuse,levz,debug)
203194
'set y 'iy
204195
'set x 'ix
205196
'set z 'iz
206-
* 'set axlim 'minvar' 'maxvar
207-
* 'set yaxis 'minvar' 'maxvar' 'dy
208197
'set vrange 'minvar' 'maxvar
209198
'set ccolor 1'
210199
'set cmark 0'
@@ -213,9 +202,6 @@ function plottime(ix,iy,iz,dtype,hh,dd,area,stype,subtype,iuse,levz,debug)
213202
'set cmark 1'
214203
'd 'field.nf.2
215204
'set ccolor 3'
216-
* 'set cmark 2'
217-
* 'd 'field.nf.3
218-
* if(iuse = 1);datause='assimilated';endif
219205
if(iuse = -1)
220206
datause='mon.'
221207
else
@@ -229,8 +215,6 @@ function plottime(ix,iy,iz,dtype,hh,dd,area,stype,subtype,iuse,levz,debug)
229215
'set line 2 1'
230216
'draw line 3.1 0.6 3.4 0.6'
231217
'draw string 3.5 0.55 final outloop'
232-
'set line 3 1'
233-
* 'draw line 5.1 0.6 5.4 0.6'
234218
'draw string 5.5 0.55 'fti'-'ti
235219
nf=nf+1
236220
endwhile

0 commit comments

Comments
 (0)