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

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

going on consolidation of paper01 materials

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