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