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