source: trunk/src/paper01/fig14/as_validation_net_1994_95_v10.pro @ 182

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

fix some svn propset

  • Property svn:keywords set to Id URL
File size: 9.7 KB
RevLine 
[43]1;+
[46]2; .. _as_validation_net_1994_95_v10.pro:
[43]3;
4; =================================
5; as_validation_net_1994_95_v10.pro
6; =================================
7;
8; DESCRIPTION
9; ===========
10;
[46]11; .. graphviz::
12;
13;    digraph as_validation_net_1994_95_v10 {
[85]14;
[50]15;       met_data [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/met_data_as_expt_19*.txt"];
16;       swr_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_swr_19910101_20091231_oafluxgrid.nc"];
17;       lwr_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_lwr_19910101_20091231_oafluxgrid.nc"];
18;       lhf_erai [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/erai_lhf_19910101_20091231_oafluxgrid.nc"];
19;       tropflux_general [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_19890101_20091231.nc"];
20;       swr_tropflux_nrt [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/TropFlux_swr_19890101_20091231_NRT_v50.nc"];
21;       swr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_oafluxgrid_1985_2007.nc"];
22;       lwr_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lwr_oafluxgrid_1985_2007.nc"];
23;       lhf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_oafluxgrid_1985_2007.nc"];
24;       shf_oafluxgrid [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_oafluxgrid_1985_2007.nc"];
25;       swr_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/swr_ncep2_oaflxgrid_19890101_20091231.nc"];
26;       lwr_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/NCEP2_flux_19890101_20090729.nc"];
27;       lhf_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/lhf_ncep2_oafluxgrid_19890101_20091231.nc"];
28;       shf_ncep2 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/shf_ncep2_oafluxgrid_19890101_20091231.nc"];
[46]29;
[50]30;       ncep1 [shape=ellipse,fontname=Courier,label="${PROJECT_ID}/ncep1_flux_19890101_20091231.nc"];
[46]31;
[50]32;       figure [shape=ellipse,fontname=Courier,label="${PROJECT_OD}/as_validation_net_1994_95_v10.ps"];
[46]33;
34;       as_validation_net_1994_95_v10 [shape=box,
35;       fontname=Courier,
36;       color=blue,
37;       URL="http://forge.ipsl.jussieu.fr/tropflux/broswrer/trunk/src/paper01/fig14/as_validation_net_1994_95_v10.pro",
38;       label="${TROPFLUX}/src/paper01/fig14/as_validation_net_1994_95_v10.pro"];
[50]39;       {met_data swr_erai lwr_erai lhf_erai tropflux_general swr_tropflux_nrt swr_oafluxgrid lwr_oafluxgrid lhf_oafluxgrid shf_oafluxgrid swr_ncep2 lwr_ncep2 lhf_ncep2 shf_ncep2 ncep1} -> {as_validation_net_1994_95_v10} -> {figure}
[46]40;    }
41;
[43]42; SEE ALSO
43; ========
44;
[50]45; :ref:`project_profile.sh`
46; :ref:`project_init.pro`
47; :ref:`cm_project.pro`
[43]48;
[46]49; :ref:`statistics.pro`
50;
[43]51; EXAMPLES
52; ========
53;
54; ::
55;
[180]56;  as_validation_net_1994_95_v10
[43]57;
[46]58; TODO
59; ====
60;
[50]61; make it work on cratos : missing data erai_swr_19910101_20091231_oafluxgrid.nc, etc
[47]62;
[46]63; coding rules
64;
65; complete description
66;
67; handle IO error
68;
[43]69; EVOLUTIONS
70; ==========
71;
72; $Id$
73;
[85]74; $URL$
75;
[46]76; - fplod 20110420T115926Z aedon.locean-ipsl.upmc.fr (Darwin)
77;
78;   * remove hard coding path
79;   * add graphviz
80;
[43]81; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin)
82;
83;   * minimal header
84;
85;-
[41]86pro as_validation_net_1994_95_v10
[46]87@cm_general
[50]88@cm_project
[41]89reinitplt, /z,/invert
90key_portrait = 1
91coefpalit=.9
[97]92;
[85]93openps, FILENAME = project_od_env+'as_validation_net_1994_95_v10.ps'
[41]94; partie a changer
95asbox=[61,62,15,16]
[97]96date1=19941016
[94]97date2=19951019
[97]98;
[50]99fi=project_id_env+"met_data_as_expt_1994.txt"
[41]100res=read_ascii(fi,data_start=1)
101ff=res.field1
102swr94=reform(ff(7,*))*0.93
103lwr94=reform(ff(8,*))
104lhf94=reform(ff(5,*))
105shf94=reform(ff(6,*))
106net94=swr94+lwr94+lhf94+shf94
[97]107;
[50]108fi=project_id_env+"met_data_as_expt_1995.txt"
[41]109res=read_ascii(fi,data_start=1)
110ff=res.field1
111swr95=reform(ff(7,*))*0.93
112lwr95=reform(ff(8,*))
113lhf95=reform(ff(5,*))
114shf95=reform(ff(6,*))
115net95=swr95+lwr95+lhf95+shf95
[97]116;
[41]117net=[net94, net95]
118ind=where(finite(net))
119net=net(ind)
[97]120;
121; start data - 16/10/94 and end date 31/12/94
122; start data - 01/01/95 and end date 19/10/95
123;
[41]124help, net
[97]125; reading other data sets
[50]126file=project_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc"
[41]127initncdf, file
[97]128swr=read_ncdf('swr',date1,date2,file=file,/nostr, box=asbox)
[94]129swr=reform(swr)
[50]130file=project_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc'
[41]131initncdf, file
[97]132lwr=read_ncdf('lwr',date1-1,date2,file=file,/nostr, box=asbox)
[94]133lwr=reform(lwr)
[50]134file=project_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc'
[41]135initncdf, file
[97]136shf=-1*read_ncdf('shf',date1,date2,file=file,/nostr, box=asbox)
[94]137shf=reform(shf)
[50]138file=project_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc'
[41]139initncdf, file
[97]140lhf=-1*read_ncdf('lhf',date1,date2,file=file,/nostr, box=asbox)
[94]141lhf=reform(lhf)
[97]142;
[41]143era=swr+lwr+lhf+shf
144help, era
145era=era(ind)
146help, era
[97]147;
148swr=0.
149lwr=0.
150shf=0.
[94]151lhf=0.
[97]152;
[50]153file=project_id_env+"TropFlux_19890101_20091231.nc"
[41]154initncdf, file
[97]155swr=read_ncdf('swr',date1,date2,file=file,/nostr, box=asbox)
[94]156swr=reform(swr)
[97]157lwr=read_ncdf('lwr',date1,date2,file=file,/nostr, box=asbox)
[94]158lwr=reform(lwr)
[97]159shf=read_ncdf('shf',date1,date2,file=file,/nostr, box=asbox)
[94]160shf=reform(shf)
[97]161lhf=read_ncdf('lhf',date1,date2,file=file,/nostr, box=asbox)
[94]162lhf=reform(lhf)
[41]163trop=swr+lwr+shf+lhf
164help, trop
[97]165;
[50]166file=project_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc"
[41]167initncdf, file
[97]168olr1=read_ncdf("sw", date1-1, date2, file=file,/nostr, box=asbox)
[94]169olr1=grossemoyenne(olr1, "xy",/nan, box=asbox)
[41]170olr1=reform(olr1)
[97]171;
[41]172olr=olr1+lwr+shf+lhf
[97]173;
174swr=0.
175lwr=0.
176shf=0.
177lhf=0.
[94]178olr1=0.
[97]179;
180trop=trop(ind)
[94]181olr=olr(ind)
[41]182help, trop, olr
[97]183;
[50]184file=project_id_env+'swr_oafluxgrid_1985_2007.nc'
[41]185initncdf, file
[97]186swr=read_ncdf("swr", date1, date2, file=file,/nostr, box=asbox)
[94]187swr=reform(swr)
[97]188;
[50]189file=project_id_env+'lwr_oafluxgrid_1985_2007.nc'
[41]190initncdf, file
[97]191lwr=read_ncdf("lwr", date1, date2, file=file,/nostr, box=asbox)
[94]192lwr=-1*reform(lwr)
[97]193;
[50]194file=project_id_env+'lhf_oafluxgrid_1985_2009.nc'
[41]195initncdf, file
[97]196lhf=read_ncdf("lhf", date1, date2, file=file,/nostr, box=asbox)
[94]197lhf=-1*reform(lhf)
[97]198;
[50]199file=project_id_env+'shf_oafluxgrid_1985_2009.nc'
[41]200initncdf, file
[97]201shf=read_ncdf("shf", date1, date2, file=file,/nostr, box=asbox)
[94]202shf=-1*reform(shf)
[97]203;
[41]204oaf=swr+lwr+shf+lhf
205oaf=oaf(ind)
206help, oaf
[97]207;
208swr=0.
209lwr=0.
210shf=0.
[94]211lhf=0.
[97]212;
[50]213fi=project_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc'
[41]214initncdf, fi
[97]215swr=read_ncdf("swr", date1, date2, file=fi,/nostr, box=asbox)
[94]216swr=reform(swr)
[97]217;
[50]218fi=project_id_env+"NCEP2_flux_19890101_20090729.nc"
[41]219initncdf, fi
[97]220lwr=read_ncdf("lwr", date1, date2, file=fi,/nostr, box=asbox)
221lwr=grossemoyenne(lwr, "xy",/nan, box=asbox)
[94]222lwr=reform(lwr)
[97]223;
[41]224lwr=-1*lwr
[97]225;
[50]226fi=project_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc'
[41]227initncdf, fi
[97]228lhf=read_ncdf("lhf", date1, date2, file=fi,/nostr, box=asbox)
[94]229lhf=-1*reform(lhf)
[97]230;
[50]231fi=project_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc'
[41]232initncdf, fi
[97]233shf=read_ncdf("shf", date1, date2, file=fi,/nostr, box=asbox)
[94]234shf=-1*reform(shf)
[97]235;
[41]236nce2=swr+lwr+shf+lhf
237help, nce2
[97]238;
[41]239nce2=nce2(ind)
240help, nce2
[97]241swr=0.
242lwr=0.
243shf=0.
[94]244lhf=0.
[97]245;
[50]246file=project_id_env+"ncep1_flux_19890101_20091231.nc"
[41]247initncdf, file
[94]248swr=read_ncdf("swr", date1, date2, file=file,/nostr, box=asbox)
249swr=reform(swr)
[97]250lwr=read_ncdf("lwr", date1, date2, file=file,/nostr, box=asbox)
[94]251lwr=reform(lwr)
[97]252lhf=read_ncdf("lhf", date1, date2, file=file,/nostr, box=asbox)
[94]253lhf=reform(lhf)
[97]254shf=read_ncdf("shf", date1, date2, file=file,/nostr, box=asbox)
[94]255shf=reform(shf)
[41]256nce1=swr+lwr+shf+lhf
[97]257;
[41]258help, nce1
[97]259;
[41]260nce1=nce1(ind)
261help, nce1
262;ind=where(finite(net))
[97]263;net=net(ind)
264;era=era(ind)
265;trop=trop(ind)
266;oaf=oaf(ind)
267;nce1=nce1(ind)
[94]268;nce2=nce2(ind)
[41]269;olr=olr(ind)
[97]270;
[41]271statistics, net, era, $
272                 cor, bias, std, rmsd
273print, cor, bias, std,  rmsd
274cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
[97]275;
[41]276statistics, net, trop, $
277                 cor, bias, std, rmsd
278print, cor, bias, std,  rmsd
279cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
[97]280;
[41]281statistics, net, oaf, $
282                 cor, bias, std, rmsd
283print, cor, bias, std,  rmsd
284cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
[97]285;
[41]286statistics, net, nce1, $
287                 cor, bias, std, rmsd
288print, cor, bias, std,  rmsd
289cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
[97]290;
[41]291statistics, net, nce2, $
292                 cor, bias, std, rmsd
293print, cor, bias, std,  rmsd
294cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
[97]295;
[41]296statistics, net, olr, $
297                 cor, bias, std, rmsd
298print, cor, bias, std,  rmsd
299cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)')
[97]300;
[41]301splot, net, era, charsize=1.1, title='Net Flux - AS Vs ERAI', $
302     xrange=[-200,200], yrange=[-200,200], small=[2,3,1], psym=2, xmin=1, ymin=1
303oplot, [-200,200], [-200,200]
304xyouts, -150,-175, cstat_era, charsize=1.
[97]305;
[41]306splot, net, trop, charsize=1.1, title='Net Flux - AS Vs TropFlux',/noer, $
307     xrange=[-200,200], yrange=[-200,200], small=[2,3,2], psym=2, xmin=1, ymin=1
308oplot, [-200,200], [-200,200]
309xyouts, -150,-175, cstat_trop, charsize=1.
[97]310;
[41]311splot, net, oaf, charsize=1.1, title='Net Flux - AS Vs OAFlux',/noer, $
312     xrange=[-200,200], yrange=[-200,200], small=[2,3,3], psym=2, xmin=1, ymin=1
313oplot, [-200,200], [-200,200]
314xyouts, -150,-175, cstat_oaf, charsize=1.
[97]315;
[41]316splot, net, nce1, charsize=1.1, title='Net Flux - AS Vs NCEP1',/noer, $
317     xrange=[-200,200], yrange=[-200,200], small=[2,3,4], psym=2, xmin=1, ymin=1
318oplot, [-200,200], [-200,200]
319xyouts, -150,-175, cstat_nce1, charsize=1.
[97]320;
[41]321splot, net, nce2, charsize=1.1, title='Net Flux - AS Vs NCEP2',/noer, $
322     xrange=[-200,200], yrange=[-200,200], small=[2,3,5], psym=2, xmin=1, ymin=1
323oplot, [-200,200], [-200,200]
324xyouts, -150,-175, cstat_nce2, charsize=1.
[97]325;
[41]326splot, net, olr, charsize=1.1, title='Net Flux - AS Vs TropFlux_NRT',/noer, $
327     xrange=[-200,200], yrange=[-200,200], small=[2,3,6], psym=2, xmin=1, ymin=1
328oplot, [-200,200], [-200,200]
329xyouts, -150,-175, cstat_olr, charsize=1.
[97]330;
[41]331closeps
[97]332;
[41]333end
Note: See TracBrowser for help on using the repository browser.