source: trunk/src/paper01/fig14/stratus_validation_net_2001_2002_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: 9.9 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;
15;       met_data [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/met_data_stratus_2001_2002.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}/stratus_validation_net_2001_2002_all_v11.ps"];
34;
35;       stratus_validation_net_2001_2002_all_v10 [shape=box,
36;       fontname=Courier,
37;       color=blue,
38;       URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/stratus_validation_net_2001_2002_all_v10.pro",
39;       label="${TROPFLUX}/src/paper01/fig14/stratus_validation_net_2001_2002_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} -> {stratus_validation_net_2001_2002_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;  stratus_validation_net_2001_2002_all_v10
59;
60; TODO
61; ====
62;
63; make it work on cratos : missing data
64;
65; ++ mooring data in graphviz
66;
67; coding rules
68;
69; complete description
70;
71; handle IO error
72;
73; EVOLUTIONS
74; ==========
75;
76; $Id$
77;
78; $URL$
79;
80; - fplod 20110420T120826Z 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 stratus_validation_net_2001_2002_all_v10
91@cm_general
92@cm_project
93reinitplt, /z,/invert
94key_portrait = 1
95coefpalit=.9
96;
97openps, FILENAME = project_od_env+"stratus_validation_net_2001_2002_all_v11.ps"
98; partie a changer
99;
100; stratus in the south pacific cold tongue 2000-01
101;20.9S, 80.8W (274.2E)
102box=[274, 275, -21., -20.]
103;
104; first leg
105;
106fi=project_id_env+"met_data_stratus_2001_2002.txt"
107res=read_ascii(fi,data_start=1)
108ff=res.field1
109swr=reform(ff(7,*))/0.94
110lwr=reform(ff(8,*))
111lhf=reform(ff(5,*))
112shf=reform(ff(6,*))
113;
114net=swr+lwr+shf+lhf
115help, net
116;
117; reading other data sets
118;
119st1=20011019
120en1=20021022
121;
122file=project_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc"
123initncdf, file
124swr=read_ncdf('swr',st1,en1,file=file,/nostr, box=box)
125swr=grossemoyenne(swr, "xy", box=box,/nan)
126swr=reform(swr)
127file=project_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc'
128initncdf, file
129lwr=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box)
130lwr=reform(lwr)
131file=project_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc'
132initncdf, file
133shf=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box)
134shf=reform(shf)
135file=project_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc'
136initncdf, file
137lhf=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box)
138lhf=reform(lhf)
139;
140era=swr+lwr+lhf+shf
141help, era
142;
143swr=0
144lwr=0
145lhf=0
146shf=0
147;
148file=project_id_env+"TropFlux_19890101_20091231.nc"
149initncdf, file
150swr=read_ncdf('swr',st1,en1,file=file,/nostr, box=box)
151swr=grossemoyenne(swr, "xy",/nan, box=box)
152swr=reform(swr)
153lwr=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box)
154lwr=grossemoyenne(lwr, "xy",/nan, box=box)
155lwr=reform(lwr)
156shf=read_ncdf('shf',st1,en1,file=file,/nostr, box=box)
157shf=grossemoyenne(shf, "xy",/nan, box=box)
158shf=reform(shf)
159lhf=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box)
160lhf=grossemoyenne(lhf, "xy",/nan, box=box)
161lhf=reform(lhf)
162;
163file=project_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc"
164initncdf, file
165olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box)
166olr1=grossemoyenne(olr1, "xy",/nan, box=box)
167olr1=reform(olr1)
168;
169trop=swr+lwr+shf+lhf
170olr=olr1+lwr+shf+lhf
171help, trop, olr
172swr=0
173lwr=0
174lhf=0
175shf=0
176olr1=0
177;
178file=project_id_env+'swr_oafluxgrid_1985_2007.nc'
179initncdf, file
180swr=read_ncdf("swr", st1, en1, file=file,/nostr, box=box)
181swr=grossemoyenne(swr, "xy",/nan, box=box)
182swr=reform(swr)
183;
184file=project_id_env+'lwr_oafluxgrid_1985_2007.nc'
185initncdf, file
186lwr=read_ncdf("lwr", st1, en1, file=file,/nostr, box=box)
187lwr=-1*reform(lwr)
188;
189file=project_id_env+'lhf_oafluxgrid_1985_2009.nc'
190initncdf, file
191lhf=read_ncdf("lhf", st1, en1, file=file,/nostr, box=box)
192lhf=-1*reform(lhf)
193;
194file=project_id_env+'shf_oafluxgrid_1985_2009.nc'
195initncdf, file
196shf=read_ncdf("shf", st1, en1, file=file,/nostr, box=box)
197shf=-1*reform(shf)
198;
199oaf=swr+lwr+shf+lhf
200help, oaf
201swr=0
202lwr=0
203lhf=0
204shf=0
205;
206fi=project_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc'
207initncdf, fi
208swr=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box)
209swr=grossemoyenne(swr, "xy",/nan, box=box)
210swr=reform(swr)
211;
212fi=project_id_env+"NCEP2_flux_19890101_20090729.nc"
213initncdf, fi
214lwr=read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box)
215lwr=grossemoyenne(lwr, "xy",/nan, box=box)
216lwr=reform(lwr)
217lwr=-1*lwr
218;
219fi=project_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc'
220initncdf, fi
221lhf=read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box)
222lhf=-1*reform(lhf)
223;
224fi=project_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc'
225initncdf, fi
226shf=read_ncdf("shf", st1, en1, file=fi,/nostr, box=box)
227shf=-1*reform(shf)
228;
229nce2=swr+lwr+shf+lhf
230help, nce2
231;
232swr=0
233lwr=0
234lhf=0
235shf=0
236;
237file=project_id_env+"ncep1_flux_19890101_20091231.nc"
238initncdf, file
239swr=read_ncdf("swr", st1, en1, file=file,/nostr, box=box)
240swr=grossemoyenne(swr, "xy",/nan, box=box)
241swr=reform(swr)
242lwr=read_ncdf("lwr", st1, en1, file=file,/nostr, box=box)
243lwr=grossemoyenne(lwr, "xy",/nan, box=box)
244lwr=reform(lwr)
245shf=read_ncdf("shf", st1, en1, file=file,/nostr, box=box)
246shf=grossemoyenne(shf, "xy",/nan, box=box)
247shf=reform(shf)
248lhf=read_ncdf("lhf", st1, en1, file=file,/nostr, box=box)
249lhf=grossemoyenne(lhf, "xy",/nan, box=box)
250lhf=reform(lhf)
251;
252nce1=swr+lwr+shf+lhf
253help, nce1
254;
255ind=where(finite(net))
256net=net(ind)
257era=era(ind)
258trop=trop(ind)
259oaf=oaf(ind)
260nce2=nce2(ind)
261nce1=nce1(ind)
262olr=olr(ind)
263;
264statistics, net, era, $
265                 cor, bias, std, rmsd
266print, cor, bias, std,  rmsd
267cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
268;
269statistics, net, trop, $
270                 cor, bias, std, rmsd
271print, cor, bias, std,  rmsd
272cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
273;
274statistics, net, oaf, $
275                 cor, bias, std, rmsd
276print, cor, bias, std,  rmsd
277cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
278;
279statistics, net, nce1, $
280                 cor, bias, std, rmsd
281print, cor, bias, std,  rmsd
282cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
283;
284statistics, net, nce2, $
285                 cor, bias, std, rmsd
286print, cor, bias, std,  rmsd
287cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
288;
289statistics, net, olr, $
290                 cor, bias, std, rmsd
291print, cor, bias, std,  rmsd
292cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
293;
294splot, net, era, charsize=1.1, title='SWR - Stratus Vs ERAI', $
295     xrange=[-200,200], yrange=[-200,200], small=[2,3,1], psym=2, xmin=1, ymin=1
296oplot, [-200,200], [-200,200]
297xyouts, -150,-175, cstat_era, charsize=1.
298;
299splot, net, trop, charsize=1.1, title='SWR - Stratus Vs TropFlux',/noer, $
300     xrange=[-200,200], yrange=[-200,200], small=[2,3,2], psym=2, xmin=1, ymin=1
301oplot, [-200,200], [-200,200]
302xyouts, -150,-175, cstat_trop, charsize=1.
303;
304splot, net, oaf, charsize=1.1, title='SWR - Stratus Vs OAFlux',/noer, $
305     xrange=[-200,200], yrange=[-200,200], small=[2,3,3], psym=2, xmin=1, ymin=1
306oplot, [-200,200], [-200,200]
307xyouts, -150,-175, cstat_oaf, charsize=1.
308;
309splot, net, nce1, charsize=1.1, title='SWR - Stratus Vs NCEP1',/noer, $
310     xrange=[-200,200], yrange=[-200,200], small=[2,3,4], psym=2, xmin=1, ymin=1
311oplot, [-200,200], [-200,200]
312xyouts, -150,-175, cstat_nce1, charsize=1.
313;
314splot, net, nce2, charsize=1.1, title='SWR - Stratus Vs NCEP2',/noer, $
315     xrange=[-200,200], yrange=[-200,200], small=[2,3,5], psym=2, xmin=1, ymin=1
316oplot, [-200,200], [-200,200]
317xyouts, -150,-175, cstat_nce2, charsize=1.
318;
319splot, net, olr, charsize=1.1, title='SWR - Stratus Vs TropFlux_NRT',/noer, $
320     xrange=[-200,200], yrange=[-200,200], small=[2,3,6], psym=2, xmin=1, ymin=1
321oplot, [-200,200], [-200,200]
322xyouts, -150,-175, cstat_olr, charsize=1.
323;
324closeps
325;
326end
Note: See TracBrowser for help on using the repository browser.