Ignore:
Timestamp:
08/30/11 14:38:29 (13 years ago)
Author:
pinsard
Message:

suppress blank lines trailing blank

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/paper01/fig14/subdctn_cs_validation_net_1991_93_all_v10.pro

    r94 r97  
    9292key_portrait = 1 
    9393coefpalit=.9 
    94  
     94; 
    9595openps, FILENAME = project_od_env+"subdctn_cs_validation_net_1991_93_all_v10.ps" 
    9696; partie a changer 
    97  
    98 ;; subduction experiment in the atlantic in 1991-93 
     97; 
     98; subduction experiment in the atlantic in 1991-93 
    9999box=[330.5, 331.5, 25., 26.] 
    100  
    101 ;; first leg 
    102  
     100; 
     101; first leg 
     102; 
    103103fi=project_id_env+"met_data_subduct_cs_91.txt" 
    104104res=read_ascii(fi,data_start=1) 
     
    109109lwr_91=reform(ff(8,*)) 
    110110net_91=[swr_91+lwr_91+shf_91+lhf_91] 
    111  
    112 ;; start data - 06/02/92 and end date 02/06/92 then from 11/10/92 to 31/12/92 
    113 ;; total no of daily records - 
    114 ;; second leg 
    115  
     111; 
     112; start data - 06/02/92 and end date 02/06/92 then from 11/10/92 to 31/12/92 
     113; total no of daily records - 
     114; second leg 
     115; 
    116116fi=project_id_env+"met_data_subduct_cs_92.txt" 
    117117res=read_ascii(fi,data_start=1) 
     
    122122lwr_92=reform(ff(8,*)) 
    123123net_92=[swr_92+lwr_92+shf_92+lhf_92] 
    124  
    125 ;; second leg 
    126  
     124; 
     125; second leg 
     126; 
    127127fi=project_id_env+"met_data_subduct_cs_93.txt" 
    128128res=read_ascii(fi,data_start=1) 
     
    133133lwr_93=reform(ff(8,*)) 
    134134net_93=[swr_93+lwr_93+shf_93+lhf_93] 
    135  
     135; 
    136136net=[net_91, net_92, net_93] 
    137137help, net 
    138  
    139 ;; reading other data sets 
    140  
    141 st1=19910623  
     138; 
     139; reading other data sets 
     140; 
     141st1=19910623 
    142142en1=19930616 
    143  
     143; 
    144144file=project_id_env+"erai_swr_19910101_20091231_oafluxgrid.nc" 
    145145initncdf, file 
    146 swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box)  
    147 swr1=grossemoyenne(swr1, "xy", box=box,/nan)  
     146swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) 
     147swr1=grossemoyenne(swr1, "xy", box=box,/nan) 
    148148swr1=reform(swr1) 
    149149file=project_id_env+'erai_lhf_19890101_20091231_oafluxgrid.nc' 
    150150initncdf, file 
    151 lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box)  
    152 lhf1=grossemoyenne(lhf1, "xy", box=box,/nan)  
     151lhf1=-1*read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) 
     152lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) 
    153153lhf1=reform(lhf1) 
    154154file=project_id_env+'erai_shf_19890101_20091231_oafluxgrid.nc' 
    155155initncdf, file 
    156 shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box)  
    157 shf1=grossemoyenne(shf1, "xy", box=box,/nan)  
     156shf1=-1*read_ncdf('shf',st1,en1,file=file,/nostr, box=box) 
     157shf1=grossemoyenne(shf1, "xy", box=box,/nan) 
    158158shf1=reform(shf1) 
    159159file=project_id_env+'erai_lwr_19890101_20091231_oafluxgrid.nc' 
    160160initncdf, file 
    161 lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box)  
    162 lwr1=grossemoyenne(lwr1, "xy", box=box,/nan)  
    163 lwr1=reform(lwr1) 
    164  
     161lwr1=read_ncdf('lwr',st1-1,en1,file=file,/nostr, box=box) 
     162lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) 
     163lwr1=reform(lwr1) 
     164; 
    165165era=swr1+lwr1+lhf1+shf1 
    166 swr1=0  
    167 lwr1=0  
    168 shf1=0  
     166swr1=0 
     167lwr1=0 
     168shf1=0 
    169169lhf1=0 
    170170help, era 
    171  
     171; 
    172172file=project_id_env+"TropFlux_19890101_20091231.nc" 
    173173initncdf, file 
    174 lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box)  
    175 lhf1=grossemoyenne(lhf1, "xy", box=box,/nan)  
    176 lhf1=reform(lhf1) 
    177 shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box)  
    178 shf1=grossemoyenne(shf1, "xy", box=box,/nan)  
    179 shf1=reform(shf1) 
    180 lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box)  
    181 lwr1=grossemoyenne(lwr1, "xy", box=box,/nan)  
    182 lwr1=reform(lwr1) 
    183 swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box)  
    184 swr1=grossemoyenne(swr1, "xy", box=box,/nan)  
     174lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) 
     175lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) 
     176lhf1=reform(lhf1) 
     177shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) 
     178shf1=grossemoyenne(shf1, "xy", box=box,/nan) 
     179shf1=reform(shf1) 
     180lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) 
     181lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) 
     182lwr1=reform(lwr1) 
     183swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) 
     184swr1=grossemoyenne(swr1, "xy", box=box,/nan) 
    185185swr1=reform(swr1) 
    186186trop=swr1+lwr1+lhf1+shf1 
    187  
     187; 
    188188file=project_id_env+"TropFlux_swr_19890101_20091231_NRT_v50.nc" 
    189189initncdf, file 
    190 olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box)  
    191 olr1=grossemoyenne(olr1, "xy",/nan, box=box)  
     190olr1=read_ncdf("sw", st1-1, en1, file=file,/nostr, box=box) 
     191olr1=grossemoyenne(olr1, "xy",/nan, box=box) 
    192192olr1=reform(olr1) 
    193  
     193; 
    194194olr=olr1+lwr1+shf1+lhf1 
    195195help, trop, olr 
    196 swr1=0  
    197 lwr1=0  
    198 shf1=0  
    199 lhf1=0  
     196swr1=0 
     197lwr1=0 
     198shf1=0 
     199lhf1=0 
    200200olr1=0 
    201  
     201; 
    202202file=project_id_env+'swr_oafluxgrid_1985_2007.nc' 
    203203initncdf, file 
    204 swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box)  
    205 swr1=grossemoyenne(swr1, "xy",/nan, box=box)  
     204swr1=read_ncdf("swr", st1, en1, file=file,/nostr, box=box) 
     205swr1=grossemoyenne(swr1, "xy",/nan, box=box) 
    206206swr1=reform(swr1) 
    207207file=project_id_env+'lwr_oafluxgrid_1985_2007.nc' 
    208208initncdf, file 
    209 lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box)  
    210 lwr1=grossemoyenne(lwr1, "xy",/nan, box=box)  
     209lwr1=-1*read_ncdf("lwr", st1, en1, file=file,/nostr, box=box) 
     210lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) 
    211211lwr1=reform(lwr1) 
    212212file=project_id_env+'lhf_oafluxgrid_1985_2009.nc' 
    213213initncdf, file 
    214 lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box)  
    215 lhf1=grossemoyenne(lhf1, "xy",/nan, box=box)  
     214lhf1=-1*read_ncdf("lhf", st1, en1, file=file,/nostr, box=box) 
     215lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) 
    216216lhf1=reform(lhf1) 
    217217file=project_id_env+'shf_oafluxgrid_1985_2009.nc' 
    218218initncdf, file 
    219 shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box)  
    220 shf1=grossemoyenne(shf1, "xy",/nan, box=box)  
    221 shf1=reform(shf1) 
    222  
     219shf1=-1*read_ncdf("shf", st1, en1, file=file,/nostr, box=box) 
     220shf1=grossemoyenne(shf1, "xy",/nan, box=box) 
     221shf1=reform(shf1) 
     222; 
    223223oaf=swr1+lwr1+lhf1+shf1 
    224224help, oaf 
    225 swr1=0  
    226 lwr1=0  
    227 shf1=0  
    228 lhf1=0  
     225swr1=0 
     226lwr1=0 
     227shf1=0 
     228lhf1=0 
    229229olr1=0 
    230  
     230; 
    231231fi=project_id_env+'swr_ncep2_oaflxgrid_19890101_20091231.nc' 
    232232initncdf, fi 
    233 swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box)  
    234 swr1=grossemoyenne(swr1, "xy",/nan, box=box)  
     233swr1=read_ncdf("swr", st1, en1, file=fi,/nostr, box=box) 
     234swr1=grossemoyenne(swr1, "xy",/nan, box=box) 
    235235swr1=reform(swr1) 
    236236fi=project_id_env+"NCEP2_flux_19890101_20090729.nc" 
    237237initncdf, fi 
    238 lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box)  
    239 lwr1=grossemoyenne(lwr1, "xy",/nan, box=box)  
     238lwr1=-1*read_ncdf("lwr", st1, en1, file=fi,/nostr, box=box) 
     239lwr1=grossemoyenne(lwr1, "xy",/nan, box=box) 
    240240lwr1=reform(lwr1) 
    241241fi=project_id_env+'lhf_ncep2_oafluxgrid_19890101_20091231.nc' 
    242242initncdf, fi 
    243 lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box)  
    244 lhf1=grossemoyenne(lhf1, "xy",/nan, box=box)  
     243lhf1=-1*read_ncdf("lhf", st1, en1, file=fi,/nostr, box=box) 
     244lhf1=grossemoyenne(lhf1, "xy",/nan, box=box) 
    245245lhf1=reform(lhf1) 
    246246fi=project_id_env+'shf_ncep2_oafluxgrid_19890101_20091231.nc' 
    247247initncdf, fi 
    248 shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box)  
    249 shf1=grossemoyenne(shf1, "xy",/nan, box=box)  
    250 shf1=reform(shf1) 
    251  
     248shf1=-1*read_ncdf("shf", st1, en1, file=fi,/nostr, box=box) 
     249shf1=grossemoyenne(shf1, "xy",/nan, box=box) 
     250shf1=reform(shf1) 
     251; 
    252252nce2=swr1+lwr1+lhf1+shf1 
    253253help, nce2 
    254 swr1=0  
    255 lwr1=0  
    256 shf1=0  
    257 lhf1=0  
     254swr1=0 
     255lwr1=0 
     256shf1=0 
     257lhf1=0 
    258258olr1=0 
    259  
     259; 
    260260file=project_id_env+"ncep1_flux_19890101_20091231.nc" 
    261261initncdf, file 
    262  
    263 lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box)  
    264 lhf1=grossemoyenne(lhf1, "xy", box=box,/nan)  
    265 lhf1=reform(lhf1) 
    266 shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box)  
    267 shf1=grossemoyenne(shf1, "xy", box=box,/nan)  
    268 shf1=reform(shf1) 
    269 lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box)  
    270 lwr1=grossemoyenne(lwr1, "xy", box=box,/nan)  
    271 lwr1=reform(lwr1) 
    272 swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box)  
    273 swr1=grossemoyenne(swr1, "xy", box=box,/nan)  
     262; 
     263lhf1=read_ncdf('lhf',st1,en1,file=file,/nostr, box=box) 
     264lhf1=grossemoyenne(lhf1, "xy", box=box,/nan) 
     265lhf1=reform(lhf1) 
     266shf1=read_ncdf('shf',st1,en1,file=file,/nostr, box=box) 
     267shf1=grossemoyenne(shf1, "xy", box=box,/nan) 
     268shf1=reform(shf1) 
     269lwr1=read_ncdf('lwr',st1,en1,file=file,/nostr, box=box) 
     270lwr1=grossemoyenne(lwr1, "xy", box=box,/nan) 
     271lwr1=reform(lwr1) 
     272swr1=read_ncdf('swr',st1,en1,file=file,/nostr, box=box) 
     273swr1=grossemoyenne(swr1, "xy", box=box,/nan) 
    274274swr1=reform(swr1) 
    275275nce1=swr1+(lwr1+shf1+lhf1) 
    276276help, nce1 
    277  
     277; 
    278278ind=where(finite(net)) 
    279 net=net(ind)  
    280 era=era(ind)  
    281 trop=trop(ind)  
    282 oaf=oaf(ind)  
    283 nce2=nce2(ind)  
     279net=net(ind) 
     280era=era(ind) 
     281trop=trop(ind) 
     282oaf=oaf(ind) 
     283nce2=nce2(ind) 
    284284nce1=nce1(ind) 
    285285olr=olr(ind) 
    286  
     286; 
    287287statistics, net, era, $ 
    288288                 cor, bias, std, rmsd 
    289289print, cor, bias, std,  rmsd 
    290290cstat_era=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') 
    291  
     291; 
    292292statistics, net, trop, $ 
    293293                 cor, bias, std, rmsd 
    294294print, cor, bias, std,  rmsd 
    295295cstat_trop=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') 
    296  
     296; 
    297297statistics, net, oaf, $ 
    298298                 cor, bias, std, rmsd 
    299299print, cor, bias, std,  rmsd 
    300300cstat_oaf=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') 
    301  
     301; 
    302302statistics, net, nce1, $ 
    303303                 cor, bias, std, rmsd 
    304304print, cor, bias, std,  rmsd 
    305305cstat_nce1=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') 
    306  
     306; 
    307307statistics, net, nce2, $ 
    308308                 cor, bias, std, rmsd 
    309309print, cor, bias, std,  rmsd 
    310310cstat_nce2=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') 
    311  
     311; 
    312312statistics, net, olr, $ 
    313313                 cor, bias, std, rmsd 
    314314print, cor, bias, std,  rmsd 
    315315cstat_olr=string(cor, bias, std, rmsd, format='(f4.2,2x,f6.2,2x,f4.2,1x,f6.2)') 
    316  
    317  
     316; 
     317; 
    318318splot, net, era, charsize=1.1, title='Net Flux - Subdn. cs Vs ERAI', $ 
    319319     xrange=[-200,200], yrange=[-200,200], small=[2,3,1], psym=2, xmin=1, ymin=1 
    320320oplot, [-200,200], [-200,200] 
    321321xyouts, 0,-175, cstat_era, charsize=1. 
    322  
     322; 
    323323splot, net, trop, charsize=1.1, title='Net Flux - Subdn. cs Vs TropFlux',/noer, $ 
    324324     xrange=[-200,200], yrange=[-200,200], small=[2,3,2], psym=2, xmin=1, ymin=1 
    325325oplot, [-200,200], [-200,200] 
    326326xyouts, 0,-175, cstat_trop, charsize=1. 
    327  
     327; 
    328328splot, net, oaf, charsize=1.1, title='Net Flux - Subdn. cs Vs OAFlux',/noer, $ 
    329329     xrange=[-200,200], yrange=[-200,200], small=[2,3,3], psym=2, xmin=1, ymin=1 
    330330oplot, [-200,200], [-200,200] 
    331331xyouts, 0,-175, cstat_oaf, charsize=1. 
    332  
     332; 
    333333splot, net, nce1, charsize=1.1, title='Net Flux - Subdn. cs Vs NCEP1',/noer, $ 
    334334     xrange=[-200,200], yrange=[-200,200], small=[2,3,4], psym=2, xmin=1, ymin=1 
    335335oplot, [-200,200], [-200,200] 
    336336xyouts, 0,-175, cstat_nce1, charsize=1. 
    337  
     337; 
    338338splot, net, nce2, charsize=1.1, title='Net Flux - Subdn. cs Vs NCEP2',/noer, $ 
    339339     xrange=[-200,200], yrange=[-200,200], small=[2,3,5], psym=2, xmin=1, ymin=1 
    340340oplot, [-200,200], [-200,200] 
    341341xyouts, 0,-175, cstat_nce2, charsize=1. 
    342  
     342; 
    343343splot, net, olr, charsize=1.1, title='Net Flux - Subdn. cs Vs TropFlux_NRT',/noer, $ 
    344344     xrange=[-200,200], yrange=[-200,200], small=[2,3,6], psym=2, xmin=1, ymin=1 
    345345oplot, [-200,200], [-200,200] 
    346346xyouts, 0,-175, cstat_olr, charsize=1. 
    347  
     347; 
    348348closeps 
     349; 
    349350end 
Note: See TracChangeset for help on using the changeset viewer.