1 | ;+ |
---|
2 | ; .. _whots_validation_net_2004_2007_all_v10.pro: |
---|
3 | ; |
---|
4 | ; ========================================== |
---|
5 | ; whots_validation_net_2004_2007_all_v10.pro |
---|
6 | ; ========================================== |
---|
7 | ; |
---|
8 | ; DESCRIPTION |
---|
9 | ; =========== |
---|
10 | ; |
---|
11 | ; .. graphviz:: |
---|
12 | ; |
---|
13 | ; digraph whots_validation_net_2004_2007_all_v10 { |
---|
14 | ; |
---|
15 | ; met_data [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/met_data_WHOTS_200?_200?.txt"]; |
---|
16 | ; swr_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_swr_19910101_20091231_oafluxgrid.nc"]; |
---|
17 | ; lwr_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_lwr_19910101_20091231_oafluxgrid.nc"]; |
---|
18 | ; lhf_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_lhf_19910101_20091231_oafluxgrid.nc"]; |
---|
19 | ; shf_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_shf_19910101_20091231_oafluxgrid.nc"]; |
---|
20 | ; tropflux_general [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_19890101_20091231.nc"]; |
---|
21 | ; swr_tropflux_nrt [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"]; |
---|
22 | ; swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_oafluxgrid_1985_2007.nc"]; |
---|
23 | ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lwr_oafluxgrid_1985_2007.nc"]; |
---|
24 | ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_oafluxgrid_1985_2007.nc"]; |
---|
25 | ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_oafluxgrid_1985_2007.nc"]; |
---|
26 | ; swr_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"]; |
---|
27 | ; lwr_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/NCEP2_flux_19890101_20090729.nc"]; |
---|
28 | ; lhf_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"]; |
---|
29 | ; shf_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"]; |
---|
30 | ; |
---|
31 | ; ncep1 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/ncep1_flux_19890101_20091231.nc"]; |
---|
32 | ; |
---|
33 | ; figure [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/WHOTS_validation_net_2004_2007_all_v10.ps"]; |
---|
34 | ; |
---|
35 | ; whots_validation_net_2004_2007_all_v10 [shape=box, |
---|
36 | ; fontname=Courier, |
---|
37 | ; color=blue, |
---|
38 | ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/whots_validation_net_2004_2007_all_v10.pro", |
---|
39 | ; label="${TROPFLUX}/src/paper01/fig14/whots_validation_net_2004_2007_all_v10.pro"]; |
---|
40 | ; |
---|
41 | ; {met_data swr_erai lwr_erai lhf_erai shf_erai tropflux_general swr_tropflux_nrt swr_oafluxgrid lwr_oafluxgrid lhf_oafluxgrid shf_oafluxgrid swr_ncep2 lwr_ncep2 lhf_ncep2 shf_ncep2 ncep1} -> {whots_validation_net_2004_2007_all_v10} -> {figure} |
---|
42 | ; } |
---|
43 | ; |
---|
44 | ; SEE ALSO |
---|
45 | ; ======== |
---|
46 | ; |
---|
47 | ; :ref:`project_profile.sh` |
---|
48 | ; :ref:`project_init.pro` |
---|
49 | ; :ref:`cm_project.pro` |
---|
50 | ; |
---|
51 | ; :ref:`statistics.pro` |
---|
52 | ; |
---|
53 | ; EXAMPLES |
---|
54 | ; ======== |
---|
55 | ; |
---|
56 | ; :: |
---|
57 | ; |
---|
58 | ; whots_validation_net_2004_2007_all_v10 |
---|
59 | ; |
---|
60 | ; TODO |
---|
61 | ; ==== |
---|
62 | ; |
---|
63 | ; make it work on cratos : missing data |
---|
64 | ; |
---|
65 | ; coding rules |
---|
66 | ; |
---|
67 | ; complete description |
---|
68 | ; |
---|
69 | ; handle IO error |
---|
70 | ; |
---|
71 | ; EVOLUTIONS |
---|
72 | ; ========== |
---|
73 | ; |
---|
74 | ; $Id$ |
---|
75 | ; |
---|
76 | ; $URL$ |
---|
77 | ; |
---|
78 | ; - fplod 20110420T122057Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
79 | ; |
---|
80 | ; * remove hard coding path |
---|
81 | ; * add graphviz |
---|
82 | ; |
---|
83 | ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
84 | ; |
---|
85 | ; * minimal header |
---|
86 | ; |
---|
87 | ;- |
---|
88 | pro whots_validation_net_2004_2007_all_v10 |
---|
89 | @cm_general |
---|
90 | @cm_project |
---|
91 | reinitplt, /z,/invert |
---|
92 | key_portrait = 1 |
---|
93 | coefpalit=.9 |
---|
94 | ; |
---|
95 | openps, FILENAME = project_od_env+"WHOTS_validation_net_2004_2007_all_v10.ps" |
---|
96 | ; partie a changer |
---|
97 | ; |
---|
98 | ; WHOTS in the NC pacific 2004-09 |
---|
99 | ;22.45N, 157.54W (202.46E) |
---|
100 | box=[202, 203, 22., 23.] |
---|
101 | ; |
---|
102 | ; first leg |
---|
103 | ; |
---|
104 | fi=project_id_env+"met_data_WHOTS_2004_2005.txt" |
---|
105 | res=read_ascii(fi,data_start=1) |
---|
106 | ff=res.field1 |
---|
107 | lhf_04=reform(ff(5,*)) |
---|
108 | shf_04=reform(ff(6,*)) |
---|
109 | swr_04=reform(ff(7,*))/0.93 |
---|
110 | lwr_04=reform(ff(8,*)) |
---|
111 | net_04=[lhf_04+shf_04+swr_04+lwr_04] |
---|
112 | ; |
---|
113 | fi=project_id_env+"met_data_WHOTS_2005_2006.txt" |
---|
114 | res=read_ascii(fi,data_start=1) |
---|
115 | ff=res.field1 |
---|
116 | lhf_05=reform(ff(5,*)) |
---|
117 | shf_05=reform(ff(6,*)) |
---|
118 | swr_05=reform(ff(7,*))/0.93 |
---|
119 | lwr_05=reform(ff(8,*)) |
---|
120 | net_05=[lhf_05+shf_05+swr_05+lwr_05] |
---|
121 | ; |
---|
122 | fi=project_id_env+"met_data_WHOTS_2006_2007.txt" |
---|
123 | res=read_ascii(fi,data_start=1) |
---|
124 | ff=res.field1 |
---|
125 | lhf_06=reform(ff(5,*)) |
---|
126 | shf_06=reform(ff(6,*)) |
---|
127 | swr_06=reform(ff(7,*))/0.93 |
---|
128 | lwr_06=reform(ff(8,*)) |
---|
129 | net_06=[lhf_06+shf_06+swr_06+lwr_06] |
---|
130 | ; |
---|
131 | net=[net_04, net_05, net_06] |
---|
132 | ; |
---|
133 | help, net |
---|
134 | ; |
---|
135 | ; reading other data sets |
---|
136 | ; |
---|
137 | st1=20040813 |
---|
138 | en1=20050725 |
---|
139 | st2=20050728 |
---|
140 | en2=20060624 |
---|
141 | st3=20060627 |
---|
142 | en3=20070628 |
---|
143 | ;st4=20070626 |
---|
144 | ;en4=20080606 |
---|
145 | ;st5=20080605 |
---|
146 | ; en5=20090715 |
---|
147 | ; |
---|
148 | file=project_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' |
---|
149 | initncdf, file |
---|
150 | lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) |
---|
151 | lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) |
---|
152 | lhf1=reform(lhf1) |
---|
153 | lhf2=-1*read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) |
---|
154 | lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) |
---|
155 | lhf2=reform(lhf2) |
---|
156 | lhf3=-1*read_ncdf('lhf',st3,en3,file=file,/nostr, box=box) |
---|
157 | lhf3=grossemoyenne(lhf3, "xy", box=box,/nan) |
---|
158 | lhf3=reform(lhf3) |
---|
159 | ; |
---|
160 | file=project_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' |
---|
161 | initncdf, file |
---|
162 | shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) |
---|
163 | shf1=grossemoyenne(shf1, "xy", box=box,/nan) |
---|
164 | shf1=reform(shf1) |
---|
165 | shf2=-1*read_ncdf('shf',st2,en2,file=file,/nostr, box=box) |
---|
166 | shf2=grossemoyenne(shf2, "xy", box=box,/nan) |
---|
167 | shf2=reform(shf2) |
---|
168 | shf3=-1*read_ncdf('shf',st3,en3,file=file,/nostr, box=box) |
---|
169 | shf3=grossemoyenne(shf3, "xy", box=box,/nan) |
---|
170 | shf3=reform(shf3) |
---|
171 | ; |
---|
172 | file=project_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc' |
---|
173 | initncdf, file |
---|
174 | lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) |
---|
175 | lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) |
---|
176 | lwr1=reform(lwr1) |
---|
177 | lwr2=read_ncdf('lwr',st2-1,en2,file=file,/nostr, box=box) |
---|
178 | lwr2=grossemoyenne(lwr2, "xy", box=box,/nan) |
---|
179 | lwr2=reform(lwr2) |
---|
180 | lwr3=read_ncdf('lwr',st3-1,en3,file=file,/nostr, box=box) |
---|
181 | lwr3=grossemoyenne(lwr3, "xy", box=box,/nan) |
---|
182 | lwr3=reform(lwr3) |
---|
183 | ; |
---|
184 | file=project_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc" |
---|
185 | initncdf, file |
---|
186 | swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) |
---|
187 | swr1=grossemoyenne(swr1, "xy", box=box,/nan) |
---|
188 | swr1=reform(swr1) |
---|
189 | swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) |
---|
190 | swr2=grossemoyenne(swr2, "xy", box=box,/nan) |
---|
191 | swr2=reform(swr2) |
---|
192 | swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box) |
---|
193 | swr3=grossemoyenne(swr3, "xy", box=box,/nan) |
---|
194 | swr3=reform(swr3) |
---|
195 | ; |
---|
196 | net1=swr1+(lwr1+shf1+lhf1) |
---|
197 | net2=swr2+(lwr2+shf2+lhf2) |
---|
198 | net3=swr3+(lwr3+shf3+lhf3) |
---|
199 | era=[net1,net2,net3] |
---|
200 | lhf1=0. |
---|
201 | lhf2=0. |
---|
202 | lhf3=0. |
---|
203 | shf1=0. |
---|
204 | shf2=0. |
---|
205 | shf3=0. |
---|
206 | lwr1=0. |
---|
207 | lwr2=0. |
---|
208 | lwr3=0. |
---|
209 | swr1=0. |
---|
210 | swr2=0. |
---|
211 | swr3=0. |
---|
212 | net1=0. |
---|
213 | net2=0. |
---|
214 | net3=0. |
---|
215 | help, era |
---|
216 | ; |
---|
217 | file=project_id_env+"TropFlux_19890101_20091231.nc" |
---|
218 | initncdf, file |
---|
219 | ; |
---|
220 | lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) |
---|
221 | lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) |
---|
222 | lhf1=reform(lhf1) |
---|
223 | lhf2=read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) |
---|
224 | lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) |
---|
225 | lhf2=reform(lhf2) |
---|
226 | lhf3=read_ncdf('lhf',st3,en3,file=file,/nostr, box=box) |
---|
227 | lhf3=grossemoyenne(lhf3, "xy", box=box,/nan) |
---|
228 | lhf3=reform(lhf3) |
---|
229 | ; |
---|
230 | shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) |
---|
231 | shf1=grossemoyenne(shf1, "xy", box=box,/nan) |
---|
232 | shf1=reform(shf1) |
---|
233 | shf2=read_ncdf('shf',st2,en2,file=file,/nostr, box=box) |
---|
234 | shf2=grossemoyenne(shf2, "xy", box=box,/nan) |
---|
235 | shf2=reform(shf2) |
---|
236 | shf3=read_ncdf('shf',st3,en3,file=file,/nostr, box=box) |
---|
237 | shf3=grossemoyenne(shf3, "xy", box=box,/nan) |
---|
238 | shf3=reform(shf3) |
---|
239 | ; |
---|
240 | lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) |
---|
241 | lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) |
---|
242 | lwr1=reform(lwr1) |
---|
243 | lwr2=read_ncdf('lwr',st2,en2,file=file,/nostr, box=box) |
---|
244 | lwr2=grossemoyenne(lwr2, "xy", box=box,/nan) |
---|
245 | lwr2=reform(lwr2) |
---|
246 | lwr3=read_ncdf('lwr',st3,en3,file=file,/nostr, box=box) |
---|
247 | lwr3=grossemoyenne(lwr3, "xy", box=box,/nan) |
---|
248 | lwr3=reform(lwr3) |
---|
249 | ; |
---|
250 | swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) |
---|
251 | swr1=grossemoyenne(swr1, "xy", box=box,/nan) |
---|
252 | swr1=reform(swr1) |
---|
253 | swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) |
---|
254 | swr2=grossemoyenne(swr2, "xy", box=box,/nan) |
---|
255 | swr2=reform(swr2) |
---|
256 | swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box) |
---|
257 | swr3=grossemoyenne(swr3, "xy", box=box,/nan) |
---|
258 | swr3=reform(swr3) |
---|
259 | ; |
---|
260 | file=project_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc" |
---|
261 | initncdf, file |
---|
262 | olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) |
---|
263 | olr1=grossemoyenne(olr1, "xy",/nan, box=box) |
---|
264 | olr1=reform(olr1) |
---|
265 | olr2=read_ncdf("sw", st2-1, en2, file=file,/nostr, box=box) |
---|
266 | olr2=grossemoyenne(olr2, "xy",/nan, box=box) |
---|
267 | olr2=reform(olr2) |
---|
268 | olr3=read_ncdf("sw", st3-1, en3, file=file,/nostr, box=box) |
---|
269 | olr3=grossemoyenne(olr3, "xy",/nan, box=box) |
---|
270 | olr3=reform(olr3) |
---|
271 | ; |
---|
272 | net1=swr1+lwr1+(shf1+lhf1) |
---|
273 | net2=swr2+lwr2+(shf2+lhf2) |
---|
274 | net3=swr3+lwr3+(shf3+lhf3) |
---|
275 | neto_1=olr1+lwr1+lhf1+shf1 |
---|
276 | neto_2=olr2+lwr2+lhf2+shf2 |
---|
277 | neto_3=olr3+lwr3+lhf3+shf3 |
---|
278 | ; |
---|
279 | trop=[net1,net2,net3] |
---|
280 | olr=[neto_1,neto_2,neto_3] |
---|
281 | ; |
---|
282 | lhf1=0. |
---|
283 | lhf2=0. |
---|
284 | lhf3=0. |
---|
285 | shf1=0. |
---|
286 | shf2=0. |
---|
287 | shf3=0. |
---|
288 | lwr1=0. |
---|
289 | lwr2=0. |
---|
290 | lwr3=0. |
---|
291 | swr1=0. |
---|
292 | swr2=0. |
---|
293 | swr3=0. |
---|
294 | net1=0. |
---|
295 | net2=0. |
---|
296 | net3=0. |
---|
297 | neto_1=0 |
---|
298 | neto_2=0 |
---|
299 | neto_3=0 |
---|
300 | ; |
---|
301 | help, trop, olr |
---|
302 | ; |
---|
303 | file=project_id_env+'swr_oafluxgrid_1985_2007.nc' |
---|
304 | initncdf, file |
---|
305 | swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) |
---|
306 | swr1=grossemoyenne(swr1, "xy",/nan, box=box) |
---|
307 | swr1=reform(swr1) |
---|
308 | swr2=read_ncdf("swr", st2, en2, file=file,/nostr, box=box) |
---|
309 | swr2=grossemoyenne(swr2, "xy",/nan, box=box) |
---|
310 | swr2=reform(swr2) |
---|
311 | swr3=read_ncdf("swr", st3, en3, file=file,/nostr, box=box) |
---|
312 | swr3=grossemoyenne(swr3, "xy",/nan, box=box) |
---|
313 | swr3=reform(swr3) |
---|
314 | ; |
---|
315 | file=project_id_env+'lwr_oafluxgrid_1985_2007.nc' |
---|
316 | initncdf, file |
---|
317 | lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) |
---|
318 | lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) |
---|
319 | lwr1=reform(lwr1) |
---|
320 | lwr2=-1*read_ncdf("lwr", st2, en2, file=file,/nostr, box=box) |
---|
321 | lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) |
---|
322 | lwr2=reform(lwr2) |
---|
323 | lwr3=-1*read_ncdf("lwr", st3, en3, file=file,/nostr, box=box) |
---|
324 | lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) |
---|
325 | lwr3=reform(lwr3) |
---|
326 | ; |
---|
327 | file=project_id_env+'lhf_oafluxgrid_1985_2009.nc' |
---|
328 | initncdf, file |
---|
329 | lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) |
---|
330 | lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) |
---|
331 | lhf1=reform(lhf1) |
---|
332 | lhf2=-1*read_ncdf("lhf", st2, en2, file=file,/nostr, box=box) |
---|
333 | lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) |
---|
334 | lhf2=reform(lhf2) |
---|
335 | lhf3=-1*read_ncdf("lhf", st3, en3, file=file,/nostr, box=box) |
---|
336 | lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) |
---|
337 | lhf3=reform(lhf3) |
---|
338 | ; |
---|
339 | file=project_id_env+'shf_oafluxgrid_1985_2009.nc' |
---|
340 | initncdf, file |
---|
341 | shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box) |
---|
342 | shf1=grossemoyenne(shf1, "xy",/nan, box=box) |
---|
343 | shf1=reform(shf1) |
---|
344 | shf2=-1*read_ncdf("shf", st2, en2, file=file,/nostr, box=box) |
---|
345 | shf2=grossemoyenne(shf2, "xy",/nan, box=box) |
---|
346 | shf2=reform(shf2) |
---|
347 | shf3=-1*read_ncdf("shf", st3, en3, file=file,/nostr, box=box) |
---|
348 | shf3=grossemoyenne(shf3, "xy",/nan, box=box) |
---|
349 | shf3=reform(shf3) |
---|
350 | ; |
---|
351 | net1=swr1+lwr1+lhf1+shf1 |
---|
352 | net2=swr2+lwr2+lhf2+shf2 |
---|
353 | net3=swr3+lwr3+lhf3+shf3 |
---|
354 | ; |
---|
355 | oaf=[net1,net2,net3] |
---|
356 | lhf1=0. |
---|
357 | lhf2=0. |
---|
358 | lhf3=0. |
---|
359 | shf1=0. |
---|
360 | shf2=0. |
---|
361 | shf3=0. |
---|
362 | lwr1=0. |
---|
363 | lwr2=0. |
---|
364 | lwr3=0. |
---|
365 | swr1=0. |
---|
366 | swr2=0. |
---|
367 | swr3=0. |
---|
368 | net1=0. |
---|
369 | net2=0. |
---|
370 | net3=0. |
---|
371 | help, oaf |
---|
372 | ; |
---|
373 | fi=project_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' |
---|
374 | initncdf, fi |
---|
375 | swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) |
---|
376 | swr1=grossemoyenne(swr1, "xy",/nan, box=box) |
---|
377 | swr1=reform(swr1) |
---|
378 | swr2=read_ncdf("swr", st2, en2, file=fi,/nostr, box=box) |
---|
379 | swr2=grossemoyenne(swr2, "xy",/nan, box=box) |
---|
380 | swr2=reform(swr2) |
---|
381 | swr3=read_ncdf("swr", st3, en3, file=fi,/nostr, box=box) |
---|
382 | swr3=grossemoyenne(swr3, "xy",/nan, box=box) |
---|
383 | swr3=reform(swr3) |
---|
384 | ; |
---|
385 | fi=project_id_env+'NCEP2_flux_19890101_20090729.nc" |
---|
386 | initncdf, fi |
---|
387 | lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) |
---|
388 | lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) |
---|
389 | lwr1=reform(lwr1) |
---|
390 | lwr2=-1*read_ncdf("lwr", st2, en2, file=fi,/nostr, box=box) |
---|
391 | lwr2=grossemoyenne(lwr2, "xy",/nan, box=box) |
---|
392 | lwr2=reform(lwr2) |
---|
393 | lwr3=-1*read_ncdf("lwr", st3, en3, file=fi,/nostr, box=box) |
---|
394 | lwr3=grossemoyenne(lwr3, "xy",/nan, box=box) |
---|
395 | lwr3=reform(lwr3) |
---|
396 | ; |
---|
397 | fi=project_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' |
---|
398 | initncdf, fi |
---|
399 | lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) |
---|
400 | lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) |
---|
401 | lhf1=reform(lhf1) |
---|
402 | lhf2=-1*read_ncdf("lhf", st2, en2, file=fi,/nostr, box=box) |
---|
403 | lhf2=grossemoyenne(lhf2, "xy",/nan, box=box) |
---|
404 | lhf2=reform(lhf2) |
---|
405 | lhf3=-1*read_ncdf("lhf", st3, en3, file=fi,/nostr, box=box) |
---|
406 | lhf3=grossemoyenne(lhf3, "xy",/nan, box=box) |
---|
407 | lhf3=reform(lhf3) |
---|
408 | ; |
---|
409 | fi=project_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' |
---|
410 | initncdf, fi |
---|
411 | shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) |
---|
412 | shf1=grossemoyenne(shf1, "xy",/nan, box=box) |
---|
413 | shf1=reform(shf1) |
---|
414 | shf2=-1*read_ncdf("shf", st2, en2, file=fi,/nostr, box=box) |
---|
415 | shf2=grossemoyenne(shf2, "xy",/nan, box=box) |
---|
416 | shf2=reform(shf2) |
---|
417 | shf3=-1*read_ncdf("shf", st3, en3, file=fi,/nostr, box=box) |
---|
418 | shf3=grossemoyenne(shf3, "xy",/nan, box=box) |
---|
419 | shf3=reform(shf3) |
---|
420 | ; |
---|
421 | net1=swr1+lwr1+lhf1+shf1 |
---|
422 | net2=swr2+lwr2+lhf2+shf2 |
---|
423 | net3=swr3+lwr3+lhf3+shf3 |
---|
424 | ; |
---|
425 | nce2=[net1,net2,net3] |
---|
426 | help, nce2 |
---|
427 | ; |
---|
428 | lhf1=0. |
---|
429 | lhf2=0. |
---|
430 | lhf3=0. |
---|
431 | shf1=0. |
---|
432 | shf2=0. |
---|
433 | shf3=0. |
---|
434 | lwr1=0. |
---|
435 | lwr2=0. |
---|
436 | lwr3=0. |
---|
437 | swr1=0. |
---|
438 | swr2=0. |
---|
439 | swr3=0. |
---|
440 | net1=0. |
---|
441 | net2=0. |
---|
442 | net3=0. |
---|
443 | ; |
---|
444 | file=project_id_env+"ncep1_flux_19890101_20091231.nc" |
---|
445 | initncdf, file |
---|
446 | ; |
---|
447 | lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) |
---|
448 | lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) |
---|
449 | lhf1=reform(lhf1) |
---|
450 | lhf2=read_ncdf('lhf',st2,en2,file=file,/nostr, box=box) |
---|
451 | lhf2=grossemoyenne(lhf2, "xy", box=box,/nan) |
---|
452 | lhf2=reform(lhf2) |
---|
453 | lhf3=read_ncdf('lhf',st3,en3,file=file,/nostr, box=box) |
---|
454 | lhf3=grossemoyenne(lhf3, "xy", box=box,/nan) |
---|
455 | lhf3=reform(lhf3) |
---|
456 | ; |
---|
457 | shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) |
---|
458 | shf1=grossemoyenne(shf1, "xy", box=box,/nan) |
---|
459 | shf1=reform(shf1) |
---|
460 | shf2=read_ncdf('shf',st2,en2,file=file,/nostr, box=box) |
---|
461 | shf2=grossemoyenne(shf2, "xy", box=box,/nan) |
---|
462 | shf2=reform(shf2) |
---|
463 | shf3=read_ncdf('shf',st3,en3,file=file,/nostr, box=box) |
---|
464 | shf3=grossemoyenne(shf3, "xy", box=box,/nan) |
---|
465 | shf3=reform(shf3) |
---|
466 | ; |
---|
467 | lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) |
---|
468 | lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) |
---|
469 | lwr1=reform(lwr1) |
---|
470 | lwr2=read_ncdf('lwr',st2,en2,file=file,/nostr, box=box) |
---|
471 | lwr2=grossemoyenne(lwr2, "xy", box=box,/nan) |
---|
472 | lwr2=reform(lwr2) |
---|
473 | lwr3=read_ncdf('lwr',st3,en3,file=file,/nostr, box=box) |
---|
474 | lwr3=grossemoyenne(lwr3, "xy", box=box,/nan) |
---|
475 | lwr3=reform(lwr3) |
---|
476 | ; |
---|
477 | swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) |
---|
478 | swr1=grossemoyenne(swr1, "xy", box=box,/nan) |
---|
479 | swr1=reform(swr1) |
---|
480 | swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box) |
---|
481 | swr2=grossemoyenne(swr2, "xy", box=box,/nan) |
---|
482 | swr2=reform(swr2) |
---|
483 | swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box) |
---|
484 | swr3=grossemoyenne(swr3, "xy", box=box,/nan) |
---|
485 | swr3=reform(swr3) |
---|
486 | ; |
---|
487 | net1=swr1+(lwr1+shf1+lhf1) |
---|
488 | net2=swr2+(lwr2+shf2+lhf2) |
---|
489 | net3=swr3+(lwr3+shf3+lhf3) |
---|
490 | nce1=[net1,net2,net3] |
---|
491 | help, nce1 |
---|
492 | ; |
---|
493 | lhf1=0. |
---|
494 | lhf2=0. |
---|
495 | lhf3=0. |
---|
496 | shf1=0. |
---|
497 | shf2=0. |
---|
498 | shf3=0. |
---|
499 | lwr1=0. |
---|
500 | lwr2=0. |
---|
501 | lwr3=0. |
---|
502 | swr1=0. |
---|
503 | swr2=0. |
---|
504 | swr3=0. |
---|
505 | net1=0. |
---|
506 | net2=0. |
---|
507 | net3=0. |
---|
508 | ; |
---|
509 | ind=where(finite(net)) |
---|
510 | net=net(ind) |
---|
511 | era=era(ind) |
---|
512 | trop=trop(ind) |
---|
513 | oaf=oaf(ind) |
---|
514 | nce2=nce2(ind) |
---|
515 | nce1=nce1(ind) |
---|
516 | olr=olr(ind) |
---|
517 | ; |
---|
518 | statistics, net, era, $ |
---|
519 | cor, bias, std, rmsd |
---|
520 | print, cor, bias, std, rmsd |
---|
521 | cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
522 | ; |
---|
523 | statistics, net, trop, $ |
---|
524 | cor, bias, std, rmsd |
---|
525 | print, cor, bias, std, rmsd |
---|
526 | cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
527 | ; |
---|
528 | statistics, net, oaf, $ |
---|
529 | cor, bias, std, rmsd |
---|
530 | print, cor, bias, std, rmsd |
---|
531 | cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
532 | ; |
---|
533 | statistics, net, nce1, $ |
---|
534 | cor, bias, std, rmsd |
---|
535 | print, cor, bias, std, rmsd |
---|
536 | cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
537 | ; |
---|
538 | statistics, net, nce2, $ |
---|
539 | cor, bias, std, rmsd |
---|
540 | print, cor, bias, std, rmsd |
---|
541 | cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
542 | ; |
---|
543 | statistics, net, olr, $ |
---|
544 | cor, bias, std, rmsd |
---|
545 | print, cor, bias, std, rmsd |
---|
546 | cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
547 | ; |
---|
548 | splot, net, era, charsize=1.1, title='Net Flux - WHOTS Vs ERAI', $ |
---|
549 | xrange=[-250,250], yrange=[-250,250], small=[2,3,1], psym=2, xmin=1, ymin=1 |
---|
550 | oplot, [-250,250], [-250,250] |
---|
551 | xyouts, 0,-200, cstat_era, charsize=1. |
---|
552 | ; |
---|
553 | splot, net, trop, charsize=1.1, title='Net Flux - WHOTS Vs TropFlux',/noer, $ |
---|
554 | xrange=[-250,250], yrange=[-250,250], small=[2,3,2], psym=2, xmin=1, ymin=1 |
---|
555 | oplot, [-250,250], [-250,250] |
---|
556 | xyouts, 0,-200, cstat_trop, charsize=1. |
---|
557 | ; |
---|
558 | splot, net, oaf, charsize=1.1, title='Net Flux - WHOTS Vs OAFlux',/noer, $ |
---|
559 | xrange=[-250,250], yrange=[-250,250], small=[2,3,3], psym=2, xmin=1, ymin=1 |
---|
560 | oplot, [-250,250], [-250,250] |
---|
561 | xyouts, 0,-200, cstat_oaf, charsize=1. |
---|
562 | ; |
---|
563 | splot, net, nce1, charsize=1.1, title='Net Flux - WHOTS Vs NCEP1',/noer, $ |
---|
564 | xrange=[-250,250], yrange=[-250,250], small=[2,3,4], psym=2, xmin=1, ymin=1 |
---|
565 | oplot, [-250,250], [-250,250] |
---|
566 | xyouts, 0,-200, cstat_nce1, charsize=1. |
---|
567 | ; |
---|
568 | splot, net, nce2, charsize=1.1, title='Net Flux - WHOTS Vs NCEP2',/noer, $ |
---|
569 | xrange=[-250,250], yrange=[-250,250], small=[2,3,5], psym=2, xmin=1, ymin=1 |
---|
570 | oplot, [-250,250], [-250,250] |
---|
571 | xyouts, 0,-200, cstat_nce2, charsize=1. |
---|
572 | ; |
---|
573 | splot, net, olr, charsize=1.1, title='Net Flux - WHOTS Vs TropFlux_NRT',/noer, $ |
---|
574 | xrange=[-250,250], yrange=[-250,250], small=[2,3,6], psym=2, xmin=1, ymin=1 |
---|
575 | oplot, [-250,250], [-250,250] |
---|
576 | xyouts, 0,-200, cstat_olr, charsize=1. |
---|
577 | ; |
---|
578 | closeps |
---|
579 | ; |
---|
580 | end |
---|