Ignore:
Timestamp:
06/14/07 14:41:34 (17 years ago)
Author:
smasson
Message:

small bugfix: z2d[0] = -1 and z2d has more than 1 element

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltz.pro

    r246 r251  
    219219    section, tab, z2d, glam, gphi, ENDPOINTS = endpoints, TYPE = type $ 
    220220    , BOXZOOM = boxzoom, DIREC = direc, WDEPTH = wdepth, _extra = ex 
    221     if z2d[0] EQ -1 AND n_elements(contour) ne 4 then BEGIN 
     221    if n_elements(z2d) EQ 1 AND z2d[0] EQ -1 AND n_elements(contour) ne 4 then BEGIN 
    222222      restoreboxparam, 'boxparam4pltz.dat' 
    223223      return 
     
    236236    z2d = checkfield(tab, 'pltz', TYPE = type, BOXZOOM = boxzoom $ 
    237237                     , DIREC = direc, WDEPTH = wdepth, _extra = ex) 
    238     if z2d[0] EQ -1 AND n_elements(contour) ne 4 then BEGIN 
     238    if n_elements(z2d) EQ 1 AND z2d[0] EQ -1 AND n_elements(contour) ne 4 then BEGIN 
    239239      restoreboxparam, 'boxparam4pltz.dat' 
    240240      return 
     
    263263  autoscale = testvar(var = min) EQ testvar(var = max) AND NOT keyword_set(intervalle) 
    264264  determineminmax, z2d, mask, mi, ma, MININ = min, MAXIN = max, nan = nan, INTERVALLE = intervalle, _extra = ex 
    265   if z2d[0] EQ -1 THEN GOTO, sortie 
     265  if n_elements(z2d) EQ 1 AND z2d[0] EQ -1 THEN GOTO, sortie 
    266266; We do an autoscale if needed. 
    267267  if autoscale then autoscale, min, max, intervalle 
Note: See TracChangeset for help on using the changeset viewer.