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 | ;- |
---|
93 | pro stratus_validation_net_2001_2002_all_v10 |
---|
94 | @cm_general |
---|
95 | @cm_tropflux |
---|
96 | reinitplt, /z,/invert |
---|
97 | key_portrait = 1 |
---|
98 | coefpalit=.9 |
---|
99 | |
---|
100 | openps, 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) |
---|
105 | box=[274, 275, -21., -20.] |
---|
106 | |
---|
107 | ;; first leg |
---|
108 | |
---|
109 | fi=tropflux_id_env+"met_data_stratus_2001_2002.txt" |
---|
110 | res=read_ascii(fi,data_start=1) |
---|
111 | ff=res.field1 |
---|
112 | swr=reform(ff(7,*))/0.94 |
---|
113 | lwr=reform(ff(8,*)) |
---|
114 | lhf=reform(ff(5,*)) |
---|
115 | shf=reform(ff(6,*)) |
---|
116 | |
---|
117 | net=swr+lwr+shf+lhf |
---|
118 | help, net |
---|
119 | |
---|
120 | ;; reading other data sets |
---|
121 | |
---|
122 | st1=20011019 & en1=20021022 |
---|
123 | |
---|
124 | file=tropflux_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc" |
---|
125 | initncdf, file |
---|
126 | swr=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy", box=box,/nan) & swr=reform(swr) |
---|
127 | file=tropflux_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc' |
---|
128 | initncdf, file |
---|
129 | lwr=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr=reform(lwr) |
---|
130 | file=tropflux_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' |
---|
131 | initncdf, file |
---|
132 | shf=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf=reform(shf) |
---|
133 | file=tropflux_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' |
---|
134 | initncdf, file |
---|
135 | lhf=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf=reform(lhf) |
---|
136 | |
---|
137 | era=swr+lwr+lhf+shf |
---|
138 | help, era |
---|
139 | |
---|
140 | swr=0 & lwr=0 & lhf=0 & shf=0 |
---|
141 | |
---|
142 | file=tropflux_id_env+"TropFlux_19890101_20091231.nc" |
---|
143 | initncdf, file |
---|
144 | swr=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) |
---|
145 | lwr=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) & lwr=grossemoyenne(lwr, "xy",/nan, box=box) & lwr=reform(lwr) |
---|
146 | shf=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf=grossemoyenne(shf, "xy",/nan, box=box) & shf=reform(shf) |
---|
147 | lhf=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf=grossemoyenne(lhf, "xy",/nan, box=box) & lhf=reform(lhf) |
---|
148 | |
---|
149 | file=tropflux_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc" |
---|
150 | initncdf, file |
---|
151 | olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1) |
---|
152 | |
---|
153 | trop=swr+lwr+shf+lhf |
---|
154 | olr=olr1+lwr+shf+lhf |
---|
155 | help, trop, olr |
---|
156 | swr=0 & lwr=0 & lhf=0 & shf=0 & olr1=0 |
---|
157 | |
---|
158 | file=tropflux_id_env+'swr_oafluxgrid_1985_2007.nc' |
---|
159 | initncdf, file |
---|
160 | swr=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) |
---|
161 | |
---|
162 | file=tropflux_id_env+'lwr_oafluxgrid_1985_2007.nc' |
---|
163 | initncdf, file |
---|
164 | lwr=read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr=-1*reform(lwr) |
---|
165 | |
---|
166 | file=tropflux_id_env+'lhf_oafluxgrid_1985_2009.nc' |
---|
167 | initncdf, file |
---|
168 | lhf=read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf=-1*reform(lhf) |
---|
169 | |
---|
170 | file=tropflux_id_env+'shf_oafluxgrid_1985_2009.nc' |
---|
171 | initncdf, file |
---|
172 | shf=read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf=-1*reform(shf) |
---|
173 | |
---|
174 | oaf=swr+lwr+shf+lhf |
---|
175 | help, oaf |
---|
176 | swr=0 & lwr=0 & lhf=0 & shf=0 |
---|
177 | |
---|
178 | fi=tropflux_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' |
---|
179 | initncdf, fi |
---|
180 | swr=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) |
---|
181 | |
---|
182 | fi=tropflux_id_env+"NCEP2_flux_19890101_20090729.nc" |
---|
183 | initncdf, fi |
---|
184 | lwr=read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr=grossemoyenne(lwr, "xy",/nan, box=box) & lwr=reform(lwr) |
---|
185 | lwr=-1*lwr |
---|
186 | |
---|
187 | fi=tropflux_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' |
---|
188 | initncdf, fi |
---|
189 | lhf=read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf=-1*reform(lhf) |
---|
190 | |
---|
191 | fi=tropflux_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' |
---|
192 | initncdf, fi |
---|
193 | shf=read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf=-1*reform(shf) |
---|
194 | |
---|
195 | nce2=swr+lwr+shf+lhf |
---|
196 | help, nce2 |
---|
197 | |
---|
198 | swr=0 & lwr=0 & lhf=0 & shf=0 |
---|
199 | |
---|
200 | file=tropflux_id_env+"ncep1_flux_19890101_20091231.nc" |
---|
201 | initncdf, file |
---|
202 | swr=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) |
---|
203 | lwr=read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr=grossemoyenne(lwr, "xy",/nan, box=box) & lwr=reform(lwr) |
---|
204 | shf=read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf=grossemoyenne(shf, "xy",/nan, box=box) & shf=reform(shf) |
---|
205 | lhf=read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf=grossemoyenne(lhf, "xy",/nan, box=box) & lhf=reform(lhf) |
---|
206 | |
---|
207 | nce1=swr+lwr+shf+lhf |
---|
208 | help, nce1 |
---|
209 | |
---|
210 | ind=where(finite(net)) |
---|
211 | net=net(ind) & era=era(ind) & trop=trop(ind) & oaf=oaf(ind) & nce2=nce2(ind) & nce1=nce1(ind) |
---|
212 | olr=olr(ind) |
---|
213 | |
---|
214 | statistics, net, era, $ |
---|
215 | cor, bias, std, rmsd |
---|
216 | print, cor, bias, std, rmsd |
---|
217 | cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
218 | |
---|
219 | statistics, net, trop, $ |
---|
220 | cor, bias, std, rmsd |
---|
221 | print, cor, bias, std, rmsd |
---|
222 | cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
223 | |
---|
224 | statistics, net, oaf, $ |
---|
225 | cor, bias, std, rmsd |
---|
226 | print, cor, bias, std, rmsd |
---|
227 | cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
228 | |
---|
229 | statistics, net, nce1, $ |
---|
230 | cor, bias, std, rmsd |
---|
231 | print, cor, bias, std, rmsd |
---|
232 | cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
233 | |
---|
234 | statistics, net, nce2, $ |
---|
235 | cor, bias, std, rmsd |
---|
236 | print, cor, bias, std, rmsd |
---|
237 | cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
238 | |
---|
239 | statistics, net, olr, $ |
---|
240 | cor, bias, std, rmsd |
---|
241 | print, cor, bias, std, rmsd |
---|
242 | cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
243 | |
---|
244 | |
---|
245 | splot, 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 |
---|
247 | oplot, [-200,200], [-200,200] |
---|
248 | xyouts, -150,-175, cstat_era, charsize=1. |
---|
249 | |
---|
250 | splot, 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 |
---|
252 | oplot, [-200,200], [-200,200] |
---|
253 | xyouts, -150,-175, cstat_trop, charsize=1. |
---|
254 | |
---|
255 | splot, 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 |
---|
257 | oplot, [-200,200], [-200,200] |
---|
258 | xyouts, -150,-175, cstat_oaf, charsize=1. |
---|
259 | |
---|
260 | splot, 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 |
---|
262 | oplot, [-200,200], [-200,200] |
---|
263 | xyouts, -150,-175, cstat_nce1, charsize=1. |
---|
264 | |
---|
265 | splot, 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 |
---|
267 | oplot, [-200,200], [-200,200] |
---|
268 | xyouts, -150,-175, cstat_nce2, charsize=1. |
---|
269 | |
---|
270 | splot, 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 |
---|
272 | oplot, [-200,200], [-200,200] |
---|
273 | xyouts, -150,-175, cstat_olr, charsize=1. |
---|
274 | |
---|
275 | closeps |
---|
276 | fig=tropflux_od_env+"stratus_validation_net_2001_2002_all_v11.ps" |
---|
277 | spawn, 'mv '+psdir+'idl.ps '+fig |
---|
278 | spawn, 'gv '+fig |
---|
279 | end |
---|