source: trunk/src/paper01/fig14/coare_validation_net_1992_93_all_v10.pro

Last change on this file was 203, checked in by pinsard, 10 years ago

fix thanks to coding rules

  • Property svn:keywords set to Id URL
File size: 20.1 KB
Line 
1;+
2; .. _coare_validation_net_1992_93_all_v10.pro:
3;
4; ========================================
5; coare_validation_net_1992_93_all_v10.pro
6; ========================================
7;
8; DESCRIPTION
9; ===========
10;
11; .. graphviz::
12;
13;    digraph coare_validation_net_1992_93_all_v10 {
14;
15;       met_data [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/met_data_as_expt_199*_p*.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}/coare_validation_net_1992_93_all_v11.ps"];
34;
35;       coare_validation_net_1992_93_all_v10 [shape=box,
36;       fontname=Courier,
37;       color=blue,
38;       URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/coare_validation_net_1992_93_all_v10.pro",
39;       label="${TROPFLUX}/src/paper01/fig14/coare_validation_net_1992_93_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} -> {coare_validation_net_1992_93_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; .. code-block:: idl
57;
58;    coare_validation_net_1992_93_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 20110420T120449Z 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;-
88pro coare_validation_net_1992_93_all_v10
89@cm_general
90@cm_project
91reinitplt, /z,/invert
92key_portrait = 1
93coefpalit=.9
94;
95openps, FILENAME = project_od_env+"coare_validation_net_1992_93_all_v11.ps"
96; partie a changer
97;
98box=[155.5, 156.5, -2, -1]
99;
100; first leg
101; start data - 11/11/92 and end date 03/12/92
102fi=project_id_env+"met_data_coare_expt_1992_p1.txt"
103res=read_ascii(fi,data_start=1)
104ff=res.field1
105date=reform(ff(0,*))
106sw92_1=reform(ff(7,*))/0.93
107lw92_1=reform(ff(8,*))
108lh92_1=reform(ff(5,*))
109sh92_1=reform(ff(6,*))
110;
111net1=sw92_1+lw92_1+lh92_1+sh92_1
112;
113st1=921111
114en1=921203
115;
116; second leg
117;
118fi=project_id_env+"met_data_coare_expt_1992_p2.txt"
119res=read_ascii(fi,data_start=1)
120ff=res.field1
121sw92_2=reform(ff(7,*))/0.93
122lw92_2=reform(ff(8,*))
123lh92_2=reform(ff(5,*))
124sh92_2=reform(ff(6,*))
125;
126net2=sw92_2+lw92_2+lh92_2+sh92_2
127;
128; start data - 17/12/92 and end date 31/12/92
129st2=19921217
130en2=19921231
131;
132; third leg
133;
134fi=project_id_env+"met_data_coare_expt_1993_p1.txt"
135res=read_ascii(fi,data_start=1)
136ff=res.field1
137sw93_1=reform(ff(7,*))/0.93
138lw93_1=reform(ff(8,*))
139lh93_1=reform(ff(5,*))
140sh93_1=reform(ff(6,*))
141;
142net3=sw93_1+lw93_1+lh93_1+sh93_1
143;
144; start data - 01/01/93 and end date 11/01/93
145st3=19930101
146en3=19930111
147;
148; fourth leg
149;
150fi=project_id_env+"met_data_coare_expt_1993_p2.txt"
151res=read_ascii(fi,data_start=1)
152ff=res.field1
153sw93_2=reform(ff(7,*))
154lw93_2=reform(ff(8,*))
155lh93_2=reform(ff(5,*))
156sh93_2=reform(ff(6,*))
157;
158net4=sw93_2+lw93_2+lh93_2+sh93_2
159;
160; start data - 28/01/93 and end date 16/02/93
161st4=19930128
162en4=19930216
163;
164net=[net1, net2, net3, net4]
165help, net
166;
167; reading other data sets
168;
169st1=19921111
170en1=19921203
171st2=19921217
172en2=19921231
173st3=19930101
174en3=19930111
175st4=19930128
176en4=19930216
177;
178file=project_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc"
179initncdf, file
180swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box)
181swr1=grossemoyenne(swr1, "xy", box=box,/nan)
182swr1=reform(swr1)
183swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box)
184swr2=grossemoyenne(swr2, "xy", box=box,/nan)
185swr2=reform(swr2)
186swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box)
187swr3=grossemoyenne(swr3, "xy", box=box,/nan)
188swr3=reform(swr3)
189swr4=read_ncdf('swr',st4,en4,file=file,/nostr, box=box)
190swr4=grossemoyenne(swr4, "xy", box=box,/nan)
191swr4=reform(swr4)
192;
193file=project_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc'
194initncdf, file
195lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box)
196lwr1=grossemoyenne(lwr1, "xy", box=box,/nan)
197lwr1=reform(lwr1)
198lwr2=read_ncdf('lwr',st2-1,en2,file=file,/nostr, box=box)
199lwr2=grossemoyenne(lwr2, "xy", box=box,/nan)
200lwr2=reform(lwr2)
201lwr3=read_ncdf('lwr',st3-1,en3,file=file,/nostr, box=box)
202lwr3=grossemoyenne(lwr3, "xy", box=box,/nan)
203lwr3=reform(lwr3)
204lwr4=read_ncdf('lwr',st4-1,en4,file=file,/nostr, box=box)
205lwr4=grossemoyenne(lwr4, "xy", box=box,/nan)
206lwr4=reform(lwr4)
207;
208file=project_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc'
209initncdf, file
210lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box)
211lhf1=grossemoyenne(lhf1, "xy", box=box,/nan)
212lhf1=reform(lhf1)
213lhf2=-1*read_ncdf('lhf',st2,en2,file=file,/nostr, box=box)
214lhf2=grossemoyenne(lhf2, "xy", box=box,/nan)
215lhf2=reform(lhf2)
216lhf3=-1*read_ncdf('lhf',st3,en3,file=file,/nostr, box=box)
217lhf3=grossemoyenne(lhf3, "xy", box=box,/nan)
218lhf3=reform(lhf3)
219lhf4=-1*read_ncdf('lhf',st4,en4,file=file,/nostr, box=box)
220lhf4=grossemoyenne(lhf4, "xy", box=box,/nan)
221lhf4=reform(lhf4)
222;
223file=project_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc'
224initncdf, file
225shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box)
226shf1=grossemoyenne(shf1, "xy", box=box,/nan)
227shf1=reform(shf1)
228shf2=-1*read_ncdf('shf',st2,en2,file=file,/nostr, box=box)
229shf2=grossemoyenne(shf2, "xy", box=box,/nan)
230shf2=reform(shf2)
231shf3=-1*read_ncdf('shf',st3,en3,file=file,/nostr, box=box)
232shf3=grossemoyenne(shf3, "xy", box=box,/nan)
233shf3=reform(shf3)
234shf4=-1*read_ncdf('shf',st4,en4,file=file,/nostr, box=box)
235shf4=grossemoyenne(shf4, "xy", box=box,/nan)
236shf4=reform(shf4)
237;
238net1=swr1+lwr1+lhf1+shf1
239net2=swr2+lwr2+lhf2+shf2
240net3=swr3+lwr3+lhf3+shf3
241net4=swr4+lwr4+lhf4+shf4
242era=[net1,net2,net3,net4]
243;
244help, era
245swr1=0
246swr2=0
247swr3=0
248swr4=0
249lwr1=0
250lwr2=0
251lwr3=0
252lwr4=0
253lhf1=0
254lhf2=0
255lhf3=0
256lhf4=0
257shf1=0
258shf2=0
259shf3=0
260shf4=0
261net1=0
262net2=0
263net3=0
264net4=0
265;
266file=project_id_env+"TropFlux_19890101_20091231.nc"
267initncdf, file
268swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box)
269swr1=grossemoyenne(swr1, "xy",/nan, box=box)
270swr1=reform(swr1)
271swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box)
272swr2=grossemoyenne(swr2, "xy",/nan, box=box)
273swr2=reform(swr2)
274swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box)
275swr3=grossemoyenne(swr3, "xy",/nan, box=box)
276swr3=reform(swr3)
277swr4=read_ncdf('swr',st4,en4,file=file,/nostr, box=box)
278swr4=grossemoyenne(swr4, "xy",/nan, box=box)
279swr4=reform(swr4)
280;
281lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box)
282lwr1=grossemoyenne(lwr1, "xy",/nan, box=box)
283lwr1=reform(lwr1)
284lwr2=read_ncdf('lwr',st2,en2,file=file,/nostr, box=box)
285lwr2=grossemoyenne(lwr2, "xy",/nan, box=box)
286lwr2=reform(lwr2)
287lwr3=read_ncdf('lwr',st3,en3,file=file,/nostr, box=box)
288lwr3=grossemoyenne(lwr3, "xy",/nan, box=box)
289lwr3=reform(lwr3)
290lwr4=read_ncdf('lwr',st4,en4,file=file,/nostr, box=box)
291lwr4=grossemoyenne(lwr4, "xy",/nan, box=box)
292lwr4=reform(lwr4)
293;
294lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box)
295lhf1=grossemoyenne(lhf1, "xy",/nan, box=box)
296lhf1=reform(lhf1)
297lhf2=read_ncdf('lhf',st2,en2,file=file,/nostr, box=box)
298lhf2=grossemoyenne(lhf2, "xy",/nan, box=box)
299lhf2=reform(lhf2)
300lhf3=read_ncdf('lhf',st3,en3,file=file,/nostr, box=box)
301lhf3=grossemoyenne(lhf3, "xy",/nan, box=box)
302lhf3=reform(lhf3)
303lhf4=read_ncdf('lhf',st4,en4,file=file,/nostr, box=box)
304lhf4=grossemoyenne(lhf4, "xy",/nan, box=box)
305lhf4=reform(lhf4)
306;
307shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box)
308shf1=grossemoyenne(shf1, "xy",/nan, box=box)
309shf1=reform(shf1)
310shf2=read_ncdf('shf',st2,en2,file=file,/nostr, box=box)
311shf2=grossemoyenne(shf2, "xy",/nan, box=box)
312shf2=reform(shf2)
313shf3=read_ncdf('shf',st3,en3,file=file,/nostr, box=box)
314shf3=grossemoyenne(shf3, "xy",/nan, box=box)
315shf3=reform(shf3)
316shf4=read_ncdf('shf',st4,en4,file=file,/nostr, box=box)
317shf4=grossemoyenne(shf4, "xy",/nan, box=box)
318shf4=reform(shf4)
319;
320net1=swr1+lwr1+lhf1+shf1
321net2=swr2+lwr2+lhf2+shf2
322net3=swr3+lwr3+lhf3+shf3
323net4=swr4+lwr4+lhf4+shf4
324;
325file=project_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc"
326initncdf, file
327olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box)
328olr1=grossemoyenne(olr1, "xy",/nan, box=box)
329olr1=reform(olr1)
330olr2=read_ncdf("sw", st2-1, en2, file=file,/nostr, box=box)
331olr2=grossemoyenne(olr2, "xy",/nan, box=box)
332olr2=reform(olr2)
333olr3=read_ncdf("sw", st3-1, en3, file=file,/nostr, box=box)
334olr3=grossemoyenne(olr3, "xy",/nan, box=box)
335olr3=reform(olr3)
336olr4=read_ncdf("sw", st4-1, en4, file=file,/nostr, box=box)
337olr4=grossemoyenne(olr4, "xy",/nan, box=box)
338olr4=reform(olr4)
339;
340neto_1=olr1+lwr1+lhf1+shf1
341neto_2=olr2+lwr2+lhf2+shf2
342neto_3=olr3+lwr3+lhf3+shf3
343neto_4=olr4+lwr4+lhf4+shf4
344;
345trop=[net1,net2,net3,net4]
346olr=[neto_1,neto_2,neto_3,neto_4]
347help, trop, olr
348;
349swr1=0
350swr2=0
351swr3=0
352swr4=0
353lwr1=0
354lwr2=0
355lwr3=0
356lwr4=0
357lhf1=0
358lhf2=0
359lhf3=0
360lhf4=0
361shf1=0
362shf2=0
363shf3=0
364shf4=0
365net1=0
366net2=0
367net3=0
368net4=0
369neto_1=0
370neto_2=0
371neto_3=0
372neto_4=0
373;
374file=project_id_env+'swr_oafluxgrid_1985_2007.nc'
375initncdf, file
376swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box)
377swr1=grossemoyenne(swr1, "xy",/nan, box=box)
378swr1=reform(swr1)
379swr2=read_ncdf("swr", st2, en2, file=file,/nostr, box=box)
380swr2=grossemoyenne(swr2, "xy",/nan, box=box)
381swr2=reform(swr2)
382swr3=read_ncdf("swr", st3, en3, file=file,/nostr, box=box)
383swr3=grossemoyenne(swr3, "xy",/nan, box=box)
384swr3=reform(swr3)
385swr4=read_ncdf("swr", st4, en4, file=file,/nostr, box=box)
386swr4=grossemoyenne(swr4, "xy",/nan, box=box)
387swr4=reform(swr4)
388;
389file=project_id_env+'lwr_oafluxgrid_1985_2007.nc'
390initncdf, file
391lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box)
392lwr1=grossemoyenne(lwr1, "xy",/nan, box=box)
393lwr1=reform(lwr1)
394lwr2=-1*read_ncdf("lwr", st2, en2, file=file,/nostr, box=box)
395lwr2=grossemoyenne(lwr2, "xy",/nan, box=box)
396lwr2=reform(lwr2)
397lwr3=-1*read_ncdf("lwr", st3, en3, file=file,/nostr, box=box)
398lwr3=grossemoyenne(lwr3, "xy",/nan, box=box)
399lwr3=reform(lwr3)
400lwr4=-1*read_ncdf("lwr", st4, en4, file=file,/nostr, box=box)
401lwr4=grossemoyenne(lwr4, "xy",/nan, box=box)
402lwr4=reform(lwr4)
403;
404file=project_id_env+'lhf_oafluxgrid_1985_2009.nc'
405initncdf, file
406lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box)
407lhf1=grossemoyenne(lhf1, "xy",/nan, box=box)
408lhf1=reform(lhf1)
409lhf2=-1*read_ncdf("lhf", st2, en2, file=file,/nostr, box=box)
410lhf2=grossemoyenne(lhf2, "xy",/nan, box=box)
411lhf2=reform(lhf2)
412lhf3=-1*read_ncdf("lhf", st3, en3, file=file,/nostr, box=box)
413lhf3=grossemoyenne(lhf3, "xy",/nan, box=box)
414lhf3=reform(lhf3)
415lhf4=-1*read_ncdf("lhf", st4, en4, file=file,/nostr, box=box)
416lhf4=grossemoyenne(lhf4, "xy",/nan, box=box)
417lhf4=reform(lhf4)
418;
419file=project_id_env+'shf_oafluxgrid_1985_2009.nc'
420initncdf, file
421shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box)
422shf1=grossemoyenne(shf1, "xy",/nan, box=box)
423shf1=reform(shf1)
424shf2=-1*read_ncdf("shf", st2, en2, file=file,/nostr, box=box)
425shf2=grossemoyenne(shf2, "xy",/nan, box=box)
426shf2=reform(shf2)
427shf3=-1*read_ncdf("shf", st3, en3, file=file,/nostr, box=box)
428shf3=grossemoyenne(shf3, "xy",/nan, box=box)
429shf3=reform(shf3)
430shf4=-1*read_ncdf("shf", st4, en4, file=file,/nostr, box=box)
431shf4=grossemoyenne(shf4, "xy",/nan, box=box)
432shf4=reform(shf4)
433;
434net1=swr1+lwr1+lhf1+shf1
435net2=swr2+lwr2+lhf2+shf2
436net3=swr3+lwr3+lhf3+shf3
437net4=swr4+lwr4+lhf4+shf4
438;
439oaf=[net1,net2,net3,net4]
440;
441help, oaf
442swr1=0
443swr2=0
444swr3=0
445swr4=0
446lwr1=0
447lwr2=0
448lwr3=0
449lwr4=0
450lhf1=0
451lhf2=0
452lhf3=0
453lhf4=0
454shf1=0
455shf2=0
456shf3=0
457shf4=0
458net1=0
459net2=0
460net3=0
461net4=0
462;
463fi=project_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc'
464initncdf, fi
465swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box)
466swr1=grossemoyenne(swr1, "xy",/nan, box=box)
467swr1=reform(swr1)
468swr2=read_ncdf("swr", st2, en2, file=fi,/nostr, box=box)
469swr2=grossemoyenne(swr2, "xy",/nan, box=box)
470swr2=reform(swr2)
471swr3=read_ncdf("swr", st3, en3, file=fi,/nostr, box=box)
472swr3=grossemoyenne(swr3, "xy",/nan, box=box)
473swr3=reform(swr3)
474swr4=read_ncdf("swr", st4, en4, file=fi,/nostr, box=box)
475swr4=grossemoyenne(swr4, "xy",/nan, box=box)
476swr4=reform(swr4)
477;
478fi=project_id_env+"NCEP2_flux_19890101_20090729.nc"
479initncdf, fi
480lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box)
481lwr1=grossemoyenne(lwr1, "xy",/nan, box=box)
482lwr1=reform(lwr1)
483lwr2=-1*read_ncdf("lwr", st2, en2, file=fi,/nostr, box=box)
484lwr2=grossemoyenne(lwr2, "xy",/nan, box=box)
485lwr2=reform(lwr2)
486lwr3=-1*read_ncdf("lwr", st3, en3, file=fi,/nostr, box=box)
487lwr3=grossemoyenne(lwr3, "xy",/nan, box=box)
488lwr3=reform(lwr3)
489lwr4=-1*read_ncdf("lwr", st4, en4, file=fi,/nostr, box=box)
490lwr4=grossemoyenne(lwr4, "xy",/nan, box=box)
491lwr4=reform(lwr4)
492;
493fi=project_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc'
494initncdf, fi
495lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box)
496lhf1=grossemoyenne(lhf1, "xy",/nan, box=box)
497lhf1=reform(lhf1)
498lhf2=-1*read_ncdf("lhf", st2, en2, file=fi,/nostr, box=box)
499lhf2=grossemoyenne(lhf2, "xy",/nan, box=box)
500lhf2=reform(lhf2)
501lhf3=-1*read_ncdf("lhf", st3, en3, file=fi,/nostr, box=box)
502lhf3=grossemoyenne(lhf3, "xy",/nan, box=box)
503lhf3=reform(lhf3)
504lhf4=-1*read_ncdf("lhf", st4, en4, file=fi,/nostr, box=box)
505lhf4=grossemoyenne(lhf4, "xy",/nan, box=box)
506lhf4=reform(lhf4)
507;
508fi=project_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc'
509initncdf, fi
510shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box)
511shf1=grossemoyenne(shf1, "xy",/nan, box=box)
512shf1=reform(shf1)
513shf2=-1*read_ncdf("shf", st2, en2, file=fi,/nostr, box=box)
514shf2=grossemoyenne(shf2, "xy",/nan, box=box)
515shf2=reform(shf2)
516shf3=-1*read_ncdf("shf", st3, en3, file=fi,/nostr, box=box)
517shf3=grossemoyenne(shf3, "xy",/nan, box=box)
518shf3=reform(shf3)
519shf4=-1*read_ncdf("shf", st4, en4, file=fi,/nostr, box=box)
520shf4=grossemoyenne(shf4, "xy",/nan, box=box)
521shf4=reform(shf4)
522;
523net1=swr1+lwr1+lhf1+shf1
524net2=swr2+lwr2+lhf2+shf2
525net3=swr3+lwr3+lhf3+shf3
526net4=swr4+lwr4+lhf4+shf4
527;
528nce2=[net1,net2,net3,net4]
529;
530help, nce2
531swr1=0
532swr2=0
533swr3=0
534swr4=0
535lwr1=0
536lwr2=0
537lwr3=0
538lwr4=0
539lhf1=0
540lhf2=0
541lhf3=0
542lhf4=0
543shf1=0
544shf2=0
545shf3=0
546shf4=0
547net1=0
548net2=0
549net3=0
550net4=0
551;
552file=project_id_env+"ncep1_flux_19890101_20091231.nc"
553initncdf, file
554swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box)
555swr1=grossemoyenne(swr1, "xy",/nan, box=box)
556swr1=reform(swr1)
557swr2=read_ncdf("swr", st2, en2, file=file,/nostr, box=box)
558swr2=grossemoyenne(swr2, "xy",/nan, box=box)
559swr2=reform(swr2)
560swr3=read_ncdf("swr", st3, en3, file=file,/nostr, box=box)
561swr3=grossemoyenne(swr3, "xy",/nan, box=box)
562swr3=reform(swr3)
563swr4=read_ncdf("swr", st4, en4, file=file,/nostr, box=box)
564swr4=grossemoyenne(swr4, "xy",/nan, box=box)
565swr4=reform(swr4)
566;
567lwr1=read_ncdf("lwr", st1, en1, file=file,/nostr, box=box)
568lwr1=grossemoyenne(lwr1, "xy",/nan, box=box)
569lwr1=reform(lwr1)
570lwr2=read_ncdf("lwr", st2, en2, file=file,/nostr, box=box)
571lwr2=grossemoyenne(lwr2, "xy",/nan, box=box)
572lwr2=reform(lwr2)
573lwr3=read_ncdf("lwr", st3, en3, file=file,/nostr, box=box)
574lwr3=grossemoyenne(lwr3, "xy",/nan, box=box)
575lwr3=reform(lwr3)
576lwr4=read_ncdf("lwr", st4, en4, file=file,/nostr, box=box)
577lwr4=grossemoyenne(lwr4, "xy",/nan, box=box)
578lwr4=reform(lwr4)
579;
580lhf1=read_ncdf("lhf", st1, en1, file=file,/nostr, box=box)
581lhf1=grossemoyenne(lhf1, "xy",/nan, box=box)
582lhf1=reform(lhf1)
583lhf2=read_ncdf("lhf", st2, en2, file=file,/nostr, box=box)
584lhf2=grossemoyenne(lhf2, "xy",/nan, box=box)
585lhf2=reform(lhf2)
586lhf3=read_ncdf("lhf", st3, en3, file=file,/nostr, box=box)
587lhf3=grossemoyenne(lhf3, "xy",/nan, box=box)
588lhf3=reform(lhf3)
589lhf4=read_ncdf("lhf", st4, en4, file=file,/nostr, box=box)
590lhf4=grossemoyenne(lhf4, "xy",/nan, box=box)
591lhf4=reform(lhf4)
592;
593shf1=read_ncdf("shf", st1, en1, file=file,/nostr, box=box)
594shf1=grossemoyenne(shf1, "xy",/nan, box=box)
595shf1=reform(shf1)
596shf2=read_ncdf("shf", st2, en2, file=file,/nostr, box=box)
597shf2=grossemoyenne(shf2, "xy",/nan, box=box)
598shf2=reform(shf2)
599shf3=read_ncdf("shf", st3, en3, file=file,/nostr, box=box)
600shf3=grossemoyenne(shf3, "xy",/nan, box=box)
601shf3=reform(shf3)
602shf4=read_ncdf("shf", st4, en4, file=file,/nostr, box=box)
603shf4=grossemoyenne(shf4, "xy",/nan, box=box)
604shf4=reform(shf4)
605;
606net1=swr1+lwr1+lhf1+shf1
607net2=swr2+lwr2+lhf2+shf2
608net3=swr3+lwr3+lhf3+shf3
609net4=swr4+lwr4+lhf4+shf4
610;
611nce1=[net1,net2,net3,net4]
612nce1=nce1
613;
614help, nce1
615swr1=0
616swr2=0
617swr3=0
618swr4=0
619lwr1=0
620lwr2=0
621lwr3=0
622lwr4=0
623lhf1=0
624lhf2=0
625lhf3=0
626lhf4=0
627shf1=0
628shf2=0
629shf3=0
630shf4=0
631net1=0
632net2=0
633net3=0
634net4=0
635;
636ind=where(finite(net))
637net=net(ind)
638era=era(ind)
639trop=trop(ind)
640oaf=oaf(ind)
641nce1=nce1(ind)
642nce2=nce2(ind)
643olr=olr(ind)
644;
645help, net, era, trop, oaf, nce1, nce2, olr
646;
647statistics, net, era, $
648                 cor, bias, std, rmsd
649print, cor, bias, std,  rmsd
650cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
651;
652statistics, net, trop, $
653                 cor, bias, std, rmsd
654print, cor, bias, std,  rmsd
655cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
656;
657statistics, net, oaf, $
658                 cor, bias, std, rmsd
659print, cor, bias, std,  rmsd
660cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
661;
662statistics, net, nce1, $
663                 cor, bias, std, rmsd
664print, cor, bias, std,  rmsd
665cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
666;
667statistics, net, nce2, $
668                 cor, bias, std, rmsd
669print, cor, bias, std,  rmsd
670cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
671;
672statistics, net, olr, $
673                 cor, bias, std, rmsd
674print, cor, bias, std,  rmsd
675cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
676;
677splot, net, era, charsize=1.1, title='Net Flux - COARE Vs ERAI', $
678     xrange=[-200,200], yrange=[-200,200], small=[2,3,1], psym=2, xmin=1, ymin=1
679oplot, [-200,200], [-200,200]
680xyouts, -150,-175, cstat_era, charsize=1.
681;
682splot, net, trop, charsize=1.1, title='Net Flux - COARE Vs TropFlux',/noer, $
683     xrange=[-200,200], yrange=[-200,200], small=[2,3,2], psym=2, xmin=1, ymin=1
684oplot, [-200,200], [-200,200]
685xyouts, -150,-175, cstat_trop, charsize=1.
686;
687splot, net, oaf, charsize=1.1, title='Net Flux - COARE Vs OAFlux',/noer, $
688     xrange=[-200,200], yrange=[-200,200], small=[2,3,3], psym=2, xmin=1, ymin=1
689oplot, [-200,200], [-200,200]
690xyouts, -150,-175, cstat_oaf, charsize=1.
691;
692splot, net, nce1, charsize=1.1, title='Net Flux - COARE Vs NCEP1',/noer, $
693     xrange=[-200,200], yrange=[-200,200], small=[2,3,4], psym=2, xmin=1, ymin=1
694oplot, [-200,200], [-200,200]
695xyouts, -150,-175, cstat_nce1, charsize=1.
696;
697splot, net, nce2, charsize=1.1, title='Net Flux - COARE Vs NCEP2',/noer, $
698     xrange=[-200,200], yrange=[-200,200], small=[2,3,5], psym=2, xmin=1, ymin=1
699oplot, [-200,200], [-200,200]
700xyouts, -150,-175, cstat_nce2, charsize=1.
701;
702splot, net, olr, charsize=1.1, title='Net Flux - COARE Vs TropFlux_NRT',/noer, $
703     xrange=[-200,200], yrange=[-200,200], small=[2,3,6], psym=2, xmin=1, ymin=1
704oplot, [-200,200], [-200,200]
705xyouts, -150,-175, cstat_olr, charsize=1.
706;
707closeps
708;
709end
Note: See TracBrowser for help on using the repository browser.