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
RevLine 
[43]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;
[46]11; .. graphviz::
12;
13;    digraph coare_validation_net_1992_93_all_v10 {
[85]14;
[50]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"];
[46]30;
[50]31;       ncep1 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/ncep1_flux_19890101_20091231.nc"];
[46]32;
[50]33;       figure [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/coare_validation_net_1992_93_all_v11.ps"];
[46]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;
[43]44; SEE ALSO
45; ========
46;
[50]47; :ref:`project_profile.sh`
48; :ref:`project_init.pro`
49; :ref:`cm_project.pro`
[43]50;
[46]51; :ref:`statistics.pro`
52;
[43]53; EXAMPLES
54; ========
55;
[203]56; .. code-block:: idl
[43]57;
[203]58;    coare_validation_net_1992_93_all_v10
[43]59;
[46]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;
[43]71; EVOLUTIONS
72; ==========
73;
74; $Id$
75;
[85]76; $URL$
77;
[46]78; - fplod 20110420T120449Z aedon.locean-ipsl.upmc.fr (Darwin)
79;
80;   * remove hard coding path
81;   * add graphviz
82;
[43]83; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin)
84;
85;   * minimal header
86;
87;-
[41]88pro coare_validation_net_1992_93_all_v10
[46]89@cm_general
[50]90@cm_project
[41]91reinitplt, /z,/invert
92key_portrait = 1
93coefpalit=.9
[97]94;
[85]95openps, FILENAME = project_od_env+"coare_validation_net_1992_93_all_v11.ps"
[41]96; partie a changer
[97]97;
[41]98box=[155.5, 156.5, -2, -1]
[97]99;
100; first leg
101; start data - 11/11/92 and end date 03/12/92
[50]102fi=project_id_env+"met_data_coare_expt_1992_p1.txt"
[41]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,*))
[97]110;
[41]111net1=sw92_1+lw92_1+lh92_1+sh92_1
[97]112;
113st1=921111
[94]114en1=921203
[97]115;
116; second leg
117;
[50]118fi=project_id_env+"met_data_coare_expt_1992_p2.txt"
[41]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,*))
[97]125;
[41]126net2=sw92_2+lw92_2+lh92_2+sh92_2
[97]127;
128; start data - 17/12/92 and end date 31/12/92
129st2=19921217
[94]130en2=19921231
[97]131;
132; third leg
133;
[50]134fi=project_id_env+"met_data_coare_expt_1993_p1.txt"
[41]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,*))
[97]141;
[41]142net3=sw93_1+lw93_1+lh93_1+sh93_1
[97]143;
144; start data - 01/01/93 and end date 11/01/93
145st3=19930101
[94]146en3=19930111
[97]147;
148; fourth leg
149;
[50]150fi=project_id_env+"met_data_coare_expt_1993_p2.txt"
[41]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,*))
[97]157;
[41]158net4=sw93_2+lw93_2+lh93_2+sh93_2
[97]159;
160; start data - 28/01/93 and end date 16/02/93
161st4=19930128
[94]162en4=19930216
[97]163;
[41]164net=[net1, net2, net3, net4]
165help, net
[97]166;
167; reading other data sets
168;
169st1=19921111
[94]170en1=19921203
[97]171st2=19921217
[94]172en2=19921231
[97]173st3=19930101
[94]174en3=19930111
[97]175st4=19930128
[94]176en4=19930216
[97]177;
[50]178file=project_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc"
[41]179initncdf, file
[97]180swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box)
181swr1=grossemoyenne(swr1, "xy", box=box,/nan)
[94]182swr1=reform(swr1)
[97]183swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box)
184swr2=grossemoyenne(swr2, "xy", box=box,/nan)
[94]185swr2=reform(swr2)
[97]186swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box)
187swr3=grossemoyenne(swr3, "xy", box=box,/nan)
[94]188swr3=reform(swr3)
[97]189swr4=read_ncdf('swr',st4,en4,file=file,/nostr, box=box)
190swr4=grossemoyenne(swr4, "xy", box=box,/nan)
[94]191swr4=reform(swr4)
[97]192;
[50]193file=project_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc'
[41]194initncdf, file
[97]195lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box)
196lwr1=grossemoyenne(lwr1, "xy", box=box,/nan)
[94]197lwr1=reform(lwr1)
[97]198lwr2=read_ncdf('lwr',st2-1,en2,file=file,/nostr, box=box)
199lwr2=grossemoyenne(lwr2, "xy", box=box,/nan)
[94]200lwr2=reform(lwr2)
[97]201lwr3=read_ncdf('lwr',st3-1,en3,file=file,/nostr, box=box)
202lwr3=grossemoyenne(lwr3, "xy", box=box,/nan)
[94]203lwr3=reform(lwr3)
[97]204lwr4=read_ncdf('lwr',st4-1,en4,file=file,/nostr, box=box)
205lwr4=grossemoyenne(lwr4, "xy", box=box,/nan)
[94]206lwr4=reform(lwr4)
[97]207;
[50]208file=project_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc'
[41]209initncdf, file
[97]210lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box)
211lhf1=grossemoyenne(lhf1, "xy", box=box,/nan)
[94]212lhf1=reform(lhf1)
[97]213lhf2=-1*read_ncdf('lhf',st2,en2,file=file,/nostr, box=box)
214lhf2=grossemoyenne(lhf2, "xy", box=box,/nan)
[94]215lhf2=reform(lhf2)
[97]216lhf3=-1*read_ncdf('lhf',st3,en3,file=file,/nostr, box=box)
217lhf3=grossemoyenne(lhf3, "xy", box=box,/nan)
[94]218lhf3=reform(lhf3)
[97]219lhf4=-1*read_ncdf('lhf',st4,en4,file=file,/nostr, box=box)
220lhf4=grossemoyenne(lhf4, "xy", box=box,/nan)
[94]221lhf4=reform(lhf4)
[97]222;
[50]223file=project_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc'
[41]224initncdf, file
[97]225shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box)
226shf1=grossemoyenne(shf1, "xy", box=box,/nan)
[94]227shf1=reform(shf1)
[97]228shf2=-1*read_ncdf('shf',st2,en2,file=file,/nostr, box=box)
229shf2=grossemoyenne(shf2, "xy", box=box,/nan)
[94]230shf2=reform(shf2)
[97]231shf3=-1*read_ncdf('shf',st3,en3,file=file,/nostr, box=box)
232shf3=grossemoyenne(shf3, "xy", box=box,/nan)
[94]233shf3=reform(shf3)
[97]234shf4=-1*read_ncdf('shf',st4,en4,file=file,/nostr, box=box)
235shf4=grossemoyenne(shf4, "xy", box=box,/nan)
[94]236shf4=reform(shf4)
[97]237;
238net1=swr1+lwr1+lhf1+shf1
[94]239net2=swr2+lwr2+lhf2+shf2
[97]240net3=swr3+lwr3+lhf3+shf3
[94]241net4=swr4+lwr4+lhf4+shf4
[41]242era=[net1,net2,net3,net4]
[97]243;
[41]244help, era
[97]245swr1=0
246swr2=0
247swr3=0
248swr4=0
249lwr1=0
250lwr2=0
251lwr3=0
[94]252lwr4=0
[97]253lhf1=0
254lhf2=0
255lhf3=0
256lhf4=0
257shf1=0
258shf2=0
259shf3=0
[94]260shf4=0
[97]261net1=0
262net2=0
263net3=0
[94]264net4=0
[97]265;
[50]266file=project_id_env+"TropFlux_19890101_20091231.nc"
[41]267initncdf, file
[97]268swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box)
269swr1=grossemoyenne(swr1, "xy",/nan, box=box)
[94]270swr1=reform(swr1)
[97]271swr2=read_ncdf('swr',st2,en2,file=file,/nostr, box=box)
272swr2=grossemoyenne(swr2, "xy",/nan, box=box)
[94]273swr2=reform(swr2)
[97]274swr3=read_ncdf('swr',st3,en3,file=file,/nostr, box=box)
275swr3=grossemoyenne(swr3, "xy",/nan, box=box)
[94]276swr3=reform(swr3)
[97]277swr4=read_ncdf('swr',st4,en4,file=file,/nostr, box=box)
278swr4=grossemoyenne(swr4, "xy",/nan, box=box)
[94]279swr4=reform(swr4)
[97]280;
281lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box)
282lwr1=grossemoyenne(lwr1, "xy",/nan, box=box)
[94]283lwr1=reform(lwr1)
[97]284lwr2=read_ncdf('lwr',st2,en2,file=file,/nostr, box=box)
285lwr2=grossemoyenne(lwr2, "xy",/nan, box=box)
[94]286lwr2=reform(lwr2)
[97]287lwr3=read_ncdf('lwr',st3,en3,file=file,/nostr, box=box)
288lwr3=grossemoyenne(lwr3, "xy",/nan, box=box)
[94]289lwr3=reform(lwr3)
[97]290lwr4=read_ncdf('lwr',st4,en4,file=file,/nostr, box=box)
291lwr4=grossemoyenne(lwr4, "xy",/nan, box=box)
[94]292lwr4=reform(lwr4)
[97]293;
294lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box)
295lhf1=grossemoyenne(lhf1, "xy",/nan, box=box)
[94]296lhf1=reform(lhf1)
[97]297lhf2=read_ncdf('lhf',st2,en2,file=file,/nostr, box=box)
298lhf2=grossemoyenne(lhf2, "xy",/nan, box=box)
[94]299lhf2=reform(lhf2)
[97]300lhf3=read_ncdf('lhf',st3,en3,file=file,/nostr, box=box)
301lhf3=grossemoyenne(lhf3, "xy",/nan, box=box)
[94]302lhf3=reform(lhf3)
[97]303lhf4=read_ncdf('lhf',st4,en4,file=file,/nostr, box=box)
304lhf4=grossemoyenne(lhf4, "xy",/nan, box=box)
[94]305lhf4=reform(lhf4)
[97]306;
307shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box)
308shf1=grossemoyenne(shf1, "xy",/nan, box=box)
[94]309shf1=reform(shf1)
[97]310shf2=read_ncdf('shf',st2,en2,file=file,/nostr, box=box)
311shf2=grossemoyenne(shf2, "xy",/nan, box=box)
[94]312shf2=reform(shf2)
[97]313shf3=read_ncdf('shf',st3,en3,file=file,/nostr, box=box)
314shf3=grossemoyenne(shf3, "xy",/nan, box=box)
[94]315shf3=reform(shf3)
[97]316shf4=read_ncdf('shf',st4,en4,file=file,/nostr, box=box)
317shf4=grossemoyenne(shf4, "xy",/nan, box=box)
[94]318shf4=reform(shf4)
[97]319;
320net1=swr1+lwr1+lhf1+shf1
[94]321net2=swr2+lwr2+lhf2+shf2
[97]322net3=swr3+lwr3+lhf3+shf3
[94]323net4=swr4+lwr4+lhf4+shf4
[97]324;
[50]325file=project_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc"
[41]326initncdf, file
[97]327olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box)
328olr1=grossemoyenne(olr1, "xy",/nan, box=box)
[94]329olr1=reform(olr1)
[97]330olr2=read_ncdf("sw", st2-1, en2, file=file,/nostr, box=box)
331olr2=grossemoyenne(olr2, "xy",/nan, box=box)
[94]332olr2=reform(olr2)
[97]333olr3=read_ncdf("sw", st3-1, en3, file=file,/nostr, box=box)
334olr3=grossemoyenne(olr3, "xy",/nan, box=box)
[94]335olr3=reform(olr3)
[97]336olr4=read_ncdf("sw", st4-1, en4, file=file,/nostr, box=box)
337olr4=grossemoyenne(olr4, "xy",/nan, box=box)
[94]338olr4=reform(olr4)
[97]339;
340neto_1=olr1+lwr1+lhf1+shf1
[94]341neto_2=olr2+lwr2+lhf2+shf2
[97]342neto_3=olr3+lwr3+lhf3+shf3
[94]343neto_4=olr4+lwr4+lhf4+shf4
[97]344;
[41]345trop=[net1,net2,net3,net4]
346olr=[neto_1,neto_2,neto_3,neto_4]
347help, trop, olr
[97]348;
349swr1=0
350swr2=0
351swr3=0
352swr4=0
353lwr1=0
354lwr2=0
355lwr3=0
[94]356lwr4=0
[97]357lhf1=0
358lhf2=0
359lhf3=0
360lhf4=0
361shf1=0
362shf2=0
363shf3=0
[94]364shf4=0
[97]365net1=0
366net2=0
367net3=0
368net4=0
369neto_1=0
370neto_2=0
371neto_3=0
[94]372neto_4=0
[97]373;
[50]374file=project_id_env+'swr_oafluxgrid_1985_2007.nc'
[41]375initncdf, file
[97]376swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box)
377swr1=grossemoyenne(swr1, "xy",/nan, box=box)
[94]378swr1=reform(swr1)
[97]379swr2=read_ncdf("swr", st2, en2, file=file,/nostr, box=box)
380swr2=grossemoyenne(swr2, "xy",/nan, box=box)
[94]381swr2=reform(swr2)
[97]382swr3=read_ncdf("swr", st3, en3, file=file,/nostr, box=box)
383swr3=grossemoyenne(swr3, "xy",/nan, box=box)
[94]384swr3=reform(swr3)
[97]385swr4=read_ncdf("swr", st4, en4, file=file,/nostr, box=box)
386swr4=grossemoyenne(swr4, "xy",/nan, box=box)
[94]387swr4=reform(swr4)
[97]388;
[50]389file=project_id_env+'lwr_oafluxgrid_1985_2007.nc'
[41]390initncdf, file
[97]391lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box)
392lwr1=grossemoyenne(lwr1, "xy",/nan, box=box)
[94]393lwr1=reform(lwr1)
[97]394lwr2=-1*read_ncdf("lwr", st2, en2, file=file,/nostr, box=box)
395lwr2=grossemoyenne(lwr2, "xy",/nan, box=box)
[94]396lwr2=reform(lwr2)
[97]397lwr3=-1*read_ncdf("lwr", st3, en3, file=file,/nostr, box=box)
398lwr3=grossemoyenne(lwr3, "xy",/nan, box=box)
[94]399lwr3=reform(lwr3)
[97]400lwr4=-1*read_ncdf("lwr", st4, en4, file=file,/nostr, box=box)
401lwr4=grossemoyenne(lwr4, "xy",/nan, box=box)
[94]402lwr4=reform(lwr4)
[97]403;
[50]404file=project_id_env+'lhf_oafluxgrid_1985_2009.nc'
[41]405initncdf, file
[97]406lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box)
407lhf1=grossemoyenne(lhf1, "xy",/nan, box=box)
[94]408lhf1=reform(lhf1)
[97]409lhf2=-1*read_ncdf("lhf", st2, en2, file=file,/nostr, box=box)
410lhf2=grossemoyenne(lhf2, "xy",/nan, box=box)
[94]411lhf2=reform(lhf2)
[97]412lhf3=-1*read_ncdf("lhf", st3, en3, file=file,/nostr, box=box)
[94]413lhf3=grossemoyenne(lhf3, "xy",/nan, box=box)
414lhf3=reform(lhf3)
[97]415lhf4=-1*read_ncdf("lhf", st4, en4, file=file,/nostr, box=box)
416lhf4=grossemoyenne(lhf4, "xy",/nan, box=box)
[94]417lhf4=reform(lhf4)
[97]418;
[50]419file=project_id_env+'shf_oafluxgrid_1985_2009.nc'
[41]420initncdf, file
[97]421shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box)
422shf1=grossemoyenne(shf1, "xy",/nan, box=box)
[94]423shf1=reform(shf1)
[97]424shf2=-1*read_ncdf("shf", st2, en2, file=file,/nostr, box=box)
425shf2=grossemoyenne(shf2, "xy",/nan, box=box)
[94]426shf2=reform(shf2)
[97]427shf3=-1*read_ncdf("shf", st3, en3, file=file,/nostr, box=box)
428shf3=grossemoyenne(shf3, "xy",/nan, box=box)
[94]429shf3=reform(shf3)
[97]430shf4=-1*read_ncdf("shf", st4, en4, file=file,/nostr, box=box)
431shf4=grossemoyenne(shf4, "xy",/nan, box=box)
[94]432shf4=reform(shf4)
[97]433;
434net1=swr1+lwr1+lhf1+shf1
[94]435net2=swr2+lwr2+lhf2+shf2
[97]436net3=swr3+lwr3+lhf3+shf3
[94]437net4=swr4+lwr4+lhf4+shf4
[97]438;
[41]439oaf=[net1,net2,net3,net4]
[97]440;
[41]441help, oaf
[97]442swr1=0
443swr2=0
444swr3=0
445swr4=0
446lwr1=0
447lwr2=0
448lwr3=0
[94]449lwr4=0
[97]450lhf1=0
451lhf2=0
452lhf3=0
453lhf4=0
454shf1=0
455shf2=0
[94]456shf3=0
457shf4=0
[97]458net1=0
459net2=0
460net3=0
[94]461net4=0
[97]462;
[50]463fi=project_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc'
[41]464initncdf, fi
[97]465swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box)
466swr1=grossemoyenne(swr1, "xy",/nan, box=box)
[94]467swr1=reform(swr1)
[97]468swr2=read_ncdf("swr", st2, en2, file=fi,/nostr, box=box)
469swr2=grossemoyenne(swr2, "xy",/nan, box=box)
[94]470swr2=reform(swr2)
[97]471swr3=read_ncdf("swr", st3, en3, file=fi,/nostr, box=box)
472swr3=grossemoyenne(swr3, "xy",/nan, box=box)
[94]473swr3=reform(swr3)
[97]474swr4=read_ncdf("swr", st4, en4, file=fi,/nostr, box=box)
475swr4=grossemoyenne(swr4, "xy",/nan, box=box)
[94]476swr4=reform(swr4)
[97]477;
[50]478fi=project_id_env+"NCEP2_flux_19890101_20090729.nc"
[41]479initncdf, fi
[97]480lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box)
481lwr1=grossemoyenne(lwr1, "xy",/nan, box=box)
[94]482lwr1=reform(lwr1)
[97]483lwr2=-1*read_ncdf("lwr", st2, en2, file=fi,/nostr, box=box)
484lwr2=grossemoyenne(lwr2, "xy",/nan, box=box)
[94]485lwr2=reform(lwr2)
[97]486lwr3=-1*read_ncdf("lwr", st3, en3, file=fi,/nostr, box=box)
487lwr3=grossemoyenne(lwr3, "xy",/nan, box=box)
[94]488lwr3=reform(lwr3)
[97]489lwr4=-1*read_ncdf("lwr", st4, en4, file=fi,/nostr, box=box)
490lwr4=grossemoyenne(lwr4, "xy",/nan, box=box)
[94]491lwr4=reform(lwr4)
[97]492;
[50]493fi=project_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc'
[41]494initncdf, fi
[97]495lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box)
496lhf1=grossemoyenne(lhf1, "xy",/nan, box=box)
[94]497lhf1=reform(lhf1)
[97]498lhf2=-1*read_ncdf("lhf", st2, en2, file=fi,/nostr, box=box)
499lhf2=grossemoyenne(lhf2, "xy",/nan, box=box)
[94]500lhf2=reform(lhf2)
[97]501lhf3=-1*read_ncdf("lhf", st3, en3, file=fi,/nostr, box=box)
502lhf3=grossemoyenne(lhf3, "xy",/nan, box=box)
[94]503lhf3=reform(lhf3)
[97]504lhf4=-1*read_ncdf("lhf", st4, en4, file=fi,/nostr, box=box)
505lhf4=grossemoyenne(lhf4, "xy",/nan, box=box)
[94]506lhf4=reform(lhf4)
[97]507;
[50]508fi=project_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc'
[41]509initncdf, fi
[97]510shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box)
511shf1=grossemoyenne(shf1, "xy",/nan, box=box)
[94]512shf1=reform(shf1)
[97]513shf2=-1*read_ncdf("shf", st2, en2, file=fi,/nostr, box=box)
514shf2=grossemoyenne(shf2, "xy",/nan, box=box)
[94]515shf2=reform(shf2)
[97]516shf3=-1*read_ncdf("shf", st3, en3, file=fi,/nostr, box=box)
517shf3=grossemoyenne(shf3, "xy",/nan, box=box)
[94]518shf3=reform(shf3)
[97]519shf4=-1*read_ncdf("shf", st4, en4, file=fi,/nostr, box=box)
520shf4=grossemoyenne(shf4, "xy",/nan, box=box)
[94]521shf4=reform(shf4)
[97]522;
523net1=swr1+lwr1+lhf1+shf1
[94]524net2=swr2+lwr2+lhf2+shf2
[97]525net3=swr3+lwr3+lhf3+shf3
[94]526net4=swr4+lwr4+lhf4+shf4
[97]527;
[41]528nce2=[net1,net2,net3,net4]
[97]529;
[41]530help, nce2
[97]531swr1=0
532swr2=0
533swr3=0
534swr4=0
535lwr1=0
536lwr2=0
537lwr3=0
[94]538lwr4=0
[97]539lhf1=0
540lhf2=0
541lhf3=0
542lhf4=0
543shf1=0
544shf2=0
545shf3=0
[94]546shf4=0
[97]547net1=0
548net2=0
549net3=0
[94]550net4=0
[97]551;
[50]552file=project_id_env+"ncep1_flux_19890101_20091231.nc"
[41]553initncdf, file
[97]554swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box)
555swr1=grossemoyenne(swr1, "xy",/nan, box=box)
[94]556swr1=reform(swr1)
[97]557swr2=read_ncdf("swr", st2, en2, file=file,/nostr, box=box)
558swr2=grossemoyenne(swr2, "xy",/nan, box=box)
[94]559swr2=reform(swr2)
[97]560swr3=read_ncdf("swr", st3, en3, file=file,/nostr, box=box)
561swr3=grossemoyenne(swr3, "xy",/nan, box=box)
[94]562swr3=reform(swr3)
[97]563swr4=read_ncdf("swr", st4, en4, file=file,/nostr, box=box)
564swr4=grossemoyenne(swr4, "xy",/nan, box=box)
[94]565swr4=reform(swr4)
[97]566;
567lwr1=read_ncdf("lwr", st1, en1, file=file,/nostr, box=box)
568lwr1=grossemoyenne(lwr1, "xy",/nan, box=box)
[94]569lwr1=reform(lwr1)
[97]570lwr2=read_ncdf("lwr", st2, en2, file=file,/nostr, box=box)
571lwr2=grossemoyenne(lwr2, "xy",/nan, box=box)
[94]572lwr2=reform(lwr2)
[97]573lwr3=read_ncdf("lwr", st3, en3, file=file,/nostr, box=box)
574lwr3=grossemoyenne(lwr3, "xy",/nan, box=box)
[94]575lwr3=reform(lwr3)
[97]576lwr4=read_ncdf("lwr", st4, en4, file=file,/nostr, box=box)
577lwr4=grossemoyenne(lwr4, "xy",/nan, box=box)
[94]578lwr4=reform(lwr4)
[97]579;
580lhf1=read_ncdf("lhf", st1, en1, file=file,/nostr, box=box)
581lhf1=grossemoyenne(lhf1, "xy",/nan, box=box)
[94]582lhf1=reform(lhf1)
[97]583lhf2=read_ncdf("lhf", st2, en2, file=file,/nostr, box=box)
584lhf2=grossemoyenne(lhf2, "xy",/nan, box=box)
[94]585lhf2=reform(lhf2)
[97]586lhf3=read_ncdf("lhf", st3, en3, file=file,/nostr, box=box)
587lhf3=grossemoyenne(lhf3, "xy",/nan, box=box)
[94]588lhf3=reform(lhf3)
[97]589lhf4=read_ncdf("lhf", st4, en4, file=file,/nostr, box=box)
590lhf4=grossemoyenne(lhf4, "xy",/nan, box=box)
[94]591lhf4=reform(lhf4)
[97]592;
593shf1=read_ncdf("shf", st1, en1, file=file,/nostr, box=box)
594shf1=grossemoyenne(shf1, "xy",/nan, box=box)
[94]595shf1=reform(shf1)
[97]596shf2=read_ncdf("shf", st2, en2, file=file,/nostr, box=box)
597shf2=grossemoyenne(shf2, "xy",/nan, box=box)
[94]598shf2=reform(shf2)
[97]599shf3=read_ncdf("shf", st3, en3, file=file,/nostr, box=box)
600shf3=grossemoyenne(shf3, "xy",/nan, box=box)
[94]601shf3=reform(shf3)
[97]602shf4=read_ncdf("shf", st4, en4, file=file,/nostr, box=box)
603shf4=grossemoyenne(shf4, "xy",/nan, box=box)
[94]604shf4=reform(shf4)
[97]605;
606net1=swr1+lwr1+lhf1+shf1
[94]607net2=swr2+lwr2+lhf2+shf2
[97]608net3=swr3+lwr3+lhf3+shf3
[94]609net4=swr4+lwr4+lhf4+shf4
[97]610;
611nce1=[net1,net2,net3,net4]
[94]612nce1=nce1
[97]613;
[41]614help, nce1
[97]615swr1=0
616swr2=0
617swr3=0
618swr4=0
619lwr1=0
620lwr2=0
621lwr3=0
[94]622lwr4=0
[97]623lhf1=0
624lhf2=0
625lhf3=0
626lhf4=0
627shf1=0
628shf2=0
629shf3=0
[94]630shf4=0
[97]631net1=0
632net2=0
633net3=0
[94]634net4=0
[97]635;
[41]636ind=where(finite(net))
[97]637net=net(ind)
[94]638era=era(ind)
[97]639trop=trop(ind)
640oaf=oaf(ind)
641nce1=nce1(ind)
[94]642nce2=nce2(ind)
[41]643olr=olr(ind)
[97]644;
[41]645help, net, era, trop, oaf, nce1, nce2, olr
[97]646;
[41]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)')
[97]651;
[41]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)')
[97]656;
[41]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)')
[97]661;
[41]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)')
[97]666;
[41]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)')
[97]671;
[41]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)')
[97]676;
[41]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.
[97]681;
[41]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.
[97]686;
[41]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.
[97]691;
[41]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.
[97]696;
[41]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.
[97]701;
[41]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.
[97]706;
[41]707closeps
[97]708;
[41]709end
Note: See TracBrowser for help on using the repository browser.