source: trunk/src/paper01/fig14/subdctn_cs_validation_net_1991_93_all_v10.pro @ 73

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

replace TROPFLUX by PROJECT

File size: 11.1 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;       graph [
15;       rankdir="LR",
16;       ]
17;       met_data [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/met_data_subduct_cs_9*.txt"];
18;       swr_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_swr_19910101_20091231_oafluxgrid.nc"];
19;       lwr_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_lwr_19910101_20091231_oafluxgrid.nc"];
20;       lhf_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_lhf_19910101_20091231_oafluxgrid.nc"];
21;       shf_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_shf_19910101_20091231_oafluxgrid.nc"];
22;       tropflux_general [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_19890101_20091231.nc"];
23;       swr_tropflux_nrt [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"];
24;       swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_oafluxgrid_1985_2007.nc"];
25;       lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lwr_oafluxgrid_1985_2007.nc"];
26;       lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_oafluxgrid_1985_2007.nc"];
27;       shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_oafluxgrid_1985_2007.nc"];
28;       swr_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"];
29;       lwr_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/NCEP2_flux_19890101_20090729.nc"];
30;       lhf_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"];
31;       shf_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"];
32;
33;       ncep1 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/ncep1_flux_19890101_20091231.nc"];
34;
35;       figure [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/subdctn_cs_validation_net_1991_93_all_v10.ps"];
36;
37;       subdctn_cs_validation_net_1991_93_all_v10 [shape=box,
38;       fontname=Courier,
39;       color=blue,
40;       URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/subdctn_cs_validation_net_1991_93_all_v10.pro",
41;       label="${TROPFLUX}/src/paper01/fig14/subdctn_cs_validation_net_1991_93_all_v10.pro"];
42;
43;       {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}
44;    }
45;
46; SEE ALSO
47; ========
48;
49; :ref:`project_profile.sh`
50; :ref:`project_init.pro`
51; :ref:`cm_project.pro`
52;
53; :ref:`statistics.pro`
54;
55; EXAMPLES
56; ========
57;
58; ::
59;
60;  IDL> subdctn_cs_validation_net_1991_93_all_v10
61;
62; TODO
63; ====
64;
65; make it work on cratos : missing data
66;
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 20110420T121121Z 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 subdctn_cs_validation_net_1991_93_all_v10
91@cm_general
92@cm_project
93reinitplt, /z,/invert
94key_portrait = 1
95coefpalit=.9
96
97openps, FILENAME = 'idl.ps'
98; partie a changer
99
100;; subduction experiment in the atlantic in 1991-93
101box=[330.5, 331.5, 25., 26.]
102
103;; first leg
104
105fi=project_id_env+"met_data_subduct_cs_91.txt"
106res=read_ascii(fi,data_start=1)
107ff=res.field1
108swr_91=reform(ff(7,*))/0.94
109lhf_91=reform(ff(5,*))
110shf_91=reform(ff(6,*))
111lwr_91=reform(ff(8,*))
112net_91=[swr_91+lwr_91+shf_91+lhf_91]
113
114;; start data - 06/02/92 and end date 02/06/92 then from 11/10/92 to 31/12/92
115;; total no of daily records -
116;; second leg
117
118fi=project_id_env+"met_data_subduct_cs_92.txt"
119res=read_ascii(fi,data_start=1)
120ff=res.field1
121swr_92=reform(ff(7,*))/0.94
122lhf_92=reform(ff(5,*))
123shf_92=reform(ff(6,*))
124lwr_92=reform(ff(8,*))
125net_92=[swr_92+lwr_92+shf_92+lhf_92]
126
127;; second leg
128
129fi=project_id_env+"met_data_subduct_cs_93.txt"
130res=read_ascii(fi,data_start=1)
131ff=res.field1
132swr_93=reform(ff(7,*))/0.94
133lhf_93=reform(ff(5,*))
134shf_93=reform(ff(6,*))
135lwr_93=reform(ff(8,*))
136net_93=[swr_93+lwr_93+shf_93+lhf_93]
137
138net=[net_91, net_92, net_93]
139help, net
140
141;; reading other data sets
142
143st1=19910623 & en1=19930616
144
145file=project_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc"
146initncdf, file
147swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1)
148file=project_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc'
149initncdf, file
150lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1)
151file=project_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc'
152initncdf, file
153shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1)
154file=project_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc'
155initncdf, file
156lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1)
157
158era=swr1+lwr1+lhf1+shf1
159swr1=0 & lwr1=0 & shf1=0 & lhf1=0
160help, era
161
162file=project_id_env+"TropFlux_19890101_20091231.nc"
163initncdf, file
164lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1)
165shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1)
166lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1)
167swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1)
168trop=swr1+lwr1+lhf1+shf1
169
170file=project_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc"
171initncdf, file
172olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1)
173
174olr=olr1+lwr1+shf1+lhf1
175help, trop, olr
176swr1=0 & lwr1=0 & shf1=0 & lhf1=0 & olr1=0
177
178file=project_id_env+'swr_oafluxgrid_1985_2007.nc'
179initncdf, file
180swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1)
181file=project_id_env+'lwr_oafluxgrid_1985_2007.nc'
182initncdf, file
183lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1)
184file=project_id_env+'lhf_oafluxgrid_1985_2009.nc'
185initncdf, file
186lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1)
187file=project_id_env+'shf_oafluxgrid_1985_2009.nc'
188initncdf, file
189shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1)
190
191oaf=swr1+lwr1+lhf1+shf1
192help, oaf
193swr1=0 & lwr1=0 & shf1=0 & lhf1=0 & olr1=0
194
195fi=project_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc'
196initncdf, fi
197swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy",/nan, box=box) & swr1=reform(swr1)
198fi=project_id_env+"NCEP2_flux_19890101_20090729.nc"
199initncdf, fi
200lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) & lwr1=reform(lwr1)
201fi=project_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc'
202initncdf, fi
203lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) & lhf1=reform(lhf1)
204fi=project_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc'
205initncdf, fi
206shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy",/nan, box=box) & shf1=reform(shf1)
207
208nce2=swr1+lwr1+lhf1+shf1
209help, nce2
210swr1=0 & lwr1=0 & shf1=0 & lhf1=0 & olr1=0
211
212file=project_id_env+"ncep1_flux_19890101_20091231.nc"
213initncdf, file
214
215lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) & lhf1=reform(lhf1)
216shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf1=grossemoyenne(shf1, "xy", box=box,/nan) & shf1=reform(shf1)
217lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) & lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) & lwr1=reform(lwr1)
218swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr1=grossemoyenne(swr1, "xy", box=box,/nan) & swr1=reform(swr1)
219nce1=swr1+(lwr1+shf1+lhf1)
220help, nce1
221
222ind=where(finite(net))
223net=net(ind) & era=era(ind) & trop=trop(ind) & oaf=oaf(ind) & nce2=nce2(ind) & nce1=nce1(ind)
224olr=olr(ind)
225
226statistics, net, era, $
227                 cor, bias, std, rmsd
228print, cor, bias, std,  rmsd
229cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
230
231statistics, net, trop, $
232                 cor, bias, std, rmsd
233print, cor, bias, std,  rmsd
234cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
235
236statistics, net, oaf, $
237                 cor, bias, std, rmsd
238print, cor, bias, std,  rmsd
239cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
240
241statistics, net, nce1, $
242                 cor, bias, std, rmsd
243print, cor, bias, std,  rmsd
244cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
245
246statistics, net, nce2, $
247                 cor, bias, std, rmsd
248print, cor, bias, std,  rmsd
249cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
250
251statistics, net, olr, $
252                 cor, bias, std, rmsd
253print, cor, bias, std,  rmsd
254cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
255
256
257splot, net, era, charsize=1.1, title='Net Flux - Subdn. cs Vs ERAI', $
258     xrange=[-200,200], yrange=[-200,200], small=[2,3,1], psym=2, xmin=1, ymin=1
259oplot, [-200,200], [-200,200]
260xyouts, 0,-175, cstat_era, charsize=1.
261
262splot, net, trop, charsize=1.1, title='Net Flux - Subdn. cs Vs TropFlux',/noer, $
263     xrange=[-200,200], yrange=[-200,200], small=[2,3,2], psym=2, xmin=1, ymin=1
264oplot, [-200,200], [-200,200]
265xyouts, 0,-175, cstat_trop, charsize=1.
266
267splot, net, oaf, charsize=1.1, title='Net Flux - Subdn. cs Vs OAFlux',/noer, $
268     xrange=[-200,200], yrange=[-200,200], small=[2,3,3], psym=2, xmin=1, ymin=1
269oplot, [-200,200], [-200,200]
270xyouts, 0,-175, cstat_oaf, charsize=1.
271
272splot, net, nce1, charsize=1.1, title='Net Flux - Subdn. cs Vs NCEP1',/noer, $
273     xrange=[-200,200], yrange=[-200,200], small=[2,3,4], psym=2, xmin=1, ymin=1
274oplot, [-200,200], [-200,200]
275xyouts, 0,-175, cstat_nce1, charsize=1.
276
277splot, net, nce2, charsize=1.1, title='Net Flux - Subdn. cs Vs NCEP2',/noer, $
278     xrange=[-200,200], yrange=[-200,200], small=[2,3,5], psym=2, xmin=1, ymin=1
279oplot, [-200,200], [-200,200]
280xyouts, 0,-175, cstat_nce2, charsize=1.
281
282splot, net, olr, charsize=1.1, title='Net Flux - Subdn. cs Vs TropFlux_NRT',/noer, $
283     xrange=[-200,200], yrange=[-200,200], small=[2,3,6], psym=2, xmin=1, ymin=1
284oplot, [-200,200], [-200,200]
285xyouts, 0,-175, cstat_olr, charsize=1.
286
287closeps
288fig=project_od_env+"subdctn_cs_validation_net_1991_93_all_v10.ps"
289spawn, 'mv '+psdir+'idl.ps '+fig
290spawn, 'gv '+fig
291end
Note: See TracBrowser for help on using the repository browser.