pro stratus_validation_net_2001_2002_all_v10 @common ;------------------------------------------------------------ reinitplt, /z,/invert key_portrait = 1 coefpalit=.9 openps, FILENAME = 'idl.ps' ;------------------------------------------------------------ ; partie a changer ;------------------------------------------------------------ ;; stratus in the south pacific cold tongue 2000-01 ;20.9S, 80.8W (274.2E) box=[274, 275, -21., -20.] ;; first leg fi="/Users/pkb/data/Mooring_data/stratus/met_data_stratus_2001_2002.txt" res=read_ascii(fi,data_start=1) ff=res.field1 swr=reform(ff(7,*))/0.94 lwr=reform(ff(8,*)) lhf=reform(ff(5,*)) shf=reform(ff(6,*)) net=swr+lwr+shf+lhf help, net ;; reading other data sets st1=20011019 & en1=20021022 file="/Users/pkb/data/ERA-I/erai_swr_19910101_20091231_oafluxgrid.nc" initncdf, file swr=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy", box=box,/nan) & swr=reform(swr) file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lwr_19890101_20091231_oafluxgrid.nc' initncdf, file lwr=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) & lwr=reform(lwr) file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_shf_19890101_20091231_oafluxgrid.nc' initncdf, file shf=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf=reform(shf) file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_lhf_19890101_20091231_oafluxgrid.nc' initncdf, file lhf=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf=reform(lhf) era=swr+lwr+lhf+shf help, era swr=0 & lwr=0 & lhf=0 & shf=0 file="/Users/pkb/data/TropFlux/TropFlux_19890101_20091231.nc" initncdf, file swr=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) lwr=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) & lwr=grossemoyenne(lwr, "xy",/nan, box=box) & lwr=reform(lwr) shf=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) & shf=grossemoyenne(shf, "xy",/nan, box=box) & shf=reform(shf) lhf=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) & lhf=grossemoyenne(lhf, "xy",/nan, box=box) & lhf=reform(lhf) file="/Users/pkb/data/TropFlux/TropFlux_swr_19890101_20091231_NRT_v50.nc" initncdf, file olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) & olr1=grossemoyenne(olr1, "xy",/nan, box=box) & olr1=reform(olr1) trop=swr+lwr+shf+lhf olr=olr1+lwr+shf+lhf help, trop, olr swr=0 & lwr=0 & lhf=0 & shf=0 & olr1=0 file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/swr_oafluxgrid_1985_2007.nc' initncdf, file swr=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lwr_oafluxgrid_1985_2007.nc' initncdf, file lwr=read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr=-1*reform(lwr) file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/lhf_oafluxgrid_1985_2009.nc' initncdf, file lhf=read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf=-1*reform(lhf) file='/Volumes/Iomega_HDD/work/flux_reconstruction/OAFLX_GRID/shf_oafluxgrid_1985_2009.nc' initncdf, file shf=read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf=-1*reform(shf) oaf=swr+lwr+shf+lhf help, oaf swr=0 & lwr=0 & lhf=0 & shf=0 fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/swr_ncep2_oaflxgrid_19890101_20091231.nc' initncdf, fi swr=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) fi="/Volumes/Iomega_HDD/flux_reconstruction/ncep2/NCEP2_flux_19890101_20090729.nc" initncdf, fi lwr=read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) & lwr=grossemoyenne(lwr, "xy",/nan, box=box) & lwr=reform(lwr) lwr=-1*lwr fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/lhf_ncep2_oafluxgrid_19890101_20091231.nc' initncdf, fi lhf=read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) & lhf=-1*reform(lhf) fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/shf_ncep2_oafluxgrid_19890101_20091231.nc' initncdf, fi shf=read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) & shf=-1*reform(shf) nce2=swr+lwr+shf+lhf help, nce2 swr=0 & lwr=0 & lhf=0 & shf=0 ;file='/Volumes/Iomega_HDD/flux_reconstruction/ncep/fluxe_ncep1_19890101_20091231.nc' file="/Users/pkb/data/heat_budget/ncep/ncep1_flux_19890101_20091231.nc" initncdf, file swr=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) & swr=grossemoyenne(swr, "xy",/nan, box=box) & swr=reform(swr) lwr=read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) & lwr=grossemoyenne(lwr, "xy",/nan, box=box) & lwr=reform(lwr) shf=read_ncdf("shf", st1, en1, file=file,/nostr, box=box) & shf=grossemoyenne(shf, "xy",/nan, box=box) & shf=reform(shf) lhf=read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) & lhf=grossemoyenne(lhf, "xy",/nan, box=box) & lhf=reform(lhf) nce1=swr+lwr+shf+lhf help, nce1 ind=where(finite(net)) net=net(ind) & era=era(ind) & trop=trop(ind) & oaf=oaf(ind) & nce2=nce2(ind) & nce1=nce1(ind) olr=olr(ind) ;------------------------------------------------------------ statistics, net, era, $ cor, bias, std, rmsd print, cor, bias, std, rmsd cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') statistics, net, trop, $ cor, bias, std, rmsd print, cor, bias, std, rmsd cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') statistics, net, oaf, $ cor, bias, std, rmsd print, cor, bias, std, rmsd cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') statistics, net, nce1, $ cor, bias, std, rmsd print, cor, bias, std, rmsd cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') statistics, net, nce2, $ cor, bias, std, rmsd print, cor, bias, std, rmsd cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') statistics, net, olr, $ cor, bias, std, rmsd print, cor, bias, std, rmsd cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') ;------------------------------------------------------------ splot, net, era, charsize=1.1, title='SWR - Stratus Vs ERAI', $ xrange=[-200,200], yrange=[-200,200], small=[2,3,1], psym=2, xmin=1, ymin=1 oplot, [-200,200], [-200,200] xyouts, -150,-175, cstat_era, charsize=1. splot, net, trop, charsize=1.1, title='SWR - Stratus Vs TropFlux',/noer, $ xrange=[-200,200], yrange=[-200,200], small=[2,3,2], psym=2, xmin=1, ymin=1 oplot, [-200,200], [-200,200] xyouts, -150,-175, cstat_trop, charsize=1. splot, net, oaf, charsize=1.1, title='SWR - Stratus Vs OAFlux',/noer, $ xrange=[-200,200], yrange=[-200,200], small=[2,3,3], psym=2, xmin=1, ymin=1 oplot, [-200,200], [-200,200] xyouts, -150,-175, cstat_oaf, charsize=1. splot, net, nce1, charsize=1.1, title='SWR - Stratus Vs NCEP1',/noer, $ xrange=[-200,200], yrange=[-200,200], small=[2,3,4], psym=2, xmin=1, ymin=1 oplot, [-200,200], [-200,200] xyouts, -150,-175, cstat_nce1, charsize=1. splot, net, nce2, charsize=1.1, title='SWR - Stratus Vs NCEP2',/noer, $ xrange=[-200,200], yrange=[-200,200], small=[2,3,5], psym=2, xmin=1, ymin=1 oplot, [-200,200], [-200,200] xyouts, -150,-175, cstat_nce2, charsize=1. splot, net, olr, charsize=1.1, title='SWR - Stratus Vs TropFlux_NRT',/noer, $ xrange=[-200,200], yrange=[-200,200], small=[2,3,6], psym=2, xmin=1, ymin=1 oplot, [-200,200], [-200,200] xyouts, -150,-175, cstat_olr, charsize=1. stop ;------------------------------------------------------------ closeps fig="stratus_validation_net_2001_2002_all_v11.ps" spawn, 'mv '+psdir+'idl.ps '+cpsdir+fig spawn, 'gv '+cpsdir+fig ;------------------------------------------------------------ return end