Changeset 128


Ignore:
Timestamp:
05/29/09 11:55:47 (15 years ago)
Author:
ericg
Message:

Added mean and rms info in plt xy map requires new moyenne.pro

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/procs/plt_map.pro

    r124 r128  
    795795         ;       
    796796               print, '     '+cmd.var+' data to plot min and max :            ', $ 
    797                 min(fld(where (fld NE valmask)), /nan), max(fld(where (fld NE valmask)), /nan) 
     797                min(fld(where (fld LE valmask/10)), /nan), max(fld(where (fld LE valmask/10)), /nan) 
    798798               print, '' 
    799799 
     
    801801 
    802802               niveau = 1 
     803                
     804               ; compute mean and rms of field 
     805               zmean = moyenne(fld, 'xy', boite = box_plt, /NAN) 
     806               zrms = moyenne(fld, 'xy', boite = box_plt, /RMS, /NAN) 
     807               filleg = ' [region mean/rms='+string(strtrim(zmean, 2))+'/'+string(strtrim(zrms, 2))+']' 
    803808 
    804809               IF vecplot EQ 0 THEN BEGIN  
     
    808813                     fldzm = replicate(1, (size(fld))(1))#fldzm 
    809814                     fld = fld-fldzm 
    810                      filleg = ' Eddy ' 
     815                     edd_txt = ' Eddy ' 
    811816                  ENDIF ELSE BEGIN  
    812                      filleg = '' 
     817                     edd_txt = ''  
    813818                  ENDELSE  
     819                   
    814820 
    815821                  IF hotyp EQ 'xyt' THEN date_txt = 'monthly' 
    816822 
    817                   pltcmd = 'plt,{a:fld, d:'''+date_txt+''', n:'''+filleg+varlegend+' '+legbox+legsurf+''', u:'''+field.units+''', g:'''+vargrid+'''}'+mincmd+maxcmd+intcmd+com_strplt+strcont+map_cmd 
     823                  pltcmd = 'plt,{a:fld, d:'''+date_txt+''', n:'''+edd_txt+varlegend+' '+legbox+legsurf+''', u:'''+field.units+filleg+''', g:'''+vargrid+'''}'+mincmd+maxcmd+intcmd+com_strplt+strcont+map_cmd 
    818824                  ;; For 2D plots with overlays (correlation and proba for instance) 
    819825                  ;; Scratch the titles and define contours style for the second plot 
Note: See TracChangeset for help on using the changeset viewer.