Ignore:
Timestamp:
12/13/07 13:55:52 (16 years ago)
Author:
smasson
Message:

bugfix with max values of strictfill keyword

File:
1 edited

Legend:

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

    r325 r326  
    150150; @keyword STRICTFILL 
    151151; Activate this keyword to that the filling of contours be 
    152 ; precisely done between the min and the max specified letting values inferior at the 
    153 ; specified min and values superior at the specified max in white. 
     152; precisely done between the min and the max specified. Values inferior/superior at the 
     153; specified min/max are not filled. Note that max values a considered 
     154; as missing values so cells containing one or more corners with 
     155; values above max will have no contours drawn through them.   
    154156; 
    155157; @keyword STYLE {default=style=0} 
     
    467469         IF NOT keyword_set(nofill) THEN z2d[where(masknan EQ 0)] = max 
    468470         mask = temporary(mask)*temporary(masknan) 
     471       ENDIF 
     472      usetri = 0 ; default definition 
     473      IF keyword_set(strictfill) THEN BEGIN 
     474        tmp = z2d ge max 
     475        tmp = 1b - byte(extrapolate(tmp, tmp, 1)) 
     476        key_save = key_periodic & key_periodic = 0 
     477        trifield = triangule(temporary(tmp)*mask, coinmonte = coinmontemaskaa $ 
     478                             , coindescend = coindescendmaskaa, keep_cont = 0) 
     479        key_periodic = key_save 
     480        usetri = 2 
    469481      ENDIF 
    470482      z2d = remplit(z2d,nite=2+keyword_set(nan), mask = mask, /basique, _extra=ex) 
    471483      if NOT keyword_set(strictfill) then z2d = min > z2d <  max 
    472       usetri = 0 ; default definition 
    473484      if keyword_set(nan) then BEGIN 
    474485        triangulation = triangule(mask, /basic, coinmonte = coinmontemask $ 
     
    482493                                     , coindescend = coindescendmask) 
    483494      ENDIF 
     495      IF NOT keyword_set(strictfill) THEN trifield = triangulation 
    484496;---------------------------------------------------------------------- 
    485497      pltbase, z2d, xx, yy, mask, xx, yy, level_z2d, colnumb, contour = contour, /noerase $ 
    486498       , c_linestyle=linestyle,c_labels=1-(indgen(n_elements(level_z2d)) MOD 2) $ 
    487        , trichamp = triangulation, trimsk = triangulation, overplot = overplot $ 
     499       , trichamp = trifield, trimsk = triangulation, overplot = overplot $ 
    488500       , c_thick=thick, performance = key_performance, nofill = nofill, usetri = usetri $ 
    489501       , coinmontemask=coinmontemask, coindescendmask=coindescendmask, _extra = ex 
Note: See TracChangeset for help on using the changeset viewer.