source: trunk/src/paper01/fig14/subdctn_cs_validation_net_1991_93_all_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: 10.9 KB
Line 
1;+
2; .. _subdctn_cs_validation_net_1991_93_all_v10.pro:
3;
4; =============================================
5; subdctn_cs_validation_net_1991_93_all_v10.pro
6; =============================================
7;
8; DESCRIPTION
9; ===========
10;
11; .. graphviz::
12;
13;    digraph subdctn_cs_validation_net_1991_93_all_v10 {
14;
15;       met_data [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/met_data_subduct_cs_9*.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}/subdctn_cs_validation_net_1991_93_all_v10.ps"];
34;
35;       subdctn_cs_validation_net_1991_93_all_v10 [shape=box,
36;       fontname=Courier,
37;       color=blue,
38;       URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/subdctn_cs_validation_net_1991_93_all_v10.pro",
39;       label="${TROPFLUX}/src/paper01/fig14/subdctn_cs_validation_net_1991_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} -> {subdctn_cs_validation_net_1991_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; ::
57;
58;  subdctn_cs_validation_net_1991_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 20110420T121121Z 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 subdctn_cs_validation_net_1991_93_all_v10
89@cm_general
90@cm_project
91reinitplt, /z,/invert
92key_portrait = 1
93coefpalit=.9
94;
95openps, FILENAME = project_od_env+"subdctn_cs_validation_net_1991_93_all_v10.ps"
96; partie a changer
97;
98; subduction experiment in the atlantic in 1991-93
99box=[330.5, 331.5, 25., 26.]
100;
101; first leg
102;
103fi=project_id_env+"met_data_subduct_cs_91.txt"
104res=read_ascii(fi,data_start=1)
105ff=res.field1
106swr_91=reform(ff(7,*))/0.94
107lhf_91=reform(ff(5,*))
108shf_91=reform(ff(6,*))
109lwr_91=reform(ff(8,*))
110net_91=[swr_91+lwr_91+shf_91+lhf_91]
111;
112; start data - 06/02/92 and end date 02/06/92 then from 11/10/92 to 31/12/92
113; total no of daily records -
114; second leg
115;
116fi=project_id_env+"met_data_subduct_cs_92.txt"
117res=read_ascii(fi,data_start=1)
118ff=res.field1
119swr_92=reform(ff(7,*))/0.94
120lhf_92=reform(ff(5,*))
121shf_92=reform(ff(6,*))
122lwr_92=reform(ff(8,*))
123net_92=[swr_92+lwr_92+shf_92+lhf_92]
124;
125; second leg
126;
127fi=project_id_env+"met_data_subduct_cs_93.txt"
128res=read_ascii(fi,data_start=1)
129ff=res.field1
130swr_93=reform(ff(7,*))/0.94
131lhf_93=reform(ff(5,*))
132shf_93=reform(ff(6,*))
133lwr_93=reform(ff(8,*))
134net_93=[swr_93+lwr_93+shf_93+lhf_93]
135;
136net=[net_91, net_92, net_93]
137help, net
138;
139; reading other data sets
140;
141st1=19910623
142en1=19930616
143;
144file=project_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc"
145initncdf, file
146swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box)
147swr1=grossemoyenne(swr1, "xy", box=box,/nan)
148swr1=reform(swr1)
149file=project_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc'
150initncdf, file
151lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box)
152lhf1=grossemoyenne(lhf1, "xy", box=box,/nan)
153lhf1=reform(lhf1)
154file=project_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc'
155initncdf, file
156shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box)
157shf1=grossemoyenne(shf1, "xy", box=box,/nan)
158shf1=reform(shf1)
159file=project_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc'
160initncdf, file
161lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box)
162lwr1=grossemoyenne(lwr1, "xy", box=box,/nan)
163lwr1=reform(lwr1)
164;
165era=swr1+lwr1+lhf1+shf1
166swr1=0
167lwr1=0
168shf1=0
169lhf1=0
170help, era
171;
172file=project_id_env+"TropFlux_19890101_20091231.nc"
173initncdf, file
174lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box)
175lhf1=grossemoyenne(lhf1, "xy", box=box,/nan)
176lhf1=reform(lhf1)
177shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box)
178shf1=grossemoyenne(shf1, "xy", box=box,/nan)
179shf1=reform(shf1)
180lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box)
181lwr1=grossemoyenne(lwr1, "xy", box=box,/nan)
182lwr1=reform(lwr1)
183swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box)
184swr1=grossemoyenne(swr1, "xy", box=box,/nan)
185swr1=reform(swr1)
186trop=swr1+lwr1+lhf1+shf1
187;
188file=project_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc"
189initncdf, file
190olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box)
191olr1=grossemoyenne(olr1, "xy",/nan, box=box)
192olr1=reform(olr1)
193;
194olr=olr1+lwr1+shf1+lhf1
195help, trop, olr
196swr1=0
197lwr1=0
198shf1=0
199lhf1=0
200olr1=0
201;
202file=project_id_env+'swr_oafluxgrid_1985_2007.nc'
203initncdf, file
204swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box)
205swr1=grossemoyenne(swr1, "xy",/nan, box=box)
206swr1=reform(swr1)
207file=project_id_env+'lwr_oafluxgrid_1985_2007.nc'
208initncdf, file
209lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box)
210lwr1=grossemoyenne(lwr1, "xy",/nan, box=box)
211lwr1=reform(lwr1)
212file=project_id_env+'lhf_oafluxgrid_1985_2009.nc'
213initncdf, file
214lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box)
215lhf1=grossemoyenne(lhf1, "xy",/nan, box=box)
216lhf1=reform(lhf1)
217file=project_id_env+'shf_oafluxgrid_1985_2009.nc'
218initncdf, file
219shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box)
220shf1=grossemoyenne(shf1, "xy",/nan, box=box)
221shf1=reform(shf1)
222;
223oaf=swr1+lwr1+lhf1+shf1
224help, oaf
225swr1=0
226lwr1=0
227shf1=0
228lhf1=0
229olr1=0
230;
231fi=project_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc'
232initncdf, fi
233swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box)
234swr1=grossemoyenne(swr1, "xy",/nan, box=box)
235swr1=reform(swr1)
236fi=project_id_env+"NCEP2_flux_19890101_20090729.nc"
237initncdf, fi
238lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box)
239lwr1=grossemoyenne(lwr1, "xy",/nan, box=box)
240lwr1=reform(lwr1)
241fi=project_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc'
242initncdf, fi
243lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box)
244lhf1=grossemoyenne(lhf1, "xy",/nan, box=box)
245lhf1=reform(lhf1)
246fi=project_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc'
247initncdf, fi
248shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box)
249shf1=grossemoyenne(shf1, "xy",/nan, box=box)
250shf1=reform(shf1)
251;
252nce2=swr1+lwr1+lhf1+shf1
253help, nce2
254swr1=0
255lwr1=0
256shf1=0
257lhf1=0
258olr1=0
259;
260file=project_id_env+"ncep1_flux_19890101_20091231.nc"
261initncdf, file
262;
263lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box)
264lhf1=grossemoyenne(lhf1, "xy", box=box,/nan)
265lhf1=reform(lhf1)
266shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box)
267shf1=grossemoyenne(shf1, "xy", box=box,/nan)
268shf1=reform(shf1)
269lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box)
270lwr1=grossemoyenne(lwr1, "xy", box=box,/nan)
271lwr1=reform(lwr1)
272swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box)
273swr1=grossemoyenne(swr1, "xy", box=box,/nan)
274swr1=reform(swr1)
275nce1=swr1+(lwr1+shf1+lhf1)
276help, nce1
277;
278ind=where(finite(net))
279net=net(ind)
280era=era(ind)
281trop=trop(ind)
282oaf=oaf(ind)
283nce2=nce2(ind)
284nce1=nce1(ind)
285olr=olr(ind)
286;
287statistics, net, era, $
288                 cor, bias, std, rmsd
289print, cor, bias, std,  rmsd
290cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
291;
292statistics, net, trop, $
293                 cor, bias, std, rmsd
294print, cor, bias, std,  rmsd
295cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
296;
297statistics, net, oaf, $
298                 cor, bias, std, rmsd
299print, cor, bias, std,  rmsd
300cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
301;
302statistics, net, nce1, $
303                 cor, bias, std, rmsd
304print, cor, bias, std,  rmsd
305cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
306;
307statistics, net, nce2, $
308                 cor, bias, std, rmsd
309print, cor, bias, std,  rmsd
310cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
311;
312statistics, net, olr, $
313                 cor, bias, std, rmsd
314print, cor, bias, std,  rmsd
315cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
316;
317splot, net, era, charsize=1.1, title='Net Flux - Subdn. cs Vs ERAI', $
318     xrange=[-200,200], yrange=[-200,200], small=[2,3,1], psym=2, xmin=1, ymin=1
319oplot, [-200,200], [-200,200]
320xyouts, 0,-175, cstat_era, charsize=1.
321;
322splot, net, trop, charsize=1.1, title='Net Flux - Subdn. cs Vs TropFlux',/noer, $
323     xrange=[-200,200], yrange=[-200,200], small=[2,3,2], psym=2, xmin=1, ymin=1
324oplot, [-200,200], [-200,200]
325xyouts, 0,-175, cstat_trop, charsize=1.
326;
327splot, net, oaf, charsize=1.1, title='Net Flux - Subdn. cs Vs OAFlux',/noer, $
328     xrange=[-200,200], yrange=[-200,200], small=[2,3,3], psym=2, xmin=1, ymin=1
329oplot, [-200,200], [-200,200]
330xyouts, 0,-175, cstat_oaf, charsize=1.
331;
332splot, net, nce1, charsize=1.1, title='Net Flux - Subdn. cs Vs NCEP1',/noer, $
333     xrange=[-200,200], yrange=[-200,200], small=[2,3,4], psym=2, xmin=1, ymin=1
334oplot, [-200,200], [-200,200]
335xyouts, 0,-175, cstat_nce1, charsize=1.
336;
337splot, net, nce2, charsize=1.1, title='Net Flux - Subdn. cs Vs NCEP2',/noer, $
338     xrange=[-200,200], yrange=[-200,200], small=[2,3,5], psym=2, xmin=1, ymin=1
339oplot, [-200,200], [-200,200]
340xyouts, 0,-175, cstat_nce2, charsize=1.
341;
342splot, net, olr, charsize=1.1, title='Net Flux - Subdn. cs Vs TropFlux_NRT',/noer, $
343     xrange=[-200,200], yrange=[-200,200], small=[2,3,6], psym=2, xmin=1, ymin=1
344oplot, [-200,200], [-200,200]
345xyouts, 0,-175, cstat_olr, charsize=1.
346;
347closeps
348;
349end
Note: See TracBrowser for help on using the repository browser.