source: trunk/src/paper01/fig14/whots_validation_net_2004_2007_all_v10.pro @ 41

Last change on this file since 41 was 41, checked in by pinsard, 13 years ago

add paper01 materials

File size: 14.8 KB
Line 
1pro whots_validation_net_2004_2007_all_v10
2@common
3;------------------------------------------------------------
4reinitplt, /z,/invert
5key_portrait = 1
6coefpalit=.9
7
8openps, FILENAME = 'idl.ps'
9;------------------------------------------------------------
10; partie a changer
11;------------------------------------------------------------
12
13;; WHOTS in the NC pacific  2004-09
14;22.45N, 157.54W (202.46E)
15box=[202, 203, 22., 23.]
16
17;; first leg
18
19fi="/Users/pkb/data/Mooring_data/WHOTS/met_data_WHOTS_2004_2005.txt"
20res=read_ascii(fi,data_start=1)
21ff=res.field1
22lhf_04=reform(ff(5,*))
23shf_04=reform(ff(6,*))
24swr_04=reform(ff(7,*))/0.93
25lwr_04=reform(ff(8,*))
26net_04=[lhf_04+shf_04+swr_04+lwr_04]
27
28fi="/Users/pkb/data/Mooring_data/WHOTS/met_data_WHOTS_2005_2006.txt"
29res=read_ascii(fi,data_start=1)
30ff=res.field1
31lhf_05=reform(ff(5,*))
32shf_05=reform(ff(6,*))
33swr_05=reform(ff(7,*))/0.93
34lwr_05=reform(ff(8,*))
35net_05=[lhf_05+shf_05+swr_05+lwr_05]
36
37fi="/Users/pkb/data/Mooring_data/WHOTS/met_data_WHOTS_2006_2007.txt"
38res=read_ascii(fi,data_start=1)
39ff=res.field1
40lhf_06=reform(ff(5,*))
41shf_06=reform(ff(6,*))
42swr_06=reform(ff(7,*))/0.93
43lwr_06=reform(ff(8,*))
44net_06=[lhf_06+shf_06+swr_06+lwr_06]
45
46net=[net_04, net_05, net_06]
47
48help, net
49
50;; reading other data sets
51
52st1=20040813 & en1=20050725
53st2=20050728 & en2=20060624
54st3=20060627 & en3=20070628
55;st4=20070626 & en4=20080606
56;st5=20080605 & en5=20090715
57
58file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lhf_19890101_20091231_oafluxgrid.nc'
59initncdf, file
60lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1)
61lhf2=-1*read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) & lhf2=reform(lhf2)
62lhf3=-1*read_ncdf('lhf',st3,en3,file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy", box=box,/nan) & lhf3=reform(lhf3)
63
64file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_shf_19890101_20091231_oafluxgrid.nc'
65initncdf, file
66shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1)
67shf2=-1*read_ncdf('shf',st2,en2,file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy", box=box,/nan) & shf2=reform(shf2)
68shf3=-1*read_ncdf('shf',st3,en3,file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy", box=box,/nan) & shf3=reform(shf3)
69
70file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lwr_19890101_20091231_oafluxgrid.nc'
71initncdf, file
72lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1)
73lwr2=read_ncdf('lwr',st2-1,en2,file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy", box=box,/nan) & lwr2=reform(lwr2)
74lwr3=read_ncdf('lwr',st3-1,en3,file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy", box=box,/nan) & lwr3=reform(lwr3)
75
76file="/Users/pkb/data/ERA-I/erai_swr_19910101_20091231_oafluxgrid.nc"
77initncdf, file
78swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1)
79swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy", box=box,/nan) & swr2=reform(swr2)
80swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy", box=box,/nan) & swr3=reform(swr3)
81
82net1=swr1+(lwr1+shf1+lhf1) & net2=swr2+(lwr2+shf2+lhf2) & net3=swr3+(lwr3+shf3+lhf3)
83era=[net1,net2,net3]
84lhf1=0. & lhf2=0. & lhf3=0.
85shf1=0. & shf2=0. & shf3=0.
86lwr1=0. & lwr2=0. & lwr3=0.
87swr1=0. & swr2=0. & swr3=0.
88net1=0. & net2=0. & net3=0.
89help, era
90
91file="/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc"
92initncdf, file
93
94lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1)
95lhf2=read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) & lhf2=reform(lhf2)
96lhf3=read_ncdf('lhf',st3,en3,file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy", box=box,/nan) & lhf3=reform(lhf3)
97
98shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1)
99shf2=read_ncdf('shf',st2,en2,file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy", box=box,/nan) & shf2=reform(shf2)
100shf3=read_ncdf('shf',st3,en3,file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy", box=box,/nan) & shf3=reform(shf3)
101
102lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1)
103lwr2=read_ncdf('lwr',st2,en2,file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy", box=box,/nan) & lwr2=reform(lwr2)
104lwr3=read_ncdf('lwr',st3,en3,file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy", box=box,/nan) & lwr3=reform(lwr3)
105
106swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1)
107swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy", box=box,/nan) & swr2=reform(swr2)
108swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy", box=box,/nan) & swr3=reform(swr3)
109
110file="/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20091231_NRT_v50.nc"
111initncdf, file
112olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1)
113olr2=read_ncdf("sw", st2-1, en2, file=file,/nostr, box=box) & olr2=grossemoyenne(olr2, "xy",/nan, box=box) & olr2=reform(olr2)
114olr3=read_ncdf("sw", st3-1, en3, file=file,/nostr, box=box) & olr3=grossemoyenne(olr3, "xy",/nan, box=box) & olr3=reform(olr3)
115
116net1=swr1+lwr1+(shf1+lhf1) & net2=swr2+lwr2+(shf2+lhf2) & net3=swr3+lwr3+(shf3+lhf3)
117neto_1=olr1+lwr1+lhf1+shf1 & neto_2=olr2+lwr2+lhf2+shf2 & neto_3=olr3+lwr3+lhf3+shf3
118
119trop=[net1,net2,net3] & olr=[neto_1,neto_2,neto_3]
120
121lhf1=0. & lhf2=0. & lhf3=0.
122shf1=0. & shf2=0. & shf3=0.
123lwr1=0. & lwr2=0. & lwr3=0.
124swr1=0. & swr2=0. & swr3=0.
125net1=0. & net2=0. & net3=0.
126neto_1=0 & neto_2=0 & neto_3=0
127
128help, trop, olr
129
130file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc'
131initncdf, file
132swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1)
133swr2=read_ncdf("swr", st2, en2, file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2)
134swr3=read_ncdf("swr", st3, en3, file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy",/nan, box=box) & swr3=reform(swr3)
135
136file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lwr_oafluxgrid_1985_2007.nc'
137initncdf, file
138lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1)
139lwr2=-1*read_ncdf("lwr", st2, en2, file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2)
140lwr3=-1*read_ncdf("lwr", st3, en3, file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) & lwr3=reform(lwr3)
141
142file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lhf_oafluxgrid_1985_2009.nc'
143initncdf, file
144lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1)
145lhf2=-1*read_ncdf("lhf", st2, en2, file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2)
146lhf3=-1*read_ncdf("lhf", st3, en3, file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) & lhf3=reform(lhf3)
147
148file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2009.nc'
149initncdf, file
150shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1)
151shf2=-1*read_ncdf("shf", st2, en2, file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy",/nan, box=box) & shf2=reform(shf2)
152shf3=-1*read_ncdf("shf", st3, en3, file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy",/nan, box=box) & shf3=reform(shf3)
153
154net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2 & net3=swr3+lwr3+lhf3+shf3
155
156oaf=[net1,net2,net3]
157lhf1=0. & lhf2=0. & lhf3=0.
158shf1=0. & shf2=0. & shf3=0.
159lwr1=0. & lwr2=0. & lwr3=0.
160swr1=0. & swr2=0. & swr3=0.
161net1=0. & net2=0. & net3=0.
162help, oaf
163
164fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/swr_ncep2_oaflxgrid_19890101_20091231.nc'
165initncdf, fi
166swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1)
167swr2=read_ncdf("swr", st2, en2, file=fi,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy",/nan, box=box) & swr2=reform(swr2)
168swr3=read_ncdf("swr", st3, en3, file=fi,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy",/nan, box=box) & swr3=reform(swr3)
169
170fi="/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc"
171initncdf, fi
172lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1)
173lwr2=-1*read_ncdf("lwr", st2, en2, file=fi,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) & lwr2=reform(lwr2)
174lwr3=-1*read_ncdf("lwr", st3, en3, file=fi,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) & lwr3=reform(lwr3)
175
176fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/lhf_ncep2_oafluxgrid_19890101_20091231.nc'
177initncdf, fi
178lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1)
179lhf2=-1*read_ncdf("lhf", st2, en2, file=fi,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) & lhf2=reform(lhf2)
180lhf3=-1*read_ncdf("lhf", st3, en3, file=fi,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) & lhf3=reform(lhf3)
181
182fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/shf_ncep2_oafluxgrid_19890101_20091231.nc'
183initncdf, fi
184shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1)
185shf2=-1*read_ncdf("shf", st2, en2, file=fi,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy",/nan, box=box) & shf2=reform(shf2)
186shf3=-1*read_ncdf("shf", st3, en3, file=fi,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy",/nan, box=box) & shf3=reform(shf3)
187
188net1=swr1+lwr1+lhf1+shf1 & net2=swr2+lwr2+lhf2+shf2 & net3=swr3+lwr3+lhf3+shf3
189
190nce2=[net1,net2,net3]
191help, nce2
192
193lhf1=0. & lhf2=0. & lhf3=0.
194shf1=0. & shf2=0. & shf3=0.
195lwr1=0. & lwr2=0. & lwr3=0.
196swr1=0. & swr2=0. & swr3=0.
197net1=0. & net2=0. & net3=0.
198
199file="/Users/pkb/data/heat_budget/ncep/ncep1_flux_19890101_20091231.nc"
200initncdf, file
201
202lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1)
203lhf2=read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) & lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) & lhf2=reform(lhf2)
204lhf3=read_ncdf('lhf',st3,en3,file=file,/nostr, box=box) & lhf3=grossemoyenne(lhf3, "xy", box=box,/nan) & lhf3=reform(lhf3)
205
206shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1)
207shf2=read_ncdf('shf',st2,en2,file=file,/nostr, box=box) & shf2=grossemoyenne(shf2, "xy", box=box,/nan) & shf2=reform(shf2)
208shf3=read_ncdf('shf',st3,en3,file=file,/nostr, box=box) & shf3=grossemoyenne(shf3, "xy", box=box,/nan) & shf3=reform(shf3)
209
210lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1)
211lwr2=read_ncdf('lwr',st2,en2,file=file,/nostr, box=box) & lwr2=grossemoyenne(lwr2, "xy", box=box,/nan) & lwr2=reform(lwr2)
212lwr3=read_ncdf('lwr',st3,en3,file=file,/nostr, box=box) & lwr3=grossemoyenne(lwr3, "xy", box=box,/nan) & lwr3=reform(lwr3)
213
214swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1)
215swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) & swr2=grossemoyenne(swr2, "xy", box=box,/nan) & swr2=reform(swr2)
216swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box) & swr3=grossemoyenne(swr3, "xy", box=box,/nan) & swr3=reform(swr3)
217
218net1=swr1+(lwr1+shf1+lhf1) & net2=swr2+(lwr2+shf2+lhf2) & net3=swr3+(lwr3+shf3+lhf3)
219nce1=[net1,net2,net3]
220help, nce1
221
222lhf1=0. & lhf2=0. & lhf3=0.
223shf1=0. & shf2=0. & shf3=0.
224lwr1=0. & lwr2=0. & lwr3=0.
225swr1=0. & swr2=0. & swr3=0.
226net1=0. & net2=0. & net3=0.
227
228ind=where(finite(net))
229net=net(ind) & era=era(ind) & trop=trop(ind) & oaf=oaf(ind)
230nce2=nce2(ind) & nce1=nce1(ind) & olr=olr(ind)
231
232;------------------------------------------------------------
233
234statistics, net, era, $
235                 cor, bias, std, rmsd
236print, cor, bias, std,  rmsd
237cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
238
239statistics, net, trop, $
240                 cor, bias, std, rmsd
241print, cor, bias, std,  rmsd
242cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
243
244statistics, net, oaf, $
245                 cor, bias, std, rmsd
246print, cor, bias, std,  rmsd
247cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
248
249statistics, net, nce1, $
250                 cor, bias, std, rmsd
251print, cor, bias, std,  rmsd
252cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
253
254statistics, net, nce2, $
255                 cor, bias, std, rmsd
256print, cor, bias, std,  rmsd
257cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
258
259statistics, net, olr, $
260                 cor, bias, std, rmsd
261print, cor, bias, std,  rmsd
262cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
263
264;------------------------------------------------------------
265
266splot, net, era, charsize=1.1, title='Net Flux - WHOTS Vs ERAI', $
267     xrange=[-250,250], yrange=[-250,250], small=[2,3,1], psym=2, xmin=1, ymin=1
268oplot, [-250,250], [-250,250]
269xyouts, 0,-200, cstat_era, charsize=1.
270
271splot, net, trop, charsize=1.1, title='Net Flux - WHOTS Vs TropFlux',/noer, $
272     xrange=[-250,250], yrange=[-250,250], small=[2,3,2], psym=2, xmin=1, ymin=1
273oplot, [-250,250], [-250,250]
274xyouts, 0,-200, cstat_trop, charsize=1.
275
276splot, net, oaf, charsize=1.1, title='Net Flux - WHOTS Vs OAFlux',/noer, $
277     xrange=[-250,250], yrange=[-250,250], small=[2,3,3], psym=2, xmin=1, ymin=1
278oplot, [-250,250], [-250,250]
279xyouts, 0,-200, cstat_oaf, charsize=1.
280
281splot, net, nce1, charsize=1.1, title='Net Flux - WHOTS Vs NCEP1',/noer, $
282     xrange=[-250,250], yrange=[-250,250], small=[2,3,4], psym=2, xmin=1, ymin=1
283oplot, [-250,250], [-250,250]
284xyouts, 0,-200, cstat_nce1, charsize=1.
285
286splot, net, nce2, charsize=1.1, title='Net Flux - WHOTS Vs NCEP2',/noer, $
287     xrange=[-250,250], yrange=[-250,250], small=[2,3,5], psym=2, xmin=1, ymin=1
288oplot, [-250,250], [-250,250]
289xyouts, 0,-200, cstat_nce2, charsize=1.
290
291splot, net, olr, charsize=1.1, title='Net Flux - WHOTS Vs TropFlux_NRT',/noer, $
292     xrange=[-250,250], yrange=[-250,250], small=[2,3,6], psym=2, xmin=1, ymin=1
293oplot, [-250,250], [-250,250]
294xyouts, 0,-200, cstat_olr, charsize=1.
295
296;------------------------------------------------------------
297closeps
298fig="WHOTS_validation_net_2004_2007_all_v10.ps"
299spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig
300spawn, 'gv '+cpsdir+fig
301;------------------------------------------------------------
302return
303end
304
Note: See TracBrowser for help on using the repository browser.