Ignore:
Timestamp:
05/23/06 15:45:47 (18 years ago)
Author:
smasson
Message:

debug xxx and cie + clean data file + rm perldoc_idl

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/PLOTS/DIVERS/axis4pltz.pro

    r37 r74  
    4141; 
    4242; include common 
    43 @cm_general 
     43@cm_4mesh 
    4444  IF NOT keyword_set(key_forgetold) THEN BEGIN 
    4545@updatekwd 
     
    4949; define the mask used for this section 
    5050;-------------------------------------------------------------------- 
    51    if mask[0] NE -1 AND (size(mask))[0] NE 2 then begin 
    52       if type EQ 'xz' then mask = total(mask, 2) < 1 $ 
    53       ELSE mask = total(mask, 1) < 1 
    54    endif 
     51  if mask[0] NE -1 AND (size(mask))[0] NE 2 then begin 
     52    if type EQ 'xz' then mask = total(mask, 2) < 1 $ 
     53    ELSE mask = total(mask, 1) < 1 
     54  endif 
    5555;-------------------------------------------------------------------- 
    5656; define xxaxis and yyaxis the axis used for this section 
     
    6666  ENDCASE 
    6767; 
    68    if type eq 'yz' then BEGIN  
    69       if (size(gphi))[0] EQ 2 then xxaxis=reform(gphi[0, *]) ELSE xxaxis=gphi  
    70       if keyword_set(sin) then xxaxis = sin(!pi/180.*xxaxis) 
    71       if (size(z))[0] EQ 1 THEN zzaxis = z ELSE zzaxis = z 
    72    ENDIF ELSE BEGIN 
    73       xxaxis = glam[*, 0] 
    74       if (size(z))[0] EQ 1 then zzaxis = z ELSE zzaxis = z 
    75    ENDELSE  
     68  if type eq 'yz' then BEGIN  
     69    IF (size(gphi))[0] EQ 1 then xxaxis = gphi ELSE BEGIN  
     70      IF keyword_set(key_irregular) THEN BEGIN  
     71        cln = (where(gphi EQ max(gphi)))[0] 
     72        xxaxis = reform(gphi[cln MOD nx, *]) 
     73      ENDIF ELSE xxaxis = reform(gphi[0, *]) 
     74    ENDELSE 
     75    if keyword_set(sin) then xxaxis = sin(!pi/180.*xxaxis) 
     76    if (size(z))[0] EQ 1 THEN zzaxis = z ELSE zzaxis = z 
     77  ENDIF ELSE BEGIN 
     78    xxaxis = glam[*, 0] 
     79    if (size(z))[0] EQ 1 then zzaxis = z ELSE zzaxis = z 
     80  ENDELSE  
    7681;---------------------------------------------------------- 
    7782; on projette l''axe z dans [0,1] 
    7883;---------------------------------------------------------- 
    79    if not keyword_set(zratio) then zratio = 2./3 
    80    if zoom ge profmax then zratio=1. 
    81    if zoom LT profmax then begin 
    82       mp = projsegment([profmin, zoom], [0, zratio], /mp) 
    83       zzaxis[where(zzaxis LE zoom)] = mp[0]*zzaxis[where(zzaxis LE zoom)]+mp[1] 
    84       mp = projsegment([zoom, profmax], [zratio, 1], /mp) 
    85       zzaxis[where(zzaxis GE zoom)] = mp[0]*zzaxis[where(zzaxis GE zoom)]+mp[1] 
    86    ENDIF ELSE BEGIN 
    87       mp = projsegment([profmin, profmax], [0, 1], /mp) 
    88       zzaxis = mp[0]*zzaxis+mp[1] 
    89    ENDELSE 
     84  if not keyword_set(zratio) then zratio = 2./3 
     85  if zoom ge profmax then zratio = 1. 
     86  if zoom LT profmax then begin 
     87    mp = projsegment([profmin, zoom], [0, zratio], /mp) 
     88    zzaxis[where(zzaxis LE zoom)] = mp[0]*zzaxis[where(zzaxis LE zoom)]+mp[1] 
     89    mp = projsegment([zoom, profmax], [zratio, 1], /mp) 
     90    zzaxis[where(zzaxis GE zoom)] = mp[0]*zzaxis[where(zzaxis GE zoom)]+mp[1] 
     91  ENDIF ELSE BEGIN 
     92    mp = projsegment([profmin, profmax], [0, 1], /mp) 
     93    zzaxis = mp[0]*zzaxis+mp[1] 
     94  ENDELSE 
    9095 
    9196; to draw from bottom to top (avoid using cell_fill) 
    92    CASE size(zzaxis, /n_dimensions) OF 
    93      1:zzaxis=reverse(-zzaxis)  
    94      2:zzaxis=reverse(-zzaxis,2)  
    95    ENDCASE 
    96    if mask[0] NE -1 then mask=reverse(mask,2) 
     97  CASE size(zzaxis, /n_dimensions) OF 
     98    1:zzaxis = reverse(-zzaxis)  
     99    2:zzaxis = reverse(-zzaxis, 2)  
     100  ENDCASE 
     101  if mask[0] NE -1 then mask = reverse(mask, 2) 
    97102 
    98    return 
     103  return 
    99104end 
Note: See TracChangeset for help on using the changeset viewer.