Ignore:
Timestamp:
04/11/11 18:05:51 (13 years ago)
Author:
pinsard
Message:

add minimal header in paper01 IDL files

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/paper01/fig7/ws_validation_scatter_2000_2009_basin.pro

    r41 r43  
    1 ;------------------------------------------------------------ 
     1;+ 
     2; 
     3; .. _ws_validation_scatter_2000_2009_basin.pro 
     4; 
     5; ========================================= 
     6; ws_validation_scatter_2000_2009_basin.pro 
     7; ========================================= 
     8; 
     9; DESCRIPTION 
     10; =========== 
     11; 
     12; SEE ALSO 
     13; ======== 
     14; 
     15; :ref:`tropflux_profile.sh` 
     16; 
     17; EXAMPLES 
     18; ======== 
     19; 
     20; :: 
     21; 
     22;  IDL> @tropflux_init 
     23;  IDL> date1=++ 
     24;  IDL> date2=++ 
     25;  IDL> ws_validation_scatter_2000_2009_basin, date1, date2 
     26; 
     27; EVOLUTIONS 
     28; ========== 
     29; 
     30; $Id$ 
     31; 
     32; - fplod 20110411T142955Z aedon.locean-ipsl.upmc.fr (Darwin) 
     33; 
     34;   * minimal header 
     35; 
     36;- 
    237pro ws_validation_scatter_2000_2009_basin,date1,date2 
    338@common 
    4 ;------------------------------------------------------------ 
    539 
    640reinitplt, /z,/invert 
     
    842 
    943openps, FILENAME = 'idl.ps' 
    10 ;------------------------------------------------------------ 
    1144;; Before running this program, you have to compile the following subrutines 
    1245;;   1.  .r read_era_total 
     
    4982sitelist=['8s125w', '8s110w', '8s95w','5s155w', '5s140w', '5s125w', '5s110w', '5s95w','2s155w', '2s140w', $ 
    5083          '2s125w', '2s110w', '2s95w', '0n155w', '0n140w', '0n125w', '0n110w', '0n95w', '2n155w', '2n140w', $ 
    51           '2n125w', '2n110w', '2n95w',  '5n155w', '5n140w', '5n125w', '5n110w', '5n95w']  
     84          '2n125w', '2n110w', '2n95w',  '5n155w', '5n140w', '5n125w', '5n110w', '5n95w'] 
    5285ocean='Pac_coldtongue' 
    5386 
     
    6598 
    6699nsmooth=1 
    67 ;------------------------------------------------------------------------------------------------------------------------ 
    68100;;   This program will create the following text files with statistics of respective variables 
    69 ;------------------------------------------------------------------------------------------------------------------------ 
    70101close,/all 
    71102 
     
    91122printf,6, 'x     y      cor    bias     std     rmsd      mean_tao' 
    92123 
    93 ;------------------------------------------------------------------------------------------------------------------------ 
    94124;; first reading the whole ERAI uncorrected and corrected data 
    95125;; date1=20000101 & date2=20090931 
     
    97127file='/Volumes/Iomega_HDD/TropFlux/input_uncor/erai_ws_19890101_20091231_oafluxgrid.nc' 
    98128initncdf, file 
    99 u=read_ncdf('u10',date1,date2,file=file,/nostr)  
    100 ;v=read_ncdf('v10',date1,date2,file=file,/nostr)      
    101 ;unc=sqrt(u*u+v*v)  
     129u=read_ncdf('u10',date1,date2,file=file,/nostr) 
     130;v=read_ncdf('v10',date1,date2,file=file,/nostr) 
     131;unc=sqrt(u*u+v*v) 
    102132;help, unc 
    103133 
    104134;file='/Volumes/Iomega_HDD/TropFlux/input_cor/full_cor/TropFlux_ws_19890101_20091231_v20.nc' 
    105135;initncdf, file 
    106 ;cor=read_ncdf('ws',date1,date2,file=file,/nostr)  
     136;cor=read_ncdf('ws',date1,date2,file=file,/nostr) 
    107137;help, cor 
    108138 
     
    114144;fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/uwind_ncep2_oafluxgrid_19890101_20091231.nc' 
    115145;initncdf, fi 
    116 ;u=read_ncdf("u", date1-1, date2, file=fi,/nostr)  
     146;u=read_ncdf("u", date1-1, date2, file=fi,/nostr) 
    117147;fi='/Volumes/Iomega_HDD/flux_reconstruction/ncep2/vwind_ncep2_oafluxgrid_19890101_20091231.nc' 
    118148;initncdf, fi 
    119 ;v=read_ncdf("v", date1-1, date2, file=fi,/nostr)    
     149;v=read_ncdf("v", date1-1, date2, file=fi,/nostr) 
    120150;nce=sqrt(u*u+v*v) 
    121151;help, nce 
     
    142172help, unc, cor, oaf, nce, ws_tmi, nce1 
    143173 
    144 ;------------------------------------------------------------------------------------------------------------------------ 
    145174nn=n_elements(sitelist) 
    146175date1=date1 
     
    168197    uncr=tropflux 
    169198 
    170      extract_flux_tropflux,cor,box, $   
     199     extract_flux_tropflux,cor,box, $ 
    171200        tropflux 
    172201     corr=tropflux 
    173      
     202 
    174203     extract_flux_tropflux,oaf,box, $ 
    175204        tropflux 
     
    188217     ncep1=tropflux 
    189218 
    190     ind=where(finite(ws)) & ws=ws(ind) & uncr_ws=uncr(ind)  & corr_ws=corr(ind)  
     219    ind=where(finite(ws)) & ws=ws(ind) & uncr_ws=uncr(ind)  & corr_ws=corr(ind) 
    191220    oafl=oafl(ind) & ncep=ncep(ind) & tmi=tmi(ind) & ncep1=ncep1(ind) 
    192221 
    193222    mean_tao=total(ws)/n_elements(ws) 
    194   
     223 
    195224    statistics_3var_v1, ws, uncr_ws, corr_ws, $ 
    196225         cor1, cor2, bias1, bias2, std1, std2, rmsd1, rmsd2 
    197   
     226 
    198227    printf, 1, x, y, cor1, bias1, std1, rmsd1, mean_tao, format='(f6.2, 3x, f6.2, 3x, f5.2,3x,f5.2,3x,f4.2,3x,f4.2,3x,f5.2)' 
    199228    printf, 2, x, y, cor2, bias2, std2, rmsd2, mean_tao, format='(f6.2, 3x, f6.2, 3x, f5.2,3x,f5.2,3x,f4.2,3x,f4.2,3x,f5.2)' 
     
    210239 
    211240endfor 
    212 ;----------------------------------------------------------------------------------------- 
    213 close,/all   
     241close,/all 
    214242fi_ws_erai='/Users/pkb/work/MY_SAXO/flux_automat/ws_2000_2009_erai_'+ocean+'.txt' 
    215243res=read_ascii(fi_ws_erai,data_start=1) 
     
    376404oplot, mean_tao, yfit, color=250, thick=2 
    377405 
    378 ;----------------------------------------------------------- 
    379406closeps 
    380407 
     
    384411return 
    385412end 
    386 ;-------------------------------------------------------------------------- 
    387413function x_site_location, site 
    388414    n1=strpos(site, 's') 
     
    399425return, float(x) 
    400426end 
    401 ;-------------------------------------------------------------------------- 
    402427function y_site_location, site 
    403428    n1=strpos(site, 'e') 
     
    425450return,float(y) 
    426451end 
    427  
    428 ;-------------------------------------------------------------------------- 
    429  
Note: See TracChangeset for help on using the changeset viewer.