source: trunk/src/paper01/fig14/as_validation_net_1994_95_v10.pro @ 182

Last change on this file since 182 was 182, checked in by pinsard, 12 years ago

fix some svn propset

  • Property svn:keywords set to Id URL
File size: 9.7 KB
Line 
1;+
2; .. _as_validation_net_1994_95_v10.pro:
3;
4; =================================
5; as_validation_net_1994_95_v10.pro
6; =================================
7;
8; DESCRIPTION
9; ===========
10;
11; .. graphviz::
12;
13;    digraph as_validation_net_1994_95_v10 {
14;
15;       met_data [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/met_data_as_expt_19*.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;       tropflux_general [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_19890101_20091231.nc"];
20;       swr_tropflux_nrt [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"];
21;       swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_oafluxgrid_1985_2007.nc"];
22;       lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lwr_oafluxgrid_1985_2007.nc"];
23;       lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_oafluxgrid_1985_2007.nc"];
24;       shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_oafluxgrid_1985_2007.nc"];
25;       swr_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"];
26;       lwr_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/NCEP2_flux_19890101_20090729.nc"];
27;       lhf_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"];
28;       shf_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"];
29;
30;       ncep1 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/ncep1_flux_19890101_20091231.nc"];
31;
32;       figure [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/as_validation_net_1994_95_v10.ps"];
33;
34;       as_validation_net_1994_95_v10 [shape=box,
35;       fontname=Courier,
36;       color=blue,
37;       URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/as_validation_net_1994_95_v10.pro",
38;       label="${TROPFLUX}/src/paper01/fig14/as_validation_net_1994_95_v10.pro"];
39;       {met_data swr_erai lwr_erai lhf_erai tropflux_general swr_tropflux_nrt swr_oafluxgrid lwr_oafluxgrid lhf_oafluxgrid shf_oafluxgrid swr_ncep2 lwr_ncep2 lhf_ncep2 shf_ncep2 ncep1} -> {as_validation_net_1994_95_v10} -> {figure}
40;    }
41;
42; SEE ALSO
43; ========
44;
45; :ref:`project_profile.sh`
46; :ref:`project_init.pro`
47; :ref:`cm_project.pro`
48;
49; :ref:`statistics.pro`
50;
51; EXAMPLES
52; ========
53;
54; ::
55;
56;  as_validation_net_1994_95_v10
57;
58; TODO
59; ====
60;
61; make it work on cratos : missing data erai_swr_19910101_20091231_oafluxgrid.nc, etc
62;
63; coding rules
64;
65; complete description
66;
67; handle IO error
68;
69; EVOLUTIONS
70; ==========
71;
72; $Id$
73;
74; $URL$
75;
76; - fplod 20110420T115926Z aedon.locean-ipsl.upmc.fr (Darwin)
77;
78;   * remove hard coding path
79;   * add graphviz
80;
81; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin)
82;
83;   * minimal header
84;
85;-
86pro as_validation_net_1994_95_v10
87@cm_general
88@cm_project
89reinitplt, /z,/invert
90key_portrait = 1
91coefpalit=.9
92;
93openps, FILENAME = project_od_env+'as_validation_net_1994_95_v10.ps'
94; partie a changer
95asbox=[61,62,15,16]
96date1=19941016
97date2=19951019
98;
99fi=project_id_env+"met_data_as_expt_1994.txt"
100res=read_ascii(fi,data_start=1)
101ff=res.field1
102swr94=reform(ff(7,*))*0.93
103lwr94=reform(ff(8,*))
104lhf94=reform(ff(5,*))
105shf94=reform(ff(6,*))
106net94=swr94+lwr94+lhf94+shf94
107;
108fi=project_id_env+"met_data_as_expt_1995.txt"
109res=read_ascii(fi,data_start=1)
110ff=res.field1
111swr95=reform(ff(7,*))*0.93
112lwr95=reform(ff(8,*))
113lhf95=reform(ff(5,*))
114shf95=reform(ff(6,*))
115net95=swr95+lwr95+lhf95+shf95
116;
117net=[net94, net95]
118ind=where(finite(net))
119net=net(ind)
120;
121; start data - 16/10/94 and end date 31/12/94
122; start data - 01/01/95 and end date 19/10/95
123;
124help, net
125; reading other data sets
126file=project_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc"
127initncdf, file
128swr=read_ncdf('swr',date1,date2,file=file,/nostr, box=asbox)
129swr=reform(swr)
130file=project_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc'
131initncdf, file
132lwr=read_ncdf('lwr',date1-1,date2,file=file,/nostr, box=asbox)
133lwr=reform(lwr)
134file=project_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc'
135initncdf, file
136shf=-1*read_ncdf('shf',date1,date2,file=file,/nostr, box=asbox)
137shf=reform(shf)
138file=project_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc'
139initncdf, file
140lhf=-1*read_ncdf('lhf',date1,date2,file=file,/nostr, box=asbox)
141lhf=reform(lhf)
142;
143era=swr+lwr+lhf+shf
144help, era
145era=era(ind)
146help, era
147;
148swr=0.
149lwr=0.
150shf=0.
151lhf=0.
152;
153file=project_id_env+"TropFlux_19890101_20091231.nc"
154initncdf, file
155swr=read_ncdf('swr',date1,date2,file=file,/nostr, box=asbox)
156swr=reform(swr)
157lwr=read_ncdf('lwr',date1,date2,file=file,/nostr, box=asbox)
158lwr=reform(lwr)
159shf=read_ncdf('shf',date1,date2,file=file,/nostr, box=asbox)
160shf=reform(shf)
161lhf=read_ncdf('lhf',date1,date2,file=file,/nostr, box=asbox)
162lhf=reform(lhf)
163trop=swr+lwr+shf+lhf
164help, trop
165;
166file=project_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc"
167initncdf, file
168olr1=read_ncdf("sw", date1-1, date2, file=file,/nostr, box=asbox)
169olr1=grossemoyenne(olr1, "xy",/nan, box=asbox)
170olr1=reform(olr1)
171;
172olr=olr1+lwr+shf+lhf
173;
174swr=0.
175lwr=0.
176shf=0.
177lhf=0.
178olr1=0.
179;
180trop=trop(ind)
181olr=olr(ind)
182help, trop, olr
183;
184file=project_id_env+'swr_oafluxgrid_1985_2007.nc'
185initncdf, file
186swr=read_ncdf("swr", date1, date2, file=file,/nostr, box=asbox)
187swr=reform(swr)
188;
189file=project_id_env+'lwr_oafluxgrid_1985_2007.nc'
190initncdf, file
191lwr=read_ncdf("lwr", date1, date2, file=file,/nostr, box=asbox)
192lwr=-1*reform(lwr)
193;
194file=project_id_env+'lhf_oafluxgrid_1985_2009.nc'
195initncdf, file
196lhf=read_ncdf("lhf", date1, date2, file=file,/nostr, box=asbox)
197lhf=-1*reform(lhf)
198;
199file=project_id_env+'shf_oafluxgrid_1985_2009.nc'
200initncdf, file
201shf=read_ncdf("shf", date1, date2, file=file,/nostr, box=asbox)
202shf=-1*reform(shf)
203;
204oaf=swr+lwr+shf+lhf
205oaf=oaf(ind)
206help, oaf
207;
208swr=0.
209lwr=0.
210shf=0.
211lhf=0.
212;
213fi=project_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc'
214initncdf, fi
215swr=read_ncdf("swr", date1, date2, file=fi,/nostr, box=asbox)
216swr=reform(swr)
217;
218fi=project_id_env+"NCEP2_flux_19890101_20090729.nc"
219initncdf, fi
220lwr=read_ncdf("lwr", date1, date2, file=fi,/nostr, box=asbox)
221lwr=grossemoyenne(lwr, "xy",/nan, box=asbox)
222lwr=reform(lwr)
223;
224lwr=-1*lwr
225;
226fi=project_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc'
227initncdf, fi
228lhf=read_ncdf("lhf", date1, date2, file=fi,/nostr, box=asbox)
229lhf=-1*reform(lhf)
230;
231fi=project_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc'
232initncdf, fi
233shf=read_ncdf("shf", date1, date2, file=fi,/nostr, box=asbox)
234shf=-1*reform(shf)
235;
236nce2=swr+lwr+shf+lhf
237help, nce2
238;
239nce2=nce2(ind)
240help, nce2
241swr=0.
242lwr=0.
243shf=0.
244lhf=0.
245;
246file=project_id_env+"ncep1_flux_19890101_20091231.nc"
247initncdf, file
248swr=read_ncdf("swr", date1, date2, file=file,/nostr, box=asbox)
249swr=reform(swr)
250lwr=read_ncdf("lwr", date1, date2, file=file,/nostr, box=asbox)
251lwr=reform(lwr)
252lhf=read_ncdf("lhf", date1, date2, file=file,/nostr, box=asbox)
253lhf=reform(lhf)
254shf=read_ncdf("shf", date1, date2, file=file,/nostr, box=asbox)
255shf=reform(shf)
256nce1=swr+lwr+shf+lhf
257;
258help, nce1
259;
260nce1=nce1(ind)
261help, nce1
262;ind=where(finite(net))
263;net=net(ind)
264;era=era(ind)
265;trop=trop(ind)
266;oaf=oaf(ind)
267;nce1=nce1(ind)
268;nce2=nce2(ind)
269;olr=olr(ind)
270;
271statistics, net, era, $
272                 cor, bias, std, rmsd
273print, cor, bias, std,  rmsd
274cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
275;
276statistics, net, trop, $
277                 cor, bias, std, rmsd
278print, cor, bias, std,  rmsd
279cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
280;
281statistics, net, oaf, $
282                 cor, bias, std, rmsd
283print, cor, bias, std,  rmsd
284cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
285;
286statistics, net, nce1, $
287                 cor, bias, std, rmsd
288print, cor, bias, std,  rmsd
289cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
290;
291statistics, net, nce2, $
292                 cor, bias, std, rmsd
293print, cor, bias, std,  rmsd
294cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
295;
296statistics, net, olr, $
297                 cor, bias, std, rmsd
298print, cor, bias, std,  rmsd
299cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
300;
301splot, net, era, charsize=1.1, title='Net Flux - AS Vs ERAI', $
302     xrange=[-200,200], yrange=[-200,200], small=[2,3,1], psym=2, xmin=1, ymin=1
303oplot, [-200,200], [-200,200]
304xyouts, -150,-175, cstat_era, charsize=1.
305;
306splot, net, trop, charsize=1.1, title='Net Flux - AS Vs TropFlux',/noer, $
307     xrange=[-200,200], yrange=[-200,200], small=[2,3,2], psym=2, xmin=1, ymin=1
308oplot, [-200,200], [-200,200]
309xyouts, -150,-175, cstat_trop, charsize=1.
310;
311splot, net, oaf, charsize=1.1, title='Net Flux - AS Vs OAFlux',/noer, $
312     xrange=[-200,200], yrange=[-200,200], small=[2,3,3], psym=2, xmin=1, ymin=1
313oplot, [-200,200], [-200,200]
314xyouts, -150,-175, cstat_oaf, charsize=1.
315;
316splot, net, nce1, charsize=1.1, title='Net Flux - AS Vs NCEP1',/noer, $
317     xrange=[-200,200], yrange=[-200,200], small=[2,3,4], psym=2, xmin=1, ymin=1
318oplot, [-200,200], [-200,200]
319xyouts, -150,-175, cstat_nce1, charsize=1.
320;
321splot, net, nce2, charsize=1.1, title='Net Flux - AS Vs NCEP2',/noer, $
322     xrange=[-200,200], yrange=[-200,200], small=[2,3,5], psym=2, xmin=1, ymin=1
323oplot, [-200,200], [-200,200]
324xyouts, -150,-175, cstat_nce2, charsize=1.
325;
326splot, net, olr, charsize=1.1, title='Net Flux - AS Vs TropFlux_NRT',/noer, $
327     xrange=[-200,200], yrange=[-200,200], small=[2,3,6], psym=2, xmin=1, ymin=1
328oplot, [-200,200], [-200,200]
329xyouts, -150,-175, cstat_olr, charsize=1.
330;
331closeps
332;
333end
Note: See TracBrowser for help on using the repository browser.