1 | ;+ |
---|
2 | ; .. _net_flux_validation_scatter_2000_2007.pro: |
---|
3 | ; |
---|
4 | ; ========================================= |
---|
5 | ; net_flux_validation_scatter_2000_2007.pro |
---|
6 | ; ========================================= |
---|
7 | ; |
---|
8 | ; DESCRIPTION |
---|
9 | ; =========== |
---|
10 | ; |
---|
11 | ; This program will create the following text files with statistics |
---|
12 | ; of respective variables |
---|
13 | ; |
---|
14 | ; .. graphviz:: |
---|
15 | ; |
---|
16 | ; digraph net_flux_validation_scatter_2000_2007 { |
---|
17 | ; graph [ |
---|
18 | ; rankdir="LR", |
---|
19 | ; ] |
---|
20 | ; tropflux_general [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_19890101_20091231.nc"]; |
---|
21 | ; tropflux_dt_swr [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_swr_19890101_20071231_DT_v50.nc"]; |
---|
22 | ; tropflux_nrt_swr [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"]; |
---|
23 | ; ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/NCEP2_flux_19890101_20090729.nc"]; |
---|
24 | ; erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc"]; |
---|
25 | ; shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_oafluxgrid_1985_2008.nc"]; |
---|
26 | ; lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_oafluxgrid_1985_2008.nc"]; |
---|
27 | ; lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lwr_oafluxgrid_1985_2007.nc"]; |
---|
28 | ; ncep1 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/fluxe_ncep1_19890101_20091231.nc"]; |
---|
29 | ; net_nrt_erai [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/net_2000_2007_erai_v50.txt"]; |
---|
30 | ; net_nrt_trop [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/net_2000_2007_trop_v50.txt"]; |
---|
31 | ; net_nrt_ncep [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/net_2000_2007_ncep_v50.txt"]; |
---|
32 | ; net_nrt_ncep1 [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/net_2000_2007_ncep1_v50.txt"]; |
---|
33 | ; net_nrt_tropd [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/net_2000_2007_tropd_v50.txt"]; |
---|
34 | ; |
---|
35 | ; figure [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/net_flux_validation_scatter_2000_2007.ps"]; |
---|
36 | ; |
---|
37 | ; net_flux_validation_scatter_2000_2007 [shape=box, |
---|
38 | ; fontname=Courier, |
---|
39 | ; color=blue, |
---|
40 | ; URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig13/net_flux_validation_scatter_2000_2007.pro", |
---|
41 | ; label="${TROPFLUX}/src/paper01/fig13/net_flux_validation_scatter_2000_2007.pro"]; |
---|
42 | ; |
---|
43 | ; {tropflux_general tropflux_dt_swr tropflux_nrt_swr ncep2 erai shf_oafluxgrid lhf_oafluxgrid lwr_oafluxgrid ncep1} -> {net_flux_validation_scatter_2000_2007} -> {net_nrt_erai net_nrt_trop net_nrt_ncep net_nrt_ncep1 net_nrt_tropd 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 | ; :func:`x_site_location` |
---|
54 | ; :func:`y_site_location` |
---|
55 | ; |
---|
56 | ; :ref:`statistics_3var_v1.pro` |
---|
57 | ; |
---|
58 | ; EXAMPLES |
---|
59 | ; ======== |
---|
60 | ; |
---|
61 | ; :: |
---|
62 | ; |
---|
63 | ; IDL> date1=19890101L |
---|
64 | ; IDL> date2=20091231L |
---|
65 | ; IDL> net_flux_validation_scatter_2000_2007, date1, date2 |
---|
66 | ; |
---|
67 | ; TODO |
---|
68 | ; ==== |
---|
69 | ; |
---|
70 | ; make it work on cratos : missing data TropFlux_swr_19890101_20071231_DT_v50.nc, etc. |
---|
71 | ; |
---|
72 | ; coding rules |
---|
73 | ; |
---|
74 | ; get rid of spwan |
---|
75 | ; |
---|
76 | ; complete description |
---|
77 | ; |
---|
78 | ; handle IO error |
---|
79 | ; |
---|
80 | ; EVOLUTIONS |
---|
81 | ; ========== |
---|
82 | ; |
---|
83 | ; $Id$ |
---|
84 | ; |
---|
85 | ; - fplod 20110420T114953Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
86 | ; |
---|
87 | ; * remove hard coding path |
---|
88 | ; * add graphviz |
---|
89 | ; * externalize functions |
---|
90 | ; |
---|
91 | ; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) |
---|
92 | ; |
---|
93 | ; * minimal header |
---|
94 | ; |
---|
95 | ;- |
---|
96 | pro net_flux_validation_scatter_2000_2007, date1, date2 |
---|
97 | @cm_general |
---|
98 | @cm_project |
---|
99 | reinitplt, /z,/invert |
---|
100 | key_portrait = 1 |
---|
101 | |
---|
102 | openps, FILENAME = 'idl.ps' |
---|
103 | |
---|
104 | sitelist=['8s67e','12s55e', '8s55e', '8s80.5e', '1.5s80.5e', '0n80.5e', '1.5n80.5e', '1.5s90e', $ |
---|
105 | '0n90e', '1.5n90e', '4n90e','8n90e','12n90e', '15n90e', '5s95e', $ |
---|
106 | '8s165e', '8s180w', '8s155w', '8s125w', '8s110w', '8s95w', '5s156e', '5s165e', '5s180w', '5s170w', $ |
---|
107 | '5s155w', '5s140w', '5s125w', '5s110w', '5s95w', '2s156e', '2s165e', '2s180w', '2s170w', '2s155w', '2s140w', $ |
---|
108 | '2s125w', '2s110w', '2s95w', '0n147e', '0n156e', '0n165e', '0n180w', '0n170w', '0n155w', '0n140w', '0n125w', $ |
---|
109 | '0n110w', '0n95w', '2n147e', '2n156e', '2n165e', '2n180w', '2n170w', '2n155w', '2n140w', '2n125w', '2n110w', $ |
---|
110 | '2n95w', '5n147e', '5n156e', '5n165e', '5n170w', '5n155w', '5n140w', '5n125w', '5n110w', '5n95w', $ |
---|
111 | '8n156e', '8n165e', '8n180w', '8n170w', '9n140w', '8n125w', '8n110w', '8n95w', $ |
---|
112 | '0n0e', '0n10w', '0n23w', '0n35w', '10s10w', '12n23w', '12n38w', '14s32w', '15n38w', '19s34w', '20n38w', $ |
---|
113 | '21n23w', '4n23w', '4n38w', '6s10w', '8n38w', '8s30w'] |
---|
114 | |
---|
115 | jda1=date2jul(date1) |
---|
116 | jda2=date2jul(date2) |
---|
117 | jpt=(jda2-jda1+1l) |
---|
118 | time=jda1+dindgen(jpt) & tt=time |
---|
119 | |
---|
120 | ocean='net_flux' |
---|
121 | nsmooth=1. |
---|
122 | file_trop=project_id_env+'TropFlux_19890101_20091231.nc' |
---|
123 | initncdf, file_trop |
---|
124 | shf_trop=read_ncdf("shf", date1, date2, file=file_trop,/nostr) |
---|
125 | lhf_trop=read_ncdf("lhf", date1, date2, file=file_trop,/nostr) |
---|
126 | lwr_trop=read_ncdf("lwr", date1, date2, file=file_trop,/nostr) |
---|
127 | |
---|
128 | file_trop=project_id_env+'TropFlux_swr_19890101_20071231_DT_v50.nc' |
---|
129 | initncdf, file_trop |
---|
130 | swr_dt=read_ncdf("swr", date1, date2, file=file_trop,/nostr) |
---|
131 | trop=swr_dt+(lwr_trop+lhf_trop+shf_trop) |
---|
132 | help, trop |
---|
133 | |
---|
134 | file_trop=project_id_env+'TropFlux_swr_19890101_20091231_NRT_v50.nc' |
---|
135 | initncdf, file_trop |
---|
136 | swr_nrt=read_ncdf("sw", date1-1, date2, file=file_trop,/nostr) |
---|
137 | tropd=swr_nrt+(lwr_trop+lhf_trop+shf_trop) |
---|
138 | help, tropd |
---|
139 | |
---|
140 | file_ncep=project_id_env+'NCEP2_flux_19890101_20090729.nc' |
---|
141 | initncdf, file_ncep |
---|
142 | shf=read_ncdf("shf", date1, date2, file=file_ncep,/nostr) |
---|
143 | lhf=read_ncdf("lhf", date1, date2, file=file_ncep,/nostr) |
---|
144 | lwr=read_ncdf("lwr", date1, date2, file=file_ncep,/nostr) |
---|
145 | swr=read_ncdf("swr", date1, date2, file=file_ncep,/nostr) |
---|
146 | |
---|
147 | ;ncep=swr-(lhf+shf+ref_lw) |
---|
148 | ncep=swr-(lhf+shf+lwr) |
---|
149 | help, ncep |
---|
150 | |
---|
151 | file_erai=project_id_env+'erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc' |
---|
152 | initncdf, file_erai |
---|
153 | shf=read_ncdf("shf", date1, date2, file=file_erai,/nostr) |
---|
154 | lhf=read_ncdf("lhf", date1, date2, file=file_erai,/nostr) |
---|
155 | lwr=read_ncdf("lwr", date1, date2, file=file_erai,/nostr) |
---|
156 | swr=read_ncdf("swr", date1, date2, file=file_erai,/nostr) & swr=-1*swr |
---|
157 | erai=swr-(lwr+lhf+shf) |
---|
158 | help, erai |
---|
159 | |
---|
160 | file_oaf=project_id_env+'shf_oafluxgrid_1985_2008.nc' |
---|
161 | initncdf, file_oaf |
---|
162 | shf=read_ncdf("shf", date1, date2, file=file_oaf,/nostr) |
---|
163 | file_oaf=project_id_env+'lhf_oafluxgrid_1985_2008.nc' |
---|
164 | initncdf, file_oaf |
---|
165 | lhf=read_ncdf("lhf", date1, date2, file=file_oaf,/nostr) |
---|
166 | file_oaf=project_id_env+'lwr_oafluxgrid_1985_2007.nc' |
---|
167 | initncdf, file_oaf |
---|
168 | lwr=read_ncdf("lwr", date1, date2, file=file_oaf,/nostr) |
---|
169 | file_oaf=project_id_env+'swr_oafluxgrid_1985_2007.nc' |
---|
170 | initncdf, file_oaf |
---|
171 | swr=read_ncdf("swr", date1, date2, file=file_oaf,/nostr) & swr_trop=swr |
---|
172 | oafl=swr-(lwr+lhf+shf) |
---|
173 | help, oafl |
---|
174 | |
---|
175 | file=project_id_env+'fluxe_ncep1_19890101_20091231.nc' |
---|
176 | initncdf, file |
---|
177 | lwr=read_ncdf("lwr", date1, date2, file=file,/nostr) |
---|
178 | swr=read_ncdf("swr", date1, date2, file=file,/nostr) |
---|
179 | lhf=read_ncdf("lhf", date1, date2, file=file,/nostr) |
---|
180 | shf=read_ncdf("shf", date1, date2, file=file,/nostr) |
---|
181 | |
---|
182 | ncep1=swr+lwr+shf+lhf |
---|
183 | help, ncep1 |
---|
184 | |
---|
185 | close,/all |
---|
186 | |
---|
187 | fi_net_NRT_erai=project_id_env+'net_2000_2007_erai_v50.txt' |
---|
188 | openw,1,fi_net_NRT_erai |
---|
189 | fi_net_NRT_trop=project_id_env+'net_2000_2007_trop_v50.txt' |
---|
190 | openw,2,fi_net_NRT_trop |
---|
191 | fi_net_NRT_oaflx=project_id_env+'net_2000_2007_oaflx_v50.txt' |
---|
192 | openw,3,fi_net_NRT_oaflx |
---|
193 | fi_net_NRT_ncep=project_id_env+'net_2000_2007_ncep_v50.txt' |
---|
194 | openw,4,fi_net_NRT_ncep |
---|
195 | fi_net_NRT_ncep1=project_id_env+'net_2000_2007_ncep1_v50.txt' |
---|
196 | openw,5,fi_net_NRT_ncep1 |
---|
197 | fi_net_NRT_tropd=project_id_env+'net_2000_2007_tropd_v50.txt' |
---|
198 | openw,6,fi_net_NRT_tropd |
---|
199 | |
---|
200 | |
---|
201 | printf,1, 'x y cor bias std rmsd mean_tao' |
---|
202 | printf,2, 'x y cor bias std rmsd mean_tao' |
---|
203 | printf,3, 'x y cor bias std rmsd mean_tao' |
---|
204 | printf,4, 'x y cor bias std rmsd mean_tao' |
---|
205 | printf,5, 'x y cor bias std rmsd mean_tao' |
---|
206 | printf,6, 'x y cor bias std rmsd mean_tao' |
---|
207 | |
---|
208 | nn=n_elements(sitelist) |
---|
209 | |
---|
210 | for n=0, nn-1 do begin |
---|
211 | |
---|
212 | ;; reading data from mooring |
---|
213 | |
---|
214 | site=sitelist(n) & csite=site |
---|
215 | print, csite |
---|
216 | x=x_site_location(site) |
---|
217 | y=y_site_location(site) |
---|
218 | if (y ge 0. and y le 30.) then y=y+360. |
---|
219 | dx=0.5 & dy=0.5 & box=[y-dy, y+dy, x-dx, x+dx] |
---|
220 | |
---|
221 | read_variables_net_flux, csite,date1,date2,nsmooth, $ |
---|
222 | net |
---|
223 | tao=net & ind=where(finite(tao)) & valid=n_elements(ind) |
---|
224 | |
---|
225 | ;; |
---|
226 | if (valid ge 180. ) then begin |
---|
227 | |
---|
228 | extract_flux_tropflux, oafl, box, $ |
---|
229 | tropflux |
---|
230 | oaflux=tropflux |
---|
231 | |
---|
232 | extract_flux_tropflux, ncep, box, $ |
---|
233 | tropflux |
---|
234 | ncepflux=tropflux |
---|
235 | |
---|
236 | extract_flux_tropflux, erai, box, $ |
---|
237 | tropflux |
---|
238 | eraiflux=tropflux |
---|
239 | |
---|
240 | extract_flux_tropflux, trop, box, $ |
---|
241 | tropflux |
---|
242 | tropflux_new=tropflux |
---|
243 | |
---|
244 | extract_flux_tropflux, ncep1, box, $ |
---|
245 | tropflux |
---|
246 | ncepflux1=tropflux |
---|
247 | |
---|
248 | extract_flux_tropflux, tropd, box, $ |
---|
249 | tropflux |
---|
250 | tropdf=tropflux |
---|
251 | |
---|
252 | ind=where(finite(tao)) & tao=tao(ind) & oaf_net=oaflux(ind) & nce_net=ncepflux(ind) & trop_net=tropflux_new(ind) |
---|
253 | erai_net=eraiflux(ind) & nce1_net=ncepflux1(ind) & tropd_net=tropdf(ind) |
---|
254 | |
---|
255 | mean_tao=total(tao,/nan)/n_elements(ind) |
---|
256 | |
---|
257 | statistics_3var_v1, tao, erai_net, trop_net, $ |
---|
258 | cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 |
---|
259 | |
---|
260 | printf, 1, x, y, cor1, bias1, std1, rmsd1, mean_tao, format='(f6.2, 3x, f6.2, 3x, f4.2,3x,f7.2,3x,f4.2,3x,f6.2,3x,f7.2)' |
---|
261 | printf, 2, x, y, cor2, bias2, std2, rmsd2, mean_tao, format='(f6.2, 3x, f6.2, 3x, f4.2,3x,f7.2,3x,f4.2,3x,f6.2,3x,f7.2)' |
---|
262 | |
---|
263 | statistics_3var_v1, tao,oaf_net , nce_net, $ |
---|
264 | cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 |
---|
265 | printf, 3, x, y, cor1, bias1, std1, rmsd1, mean_tao,format='(f6.2, 3x, f6.2, 3x, f4.2,3x,f7.2,3x,f4.2,3x,f6.2,3x,f7.2)' |
---|
266 | printf, 4, x, y, cor2, bias2, std2, rmsd2, mean_tao,format='(f6.2, 3x, f6.2, 3x, f4.2,3x,f7.2,3x,f4.2,3x,f6.2,3x,f7.2)' |
---|
267 | |
---|
268 | statistics_3var_v1, tao,nce1_net , tropd_net, $ |
---|
269 | cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 |
---|
270 | printf, 5, x, y, cor1, bias1, std1, rmsd1, mean_tao,format='(f6.2, 3x, f6.2, 3x, f4.2,3x,f7.2,3x,f4.2,3x,f6.2,3x,f7.2)' |
---|
271 | printf, 6, x, y, cor2, bias2, std2, rmsd2, mean_tao,format='(f6.2, 3x, f6.2, 3x, f4.2,3x,f7.2,3x,f4.2,3x,f6.2,3x,f7.2)' |
---|
272 | |
---|
273 | endif |
---|
274 | endfor |
---|
275 | |
---|
276 | close,/all |
---|
277 | |
---|
278 | fi_net_NRT_erai=project_id_env+'net_2000_2007_erai_v50.txt' |
---|
279 | res=read_ascii(fi_net_NRT_erai,data_start=1) |
---|
280 | ff=res.field1 |
---|
281 | cor_erai=reform(ff(2,*)) |
---|
282 | bias_erai=reform(ff(3,*)) |
---|
283 | std_erai=reform(ff(4,*)) |
---|
284 | rmsd_erai=reform(ff(5,*)) |
---|
285 | mean_tao=reform(ff(6,*)) |
---|
286 | mean_erai=mean_tao+bias_erai |
---|
287 | |
---|
288 | ind=where(finite(cor_erai)) & cor=total(cor_erai,/nan)/n_elements(ind) |
---|
289 | ind=where(finite(bias_erai)) & bias=total(bias_erai,/nan)/n_elements(ind) |
---|
290 | ind=where(finite(rmsd_erai)) & rmsd=total(rmsd_erai,/nan)/n_elements(ind) |
---|
291 | ind=where(finite(std_erai)) & std=total(std_erai,/nan)/n_elements(ind) |
---|
292 | |
---|
293 | print, '' |
---|
294 | print, 'ERAI' |
---|
295 | print, cor, bias, std, rmsd |
---|
296 | cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
297 | |
---|
298 | splot, mean_tao, mean_erai, charsize=1.1, title='NET_Flux - TAO Vs ERAI', $ |
---|
299 | xrange=[-100,200], yrange=[-100,200], small=[2,3,1], psym=2, xmin=1,ymin=1 |
---|
300 | xyouts, -50,-40, cstat, charsize=1. |
---|
301 | xyouts, -40,-80, 'cor bias std rmsd', charsize=1. |
---|
302 | |
---|
303 | x=mean_tao & y=mean_erai |
---|
304 | ab=linfit(x,y,yfit=yfit) |
---|
305 | a=float(ab(0)) & b=float(ab(1)) & print, a,b |
---|
306 | oplot, x, yfit, thick=2, color=250 |
---|
307 | oplot, [-100,200], [-100,200] |
---|
308 | |
---|
309 | |
---|
310 | fi_net_NRT_trop=project_id_env+'net_2000_2007_trop_v50.txt' |
---|
311 | res=read_ascii(fi_net_NRT_trop,data_start=1) |
---|
312 | ff=res.field1 |
---|
313 | cor_trop=reform(ff(2,*)) |
---|
314 | bias_trop=reform(ff(3,*)) |
---|
315 | std_trop=reform(ff(4,*)) |
---|
316 | rmsd_trop=reform(ff(5,*)) |
---|
317 | mean_tao=reform(ff(6,*)) |
---|
318 | mean_trop=mean_tao+bias_trop |
---|
319 | |
---|
320 | ind=where(finite(cor_trop)) & cor=total(cor_trop,/nan)/n_elements(ind) |
---|
321 | ind=where(finite(bias_trop)) & bias=total(bias_trop,/nan)/n_elements(ind) |
---|
322 | ind=where(finite(rmsd_trop)) & rmsd=total(rmsd_trop,/nan)/n_elements(ind) |
---|
323 | ind=where(finite(std_trop)) & std=total(std_trop,/nan)/n_elements(ind) |
---|
324 | |
---|
325 | print, '' |
---|
326 | print, 'TropFlux' |
---|
327 | print, cor, bias, std, rmsd |
---|
328 | cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
329 | |
---|
330 | splot, mean_tao, mean_trop, charsize=1.1, title='NET_Flux - TAO Vs TropFlux', $ |
---|
331 | xrange=[-100,200], yrange=[-100,200], small=[2,3,2],/noer, psym=2, xmin=1,ymin=1 |
---|
332 | xyouts, -50,-40, cstat, charsize=1. |
---|
333 | xyouts, -40,-80, 'cor bias std rmsd', charsize=1. |
---|
334 | |
---|
335 | x=mean_tao & y=mean_trop |
---|
336 | ab=linfit(x,y,yfit=yfit) |
---|
337 | a=float(ab(0)) & b=float(ab(1)) & print, a,b |
---|
338 | oplot, x, yfit, thick=2, color=250 |
---|
339 | oplot, [-100,200], [-100,200] |
---|
340 | |
---|
341 | |
---|
342 | fi_net_NRT_oaflx=project_id_env+'net_2000_2007_oaflx_v50.txt' |
---|
343 | res=read_ascii(fi_net_NRT_oaflx,data_start=1) |
---|
344 | ff=res.field1 |
---|
345 | cor_oaf=reform(ff(2,*)) |
---|
346 | bias_oaf=reform(ff(3,*)) |
---|
347 | std_oaf=reform(ff(4,*)) |
---|
348 | rmsd_oaf=reform(ff(5,*)) |
---|
349 | mean_tao=reform(ff(6,*)) |
---|
350 | mean_oaf=mean_tao+bias_oaf |
---|
351 | |
---|
352 | ind=where(finite(cor_oaf)) & cor=total(cor_oaf,/nan)/n_elements(ind) |
---|
353 | ind=where(finite(bias_oaf)) & bias=total(bias_oaf,/nan)/n_elements(ind) |
---|
354 | ind=where(finite(rmsd_oaf)) & rmsd=total(rmsd_oaf,/nan)/n_elements(ind) |
---|
355 | ind=where(finite(std_oaf)) & std=total(std_oaf,/nan)/n_elements(ind) |
---|
356 | |
---|
357 | print, '' |
---|
358 | print, 'OAFlux' |
---|
359 | print, cor, bias, std, rmsd |
---|
360 | cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
361 | |
---|
362 | splot, mean_tao, mean_oaf, charsize=1.1, title='NET_Flux - TAO Vs OAFlux', $ |
---|
363 | xrange=[-100,200], yrange=[-100,200], small=[2,3,3],/noer, psym=2, xmin=1,ymin=1 |
---|
364 | x=mean_tao & y=mean_oaf |
---|
365 | |
---|
366 | xyouts, -50,-40, cstat, charsize=1. |
---|
367 | xyouts, -40,-80, 'cor bias std rmsd', charsize=1. |
---|
368 | |
---|
369 | ab=linfit(x,y,yfit=yfit) |
---|
370 | a=float(ab(0)) & b=float(ab(1)) & print, a,b |
---|
371 | oplot, x, yfit, thick=2, color=250 |
---|
372 | oplot, [-100,200], [-100,200] |
---|
373 | |
---|
374 | |
---|
375 | fi_net_NRT_ncep=project_id_env+'net_2000_2007_ncep_v50.txt' |
---|
376 | res=read_ascii(fi_net_NRT_ncep,data_start=1) |
---|
377 | ff=res.field1 |
---|
378 | cor_nce=reform(ff(2,*)) |
---|
379 | bias_nce=reform(ff(3,*)) |
---|
380 | std_nce=reform(ff(4,*)) |
---|
381 | rmsd_nce=reform(ff(5,*)) |
---|
382 | mean_tao=reform(ff(6,*)) |
---|
383 | mean_nce=mean_tao+bias_nce |
---|
384 | |
---|
385 | ind=where(finite(cor_nce)) & cor=total(cor_nce,/nan)/n_elements(ind) |
---|
386 | ind=where(finite(bias_nce)) & bias=total(bias_nce,/nan)/n_elements(ind) |
---|
387 | ind=where(finite(rmsd_nce)) & rmsd=total(rmsd_nce,/nan)/n_elements(ind) |
---|
388 | ind=where(finite(std_nce)) & std=total(std_nce,/nan)/n_elements(ind) |
---|
389 | |
---|
390 | print, '' |
---|
391 | print, 'NCEP2' |
---|
392 | print, cor, bias, std, rmsd |
---|
393 | cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
394 | |
---|
395 | splot, mean_tao, mean_nce, charsize=1.1, title='NET_Flux - TAO Vs NCEP2', $ |
---|
396 | xrange=[-100,200], yrange=[-100,200], small=[2,3,4],/noer, psym=2, xmin=1,ymin=1 |
---|
397 | xyouts, -50,-40, cstat, charsize=1. |
---|
398 | xyouts, -40,-80, 'cor bias std rmsd', charsize=1. |
---|
399 | |
---|
400 | x=mean_tao & y=mean_nce |
---|
401 | ab=linfit(x,y,yfit=yfit) |
---|
402 | a=float(ab(0)) & b=float(ab(1)) & print, a,b |
---|
403 | oplot, x, yfit, thick=2, color=250 |
---|
404 | oplot, [-100,200], [-100,200] |
---|
405 | |
---|
406 | |
---|
407 | fi_net_NRT_ncep1=project_id_env+'net_2000_2007_ncep1_v50.txt' |
---|
408 | res=read_ascii(fi_net_NRT_ncep1,data_start=1) |
---|
409 | ff=res.field1 |
---|
410 | cor_nce=reform(ff(2,*)) |
---|
411 | bias_nce=reform(ff(3,*)) |
---|
412 | std_nce=reform(ff(4,*)) |
---|
413 | rmsd_nce=reform(ff(5,*)) |
---|
414 | mean_tao=reform(ff(6,*)) |
---|
415 | mean_nce=mean_tao+bias_nce |
---|
416 | |
---|
417 | ind=where(finite(cor_nce)) & cor=total(cor_nce,/nan)/n_elements(ind) |
---|
418 | ind=where(finite(bias_nce)) & bias=total(bias_nce,/nan)/n_elements(ind) |
---|
419 | ind=where(finite(rmsd_nce)) & rmsd=total(rmsd_nce,/nan)/n_elements(ind) |
---|
420 | ind=where(finite(std_nce)) & std=total(std_nce,/nan)/n_elements(ind) |
---|
421 | |
---|
422 | print, '' |
---|
423 | print, 'NCEP2' |
---|
424 | print, cor, bias, std, rmsd |
---|
425 | cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
426 | |
---|
427 | splot, mean_tao, mean_nce, charsize=1.1, title='NET_Flux - TAO Vs NCEP2', $ |
---|
428 | xrange=[-100,200], yrange=[-100,200], small=[2,3,5],/noer, psym=2, xmin=1,ymin=1 |
---|
429 | xyouts, -50,-40, cstat, charsize=1. |
---|
430 | xyouts, -40,-80, 'cor bias std rmsd', charsize=1. |
---|
431 | |
---|
432 | x=mean_tao & y=mean_nce |
---|
433 | ab=linfit(x,y,yfit=yfit) |
---|
434 | a=float(ab(0)) & b=float(ab(1)) & print, a,b |
---|
435 | oplot, x, yfit, thick=2, color=250 |
---|
436 | oplot, [-100,200], [-100,200] |
---|
437 | |
---|
438 | |
---|
439 | fi_net_NRT_tropd=project_id_env+'net_2000_2007_tropd_v50.txt' |
---|
440 | res=read_ascii(fi_net_NRT_tropd,data_start=1) |
---|
441 | ff=res.field1 |
---|
442 | cor_tropd=reform(ff(2,*)) |
---|
443 | bias_tropd=reform(ff(3,*)) |
---|
444 | std_tropd=reform(ff(4,*)) |
---|
445 | rmsd_tropd=reform(ff(5,*)) |
---|
446 | mean_tao=reform(ff(6,*)) |
---|
447 | mean_tropd=mean_tao+bias_tropd |
---|
448 | |
---|
449 | ind=where(finite(cor_tropd)) & cor=total(cor_tropd,/nan)/n_elements(ind) |
---|
450 | ind=where(finite(bias_tropd)) & bias=total(bias_tropd,/nan)/n_elements(ind) |
---|
451 | ind=where(finite(rmsd_tropd)) & rmsd=total(rmsd_tropd,/nan)/n_elements(ind) |
---|
452 | ind=where(finite(std_tropd)) & std=total(std_tropd,/nan)/n_elements(ind) |
---|
453 | |
---|
454 | print, '' |
---|
455 | print, 'TropFlux_NRT' |
---|
456 | print, cor, bias, std, rmsd |
---|
457 | cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') |
---|
458 | |
---|
459 | splot, mean_tao, mean_tropd, charsize=1.1, title='NET_Flux - TAO Vs TropFlux_NRT', $ |
---|
460 | xrange=[-100,200], yrange=[-100,200], small=[2,3,6],/noer, psym=2, xmin=1,ymin=1 |
---|
461 | xyouts, -50,-40, cstat, charsize=1. |
---|
462 | xyouts, -40,-80, 'cor bias std rmsd', charsize=1. |
---|
463 | |
---|
464 | x=mean_tao & y=mean_tropd |
---|
465 | ab=linfit(x,y,yfit=yfit) |
---|
466 | a=float(ab(0)) & b=float(ab(1)) & print, a,b |
---|
467 | oplot, x, yfit, thick=2, color=250 |
---|
468 | oplot, [-100,200], [-100,200] |
---|
469 | |
---|
470 | closeps |
---|
471 | |
---|
472 | fig=project_od_env+'net_flux_validation_scatter_2000_2007.ps' |
---|
473 | spawn, 'mv '+psdir+'idl.ps '+fig |
---|
474 | spawn, 'gv '+fig |
---|
475 | end |
---|