source: trunk/src/paper01/fig13/net_flux_validation_scatter_2000_2007.pro @ 81

Last change on this file since 81 was 50, checked in by pinsard, 13 years ago

replace TROPFLUX by PROJECT

  • Property svn:executable set to *
File size: 16.9 KB
Line 
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;-
96pro net_flux_validation_scatter_2000_2007, date1, date2
97@cm_general
98@cm_project
99reinitplt, /z,/invert
100key_portrait = 1
101
102openps, FILENAME = 'idl.ps'
103
104sitelist=['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
115jda1=date2jul(date1)
116jda2=date2jul(date2)
117jpt=(jda2-jda1+1l)
118time=jda1+dindgen(jpt) & tt=time
119
120ocean='net_flux'
121nsmooth=1.
122file_trop=project_id_env+'TropFlux_19890101_20091231.nc'
123initncdf, file_trop
124shf_trop=read_ncdf("shf", date1, date2, file=file_trop,/nostr)
125lhf_trop=read_ncdf("lhf", date1, date2, file=file_trop,/nostr)
126lwr_trop=read_ncdf("lwr", date1, date2, file=file_trop,/nostr)
127
128file_trop=project_id_env+'TropFlux_swr_19890101_20071231_DT_v50.nc'
129initncdf, file_trop
130swr_dt=read_ncdf("swr", date1, date2, file=file_trop,/nostr)
131trop=swr_dt+(lwr_trop+lhf_trop+shf_trop)
132help, trop
133
134file_trop=project_id_env+'TropFlux_swr_19890101_20091231_NRT_v50.nc'
135initncdf, file_trop
136swr_nrt=read_ncdf("sw", date1-1, date2, file=file_trop,/nostr)
137tropd=swr_nrt+(lwr_trop+lhf_trop+shf_trop)
138help, tropd
139
140file_ncep=project_id_env+'NCEP2_flux_19890101_20090729.nc'
141initncdf, file_ncep
142shf=read_ncdf("shf", date1, date2, file=file_ncep,/nostr)
143lhf=read_ncdf("lhf", date1, date2, file=file_ncep,/nostr)
144lwr=read_ncdf("lwr", date1, date2, file=file_ncep,/nostr)
145swr=read_ncdf("swr", date1, date2, file=file_ncep,/nostr)
146
147;ncep=swr-(lhf+shf+ref_lw)
148ncep=swr-(lhf+shf+lwr)
149help, ncep
150
151file_erai=project_id_env+'erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc'
152initncdf, file_erai
153shf=read_ncdf("shf", date1, date2, file=file_erai,/nostr)
154lhf=read_ncdf("lhf", date1, date2, file=file_erai,/nostr)
155lwr=read_ncdf("lwr", date1, date2, file=file_erai,/nostr)
156swr=read_ncdf("swr", date1, date2, file=file_erai,/nostr) & swr=-1*swr
157erai=swr-(lwr+lhf+shf)
158help, erai
159
160file_oaf=project_id_env+'shf_oafluxgrid_1985_2008.nc'
161initncdf, file_oaf
162shf=read_ncdf("shf", date1, date2, file=file_oaf,/nostr)
163file_oaf=project_id_env+'lhf_oafluxgrid_1985_2008.nc'
164initncdf, file_oaf
165lhf=read_ncdf("lhf", date1, date2, file=file_oaf,/nostr)
166file_oaf=project_id_env+'lwr_oafluxgrid_1985_2007.nc'
167initncdf, file_oaf
168lwr=read_ncdf("lwr", date1, date2, file=file_oaf,/nostr)
169file_oaf=project_id_env+'swr_oafluxgrid_1985_2007.nc'
170initncdf, file_oaf
171swr=read_ncdf("swr", date1, date2, file=file_oaf,/nostr) & swr_trop=swr
172oafl=swr-(lwr+lhf+shf)
173help, oafl
174
175file=project_id_env+'fluxe_ncep1_19890101_20091231.nc'
176initncdf, file
177lwr=read_ncdf("lwr", date1, date2, file=file,/nostr)
178swr=read_ncdf("swr", date1, date2, file=file,/nostr)
179lhf=read_ncdf("lhf", date1, date2, file=file,/nostr)
180shf=read_ncdf("shf", date1, date2, file=file,/nostr)
181
182ncep1=swr+lwr+shf+lhf
183help, ncep1
184
185close,/all
186
187fi_net_NRT_erai=project_id_env+'net_2000_2007_erai_v50.txt'
188openw,1,fi_net_NRT_erai
189fi_net_NRT_trop=project_id_env+'net_2000_2007_trop_v50.txt'
190openw,2,fi_net_NRT_trop
191fi_net_NRT_oaflx=project_id_env+'net_2000_2007_oaflx_v50.txt'
192openw,3,fi_net_NRT_oaflx
193fi_net_NRT_ncep=project_id_env+'net_2000_2007_ncep_v50.txt'
194openw,4,fi_net_NRT_ncep
195fi_net_NRT_ncep1=project_id_env+'net_2000_2007_ncep1_v50.txt'
196openw,5,fi_net_NRT_ncep1
197fi_net_NRT_tropd=project_id_env+'net_2000_2007_tropd_v50.txt'
198openw,6,fi_net_NRT_tropd
199
200
201printf,1, 'x     y      cor    bias     std     rmsd      mean_tao'
202printf,2, 'x     y      cor    bias     std     rmsd      mean_tao'
203printf,3, 'x     y      cor    bias     std     rmsd      mean_tao'
204printf,4, 'x     y      cor    bias     std     rmsd      mean_tao'
205printf,5, 'x     y      cor    bias     std     rmsd      mean_tao'
206printf,6, 'x     y      cor    bias     std     rmsd      mean_tao'
207
208nn=n_elements(sitelist)
209
210for 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
274endfor
275
276close,/all
277
278fi_net_NRT_erai=project_id_env+'net_2000_2007_erai_v50.txt'
279res=read_ascii(fi_net_NRT_erai,data_start=1)
280ff=res.field1
281cor_erai=reform(ff(2,*))
282bias_erai=reform(ff(3,*))
283std_erai=reform(ff(4,*))
284rmsd_erai=reform(ff(5,*))
285mean_tao=reform(ff(6,*))
286mean_erai=mean_tao+bias_erai
287
288ind=where(finite(cor_erai)) & cor=total(cor_erai,/nan)/n_elements(ind)
289ind=where(finite(bias_erai)) & bias=total(bias_erai,/nan)/n_elements(ind)
290ind=where(finite(rmsd_erai)) & rmsd=total(rmsd_erai,/nan)/n_elements(ind)
291ind=where(finite(std_erai)) & std=total(std_erai,/nan)/n_elements(ind)
292
293print, ''
294print, 'ERAI'
295print, cor, bias, std, rmsd
296cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
297
298splot, 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
300xyouts, -50,-40, cstat, charsize=1.
301xyouts, -40,-80, 'cor    bias    std    rmsd', charsize=1.
302
303x=mean_tao & y=mean_erai
304ab=linfit(x,y,yfit=yfit)
305a=float(ab(0)) & b=float(ab(1)) & print, a,b
306oplot, x, yfit, thick=2, color=250
307oplot, [-100,200], [-100,200]
308
309
310fi_net_NRT_trop=project_id_env+'net_2000_2007_trop_v50.txt'
311res=read_ascii(fi_net_NRT_trop,data_start=1)
312ff=res.field1
313cor_trop=reform(ff(2,*))
314bias_trop=reform(ff(3,*))
315std_trop=reform(ff(4,*))
316rmsd_trop=reform(ff(5,*))
317mean_tao=reform(ff(6,*))
318mean_trop=mean_tao+bias_trop
319
320ind=where(finite(cor_trop)) & cor=total(cor_trop,/nan)/n_elements(ind)
321ind=where(finite(bias_trop)) & bias=total(bias_trop,/nan)/n_elements(ind)
322ind=where(finite(rmsd_trop)) & rmsd=total(rmsd_trop,/nan)/n_elements(ind)
323ind=where(finite(std_trop)) & std=total(std_trop,/nan)/n_elements(ind)
324
325print, ''
326print, 'TropFlux'
327print, cor, bias, std, rmsd
328cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
329
330splot, 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
332xyouts, -50,-40, cstat, charsize=1.
333xyouts, -40,-80, 'cor    bias    std    rmsd', charsize=1.
334
335x=mean_tao & y=mean_trop
336ab=linfit(x,y,yfit=yfit)
337a=float(ab(0)) & b=float(ab(1)) & print, a,b
338oplot, x, yfit, thick=2, color=250
339oplot, [-100,200], [-100,200]
340
341
342fi_net_NRT_oaflx=project_id_env+'net_2000_2007_oaflx_v50.txt'
343res=read_ascii(fi_net_NRT_oaflx,data_start=1)
344ff=res.field1
345cor_oaf=reform(ff(2,*))
346bias_oaf=reform(ff(3,*))
347std_oaf=reform(ff(4,*))
348rmsd_oaf=reform(ff(5,*))
349mean_tao=reform(ff(6,*))
350mean_oaf=mean_tao+bias_oaf
351
352ind=where(finite(cor_oaf)) & cor=total(cor_oaf,/nan)/n_elements(ind)
353ind=where(finite(bias_oaf)) & bias=total(bias_oaf,/nan)/n_elements(ind)
354ind=where(finite(rmsd_oaf)) & rmsd=total(rmsd_oaf,/nan)/n_elements(ind)
355ind=where(finite(std_oaf)) & std=total(std_oaf,/nan)/n_elements(ind)
356
357print, ''
358print, 'OAFlux'
359print, cor, bias, std, rmsd
360cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
361
362splot, 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
364x=mean_tao & y=mean_oaf
365
366xyouts, -50,-40, cstat, charsize=1.
367xyouts, -40,-80, 'cor    bias    std    rmsd', charsize=1.
368
369ab=linfit(x,y,yfit=yfit)
370a=float(ab(0)) & b=float(ab(1)) & print, a,b
371oplot, x, yfit, thick=2, color=250
372oplot, [-100,200], [-100,200]
373
374
375fi_net_NRT_ncep=project_id_env+'net_2000_2007_ncep_v50.txt'
376res=read_ascii(fi_net_NRT_ncep,data_start=1)
377ff=res.field1
378cor_nce=reform(ff(2,*))
379bias_nce=reform(ff(3,*))
380std_nce=reform(ff(4,*))
381rmsd_nce=reform(ff(5,*))
382mean_tao=reform(ff(6,*))
383mean_nce=mean_tao+bias_nce
384
385ind=where(finite(cor_nce)) & cor=total(cor_nce,/nan)/n_elements(ind)
386ind=where(finite(bias_nce)) & bias=total(bias_nce,/nan)/n_elements(ind)
387ind=where(finite(rmsd_nce)) & rmsd=total(rmsd_nce,/nan)/n_elements(ind)
388ind=where(finite(std_nce)) & std=total(std_nce,/nan)/n_elements(ind)
389
390print, ''
391print, 'NCEP2'
392print, cor, bias, std, rmsd
393cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
394
395splot, 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
397xyouts, -50,-40, cstat, charsize=1.
398xyouts, -40,-80, 'cor    bias    std    rmsd', charsize=1.
399
400x=mean_tao & y=mean_nce
401ab=linfit(x,y,yfit=yfit)
402a=float(ab(0)) & b=float(ab(1)) & print, a,b
403oplot, x, yfit, thick=2, color=250
404oplot, [-100,200], [-100,200]
405
406
407fi_net_NRT_ncep1=project_id_env+'net_2000_2007_ncep1_v50.txt'
408res=read_ascii(fi_net_NRT_ncep1,data_start=1)
409ff=res.field1
410cor_nce=reform(ff(2,*))
411bias_nce=reform(ff(3,*))
412std_nce=reform(ff(4,*))
413rmsd_nce=reform(ff(5,*))
414mean_tao=reform(ff(6,*))
415mean_nce=mean_tao+bias_nce
416
417ind=where(finite(cor_nce)) & cor=total(cor_nce,/nan)/n_elements(ind)
418ind=where(finite(bias_nce)) & bias=total(bias_nce,/nan)/n_elements(ind)
419ind=where(finite(rmsd_nce)) & rmsd=total(rmsd_nce,/nan)/n_elements(ind)
420ind=where(finite(std_nce)) & std=total(std_nce,/nan)/n_elements(ind)
421
422print, ''
423print, 'NCEP2'
424print, cor, bias, std, rmsd
425cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
426
427splot, 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
429xyouts, -50,-40, cstat, charsize=1.
430xyouts, -40,-80, 'cor    bias    std    rmsd', charsize=1.
431
432x=mean_tao & y=mean_nce
433ab=linfit(x,y,yfit=yfit)
434a=float(ab(0)) & b=float(ab(1)) & print, a,b
435oplot, x, yfit, thick=2, color=250
436oplot, [-100,200], [-100,200]
437
438
439fi_net_NRT_tropd=project_id_env+'net_2000_2007_tropd_v50.txt'
440res=read_ascii(fi_net_NRT_tropd,data_start=1)
441ff=res.field1
442cor_tropd=reform(ff(2,*))
443bias_tropd=reform(ff(3,*))
444std_tropd=reform(ff(4,*))
445rmsd_tropd=reform(ff(5,*))
446mean_tao=reform(ff(6,*))
447mean_tropd=mean_tao+bias_tropd
448
449ind=where(finite(cor_tropd)) & cor=total(cor_tropd,/nan)/n_elements(ind)
450ind=where(finite(bias_tropd)) & bias=total(bias_tropd,/nan)/n_elements(ind)
451ind=where(finite(rmsd_tropd)) & rmsd=total(rmsd_tropd,/nan)/n_elements(ind)
452ind=where(finite(std_tropd)) & std=total(std_tropd,/nan)/n_elements(ind)
453
454print, ''
455print, 'TropFlux_NRT'
456print, cor, bias, std, rmsd
457cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
458
459splot, 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
461xyouts, -50,-40, cstat, charsize=1.
462xyouts, -40,-80, 'cor    bias    std    rmsd', charsize=1.
463
464x=mean_tao & y=mean_tropd
465ab=linfit(x,y,yfit=yfit)
466a=float(ab(0)) & b=float(ab(1)) & print, a,b
467oplot, x, yfit, thick=2, color=250
468oplot, [-100,200], [-100,200]
469
470closeps
471
472fig=project_od_env+'net_flux_validation_scatter_2000_2007.ps'
473spawn, 'mv '+psdir+'idl.ps '+fig
474spawn, 'gv '+fig
475end
Note: See TracBrowser for help on using the repository browser.