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

Last change on this file since 174 was 174, checked in by pinsard, 12 years ago

bunch of new functions

  • Property svn:executable set to *
  • Property svn:keywords set to URL
File size: 17.2 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 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;-
114pro net_flux_validation_scatter_2000_2007, date1, date2
115@cm_general
116@cm_project
117reinitplt, /z,/invert
118key_portrait = 1
119;
120openps, FILENAME = project_od_env+'net_flux_validation_scatter_2000_2007.ps'
121;
122sitelist=['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;
133jda1=date2jul(date1)
134jda2=date2jul(date2)
135jpt=(jda2-jda1+1l)
136time=jda1+dindgen(jpt)
137;
138ocean='net_flux'
139nsmooth=1.
140file_trop=project_od_env+'TropFlux_19890101_20091231.nc'
141initncdf, file_trop
142shf_trop=read_ncdf("shf", date1, date2, file=file_trop,/nostr)
143lhf_trop=read_ncdf("lhf", date1, date2, file=file_trop,/nostr)
144lwr_trop=read_ncdf("lwr", date1, date2, file=file_trop,/nostr)
145;
146file_trop=project_od_env+'TropFlux_swr_19890101_20071231_DT.nc'
147initncdf, file_trop
148swr_dt=read_ncdf("swr", date1, date2, file=file_trop,/nostr)
149trop=swr_dt+(lwr_trop+lhf_trop+shf_trop)
150help, trop
151;
152file_trop=project_od_env+'TropFlux_swr_19890101_20091231_NRT.nc'
153initncdf, file_trop
154swr_nrt=read_ncdf("sw", date1-1, date2, file=file_trop,/nostr)
155tropd=swr_nrt+(lwr_trop+lhf_trop+shf_trop)
156help, tropd
157;
158file_ncep=project_od_env+'NCEP2_flux_19890101_20090729.nc'
159initncdf, file_ncep
160shf=read_ncdf("shf", date1, date2, file=file_ncep,/nostr)
161lhf=read_ncdf("lhf", date1, date2, file=file_ncep,/nostr)
162lwr=read_ncdf("lwr", date1, date2, file=file_ncep,/nostr)
163swr=read_ncdf("swr", date1, date2, file=file_ncep,/nostr)
164;
165;ncep=swr-(lhf+shf+ref_lw)
166ncep=swr-(lhf+shf+lwr)
167help, ncep
168;
169file_erai=project_od_env+'erai_fluxes_19930101_20090801_TROP_oafluxgrid.nc'
170initncdf, file_erai
171shf=read_ncdf("shf", date1, date2, file=file_erai,/nostr)
172lhf=read_ncdf("lhf", date1, date2, file=file_erai,/nostr)
173lwr=read_ncdf("lwr", date1, date2, file=file_erai,/nostr)
174swr=read_ncdf("swr", date1, date2, file=file_erai,/nostr)
175swr=-1*swr
176erai=swr-(lwr+lhf+shf)
177help, erai
178;
179file_oaf=project_od_env+'shf_oafluxgrid_1985_2008.nc'
180initncdf, file_oaf
181shf=read_ncdf("shf", date1, date2, file=file_oaf,/nostr)
182file_oaf=project_od_env+'lhf_oafluxgrid_1985_2008.nc'
183initncdf, file_oaf
184lhf=read_ncdf("lhf", date1, date2, file=file_oaf,/nostr)
185file_oaf=project_od_env+'lwr_oafluxgrid_1985_2007.nc'
186initncdf, file_oaf
187lwr=read_ncdf("lwr", date1, date2, file=file_oaf,/nostr)
188file_oaf=project_od_env+'swr_oafluxgrid_1985_2007.nc'
189initncdf, file_oaf
190swr=read_ncdf("swr", date1, date2, file=file_oaf,/nostr)
191swr_trop=swr
192oafl=swr-(lwr+lhf+shf)
193help, oafl
194;
195file=project_od_env+'fluxe_ncep1_19890101_20091231.nc'
196initncdf, file
197lwr=read_ncdf("lwr", date1, date2, file=file,/nostr)
198swr=read_ncdf("swr", date1, date2, file=file,/nostr)
199lhf=read_ncdf("lhf", date1, date2, file=file,/nostr)
200shf=read_ncdf("shf", date1, date2, file=file,/nostr)
201;
202ncep1=swr+lwr+shf+lhf
203help, ncep1
204;
205close,/all
206;
207fi_net_NRT_erai=project_od_env+'net_2000_2007_erai.txt'
208openw,1,fi_net_NRT_erai
209fi_net_NRT_trop=project_od_env+'net_2000_2007_trop.txt'
210openw,2,fi_net_NRT_trop
211fi_net_NRT_oaflx=project_od_env+'net_2000_2007_oaflx.txt'
212openw,3,fi_net_NRT_oaflx
213fi_net_NRT_ncep=project_od_env+'net_2000_2007_ncep.txt'
214openw,4,fi_net_NRT_ncep
215fi_net_NRT_ncep1=project_od_env+'net_2000_2007_ncep1.txt'
216openw,5,fi_net_NRT_ncep1
217fi_net_NRT_tropd=project_od_env+'net_2000_2007_tropd.txt'
218openw,6,fi_net_NRT_tropd
219;
220printf,1, 'x     y      cor    bias     std     rmsd      mean_tao'
221printf,2, 'x     y      cor    bias     std     rmsd      mean_tao'
222printf,3, 'x     y      cor    bias     std     rmsd      mean_tao'
223printf,4, 'x     y      cor    bias     std     rmsd      mean_tao'
224printf,5, 'x     y      cor    bias     std     rmsd      mean_tao'
225printf,6, 'x     y      cor    bias     std     rmsd      mean_tao'
226;
227nn=n_elements(sitelist)
228;
229for 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
303endfor
304;
305close,/all
306;
307fi_net_NRT_erai=project_od_env+'net_2000_2007_erai.txt'
308res=read_ascii(fi_net_NRT_erai,data_start=1)
309ff=res.field1
310cor_erai=reform(ff(2,*))
311bias_erai=reform(ff(3,*))
312std_erai=reform(ff(4,*))
313rmsd_erai=reform(ff(5,*))
314mean_tao=reform(ff(6,*))
315mean_erai=mean_tao+bias_erai
316;
317ind=where(finite(cor_erai))
318cor=total(cor_erai,/nan)/n_elements(ind)
319ind=where(finite(bias_erai))
320bias=total(bias_erai,/nan)/n_elements(ind)
321ind=where(finite(rmsd_erai))
322rmsd=total(rmsd_erai,/nan)/n_elements(ind)
323ind=where(finite(std_erai))
324std=total(std_erai,/nan)/n_elements(ind)
325;
326print, ''
327print, 'ERAI'
328print, cor, bias, std, rmsd
329cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
330;
331splot, 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
333xyouts, -50,-40, cstat, charsize=1.
334xyouts, -40,-80, 'cor    bias    std    rmsd', charsize=1.
335;
336x=mean_tao
337y=mean_erai
338ab=linfit(x,y,yfit=yfit)
339a=float(ab(0))
340b=float(ab(1))
341print, a,b
342oplot, x, yfit, thick=2, color=250
343oplot, [-100,200], [-100,200]
344;
345fi_net_NRT_trop=project_od_env+'net_2000_2007_trop.txt'
346res=read_ascii(fi_net_NRT_trop,data_start=1)
347ff=res.field1
348cor_trop=reform(ff(2,*))
349bias_trop=reform(ff(3,*))
350std_trop=reform(ff(4,*))
351rmsd_trop=reform(ff(5,*))
352mean_tao=reform(ff(6,*))
353mean_trop=mean_tao+bias_trop
354;
355ind=where(finite(cor_trop))
356cor=total(cor_trop,/nan)/n_elements(ind)
357ind=where(finite(bias_trop))
358bias=total(bias_trop,/nan)/n_elements(ind)
359ind=where(finite(rmsd_trop))
360rmsd=total(rmsd_trop,/nan)/n_elements(ind)
361ind=where(finite(std_trop))
362std=total(std_trop,/nan)/n_elements(ind)
363;
364print, ''
365print, 'TropFlux'
366print, cor, bias, std, rmsd
367cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
368;
369splot, 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
371xyouts, -50,-40, cstat, charsize=1.
372xyouts, -40,-80, 'cor    bias    std    rmsd', charsize=1.
373;
374x=mean_tao
375y=mean_trop
376ab=linfit(x,y,yfit=yfit)
377a=float(ab(0))
378b=float(ab(1))
379print, a,b
380oplot, x, yfit, thick=2, color=250
381oplot, [-100,200], [-100,200]
382;
383fi_net_NRT_oaflx=project_od_env+'net_2000_2007_oaflx.txt'
384res=read_ascii(fi_net_NRT_oaflx,data_start=1)
385ff=res.field1
386cor_oaf=reform(ff(2,*))
387bias_oaf=reform(ff(3,*))
388std_oaf=reform(ff(4,*))
389rmsd_oaf=reform(ff(5,*))
390mean_tao=reform(ff(6,*))
391mean_oaf=mean_tao+bias_oaf
392;
393ind=where(finite(cor_oaf))
394cor=total(cor_oaf,/nan)/n_elements(ind)
395ind=where(finite(bias_oaf))
396bias=total(bias_oaf,/nan)/n_elements(ind)
397ind=where(finite(rmsd_oaf))
398rmsd=total(rmsd_oaf,/nan)/n_elements(ind)
399ind=where(finite(std_oaf))
400std=total(std_oaf,/nan)/n_elements(ind)
401;
402print, ''
403print, 'OAFlux'
404print, cor, bias, std, rmsd
405cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
406;
407splot, 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
409x=mean_tao
410y=mean_oaf
411;
412xyouts, -50,-40, cstat, charsize=1.
413xyouts, -40,-80, 'cor    bias    std    rmsd', charsize=1.
414;
415ab=linfit(x,y,yfit=yfit)
416a=float(ab(0))
417b=float(ab(1))
418print, a,b
419oplot, x, yfit, thick=2, color=250
420oplot, [-100,200], [-100,200]
421;
422fi_net_NRT_ncep=project_od_env+'net_2000_2007_ncep.txt'
423res=read_ascii(fi_net_NRT_ncep,data_start=1)
424ff=res.field1
425cor_nce=reform(ff(2,*))
426bias_nce=reform(ff(3,*))
427std_nce=reform(ff(4,*))
428rmsd_nce=reform(ff(5,*))
429mean_tao=reform(ff(6,*))
430mean_nce=mean_tao+bias_nce
431;
432ind=where(finite(cor_nce))
433cor=total(cor_nce,/nan)/n_elements(ind)
434ind=where(finite(bias_nce))
435bias=total(bias_nce,/nan)/n_elements(ind)
436ind=where(finite(rmsd_nce))
437rmsd=total(rmsd_nce,/nan)/n_elements(ind)
438ind=where(finite(std_nce))
439std=total(std_nce,/nan)/n_elements(ind)
440;
441print, ''
442print, 'NCEP2'
443print, cor, bias, std, rmsd
444cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
445;
446splot, 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
448xyouts, -50,-40, cstat, charsize=1.
449xyouts, -40,-80, 'cor    bias    std    rmsd', charsize=1.
450;
451x=mean_tao
452y=mean_nce
453ab=linfit(x,y,yfit=yfit)
454a=float(ab(0))
455b=float(ab(1))
456print, a,b
457oplot, x, yfit, thick=2, color=250
458oplot, [-100,200], [-100,200]
459;
460fi_net_NRT_ncep1=project_od_env+'net_2000_2007_ncep1.txt'
461res=read_ascii(fi_net_NRT_ncep1,data_start=1)
462ff=res.field1
463cor_nce=reform(ff(2,*))
464bias_nce=reform(ff(3,*))
465std_nce=reform(ff(4,*))
466rmsd_nce=reform(ff(5,*))
467mean_tao=reform(ff(6,*))
468mean_nce=mean_tao+bias_nce
469;
470ind=where(finite(cor_nce))
471cor=total(cor_nce,/nan)/n_elements(ind)
472ind=where(finite(bias_nce))
473bias=total(bias_nce,/nan)/n_elements(ind)
474ind=where(finite(rmsd_nce))
475rmsd=total(rmsd_nce,/nan)/n_elements(ind)
476ind=where(finite(std_nce))
477std=total(std_nce,/nan)/n_elements(ind)
478;
479print, ''
480print, 'NCEP2'
481print, cor, bias, std, rmsd
482cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
483;
484splot, 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
486xyouts, -50,-40, cstat, charsize=1.
487xyouts, -40,-80, 'cor    bias    std    rmsd', charsize=1.
488;
489x=mean_tao
490y=mean_nce
491ab=linfit(x,y,yfit=yfit)
492a=float(ab(0))
493b=float(ab(1))
494print, a,b
495oplot, x, yfit, thick=2, color=250
496oplot, [-100,200], [-100,200]
497;
498fi_net_NRT_tropd=project_od_env+'net_2000_2007_tropd.txt'
499res=read_ascii(fi_net_NRT_tropd,data_start=1)
500ff=res.field1
501cor_tropd=reform(ff(2,*))
502bias_tropd=reform(ff(3,*))
503std_tropd=reform(ff(4,*))
504rmsd_tropd=reform(ff(5,*))
505mean_tao=reform(ff(6,*))
506mean_tropd=mean_tao+bias_tropd
507;
508ind=where(finite(cor_tropd))
509cor=total(cor_tropd,/nan)/n_elements(ind)
510ind=where(finite(bias_tropd))
511bias=total(bias_tropd,/nan)/n_elements(ind)
512ind=where(finite(rmsd_tropd))
513rmsd=total(rmsd_tropd,/nan)/n_elements(ind)
514ind=where(finite(std_tropd))
515std=total(std_tropd,/nan)/n_elements(ind)
516;
517print, ''
518print, 'TropFlux_NRT'
519print, cor, bias, std, rmsd
520cstat=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
521;
522splot, 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
524xyouts, -50,-40, cstat, charsize=1.
525xyouts, -40,-80, 'cor    bias    std    rmsd', charsize=1.
526;
527x=mean_tao
528y=mean_tropd
529ab=linfit(x,y,yfit=yfit)
530a=float(ab(0))
531b=float(ab(1))
532print, a,b
533oplot, x, yfit, thick=2, color=250
534oplot, [-100,200], [-100,200]
535;
536closeps
537;
538end
Note: See TracBrowser for help on using the repository browser.