Changeset 141


Ignore:
Timestamp:
06/10/09 11:22:41 (15 years ago)
Author:
ericg
Message:

Bug correction for overlay of f/bin(next)

Location:
trunk/procs
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/procs/def_work.pro

    r109 r141  
    147147               cmdi.proj = strmid(cmdi.proj, 0, strpos(cmdi.proj, '[')) 
    148148            ENDIF ELSE leg_format = default_txt_format  
     149 
    149150            ; decode proj for number of overlays in window (min=1) 
    150151            overl = strpos(cmdi.proj, 'o') 
     
    155156            ENDELSE 
    156157 
     158            nadd = nover 
     159 
    157160            ; make loop on number of overlays 
    158161            iover = 1 
     162            inext = 0 
    159163            WHILE iover LE nover DO BEGIN 
    160164 
    161                idx = iline + nb_lines + iover - 1 
     165               idx = iline + nb_lines + iover + inext - 1 
    162166               cmdo = decode_cmd(cmdline, idx) 
    163167               idx_main=idx 
    164 ;                print, ' plot,window,overlay   = ', iplot, iwin, iover 
    165 ;                print, '     max win, max over = ', nwin, nover 
    166 ;                print, ' index = ', idx 
    167  
    168                CASE cmdo.exp OF 
    169                   'CT': BEGIN 
    170                      data_domain = 'global' 
    171                      print, 'WARNING set data_domain = global in def_work' 
    172                   END  
    173                   'GloSea40':BEGIN 
    174                      data_domain = 'glosea' 
    175                      print, 'WARNING set data_domain = glosea in def_work' 
    176                   END  
    177                   ELSE: 
    178                ENDCASE  
     168 
     169               IF debug_w THEN BEGIN  
     170                  print, ' In def_work:' 
     171                  print, ' plot,window,overlay, inext   = ', iplot, iwin, iover, inext 
     172                  print, '     max win, max over = ', nwin, nover 
     173                  print, ' index = ', idx 
     174               ENDIF  
     175 
    179176               ; make overlay 
    180177 
     
    183180               ; end of loop on overlays 
    184181               iover = iover+1 
     182               ; special case y=f(next) on 2 lines 
     183 
     184               IF strpos(cmdi.var, '(next)') GT -1 THEN BEGIN  
     185                  inext = inext + 1 
     186                  nadd =  nadd + 1 
     187               ENDIF ELSE BEGIN  
     188                  inext = 0 
     189               ENDELSE  
     190 
    185191            ENDWHILE 
    186             nb_lines =  nb_lines + nover 
    187  
    188          ; special case y=f(next) on 2 lines 
    189  
    190             IF strpos(cmdi.var, '(next)') GT -1 THEN nb_lines =  nb_lines + 1 
     192            nb_lines =  nb_lines + nadd 
     193 
    191194             
    192195         ; end of loop on windows 
  • trunk/procs/plt_map.pro

    r128 r141  
    788788       ELSE: BEGIN ; $$$$$$$$$$$$$$$$$$$$$$$$$$   make plot   $$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$$  
    789789 
    790          CASE plttyp OF  
     790          IF debug_w THEN BEGIN 
     791             print, '   Plot type (plttyp) = ', plttyp 
     792             stop 
     793          ENDIF  
     794         Case plttyp OF  
    791795            'plt': BEGIN  
    792796         ; 
     
    10121016               IF common_time EQ 1 THEN BEGIN 
    10131017                  IF iover EQ 1 THEN time_prev = time ELSE time = time_prev 
    1014                ENDIF  
     1018               ENDIF 
    10151019                
    10161020               IF st_rms EQ 1 THEN BEGIN ; time series of rms deviation on a sigma surface 
Note: See TracChangeset for help on using the changeset viewer.