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