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

bugfix with max values of strictfill keyword

File:
1 edited

Legend:

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

    r325 r326  
    129129; @keyword STRICTFILL 
    130130; Activate this keyword to that the filling of contours be 
    131 ; precisely done between the min and the max specified letting values inferior at the 
    132 ; specified min and values superior at the specified max in white. 
     131; precisely done between the min and the max specified. Values inferior/superior at the 
     132; specified min/max are not filled. Note that max values a considered 
     133; as missing values so cells containing one or more corners with 
     134; values above max will have no contours drawn through them.   
    133135; 
    134136; @keyword STYLE {default=style=0} 
     
    305307    IF NOT keyword_set(nofill) THEN z2d[where(masknan EQ 0)] = max 
    306308  ENDIF ELSE masknan = 1 
     309  IF keyword_set(strictfill) THEN BEGIN 
     310    tmp = z2d ge max 
     311    tmp = 1b - byte(extrapolate(tmp, tmp, 1)) 
     312    key_save = key_periodic & key_periodic = 0 
     313    trifield = triangule(temporary(tmp)*mask, coinmonte = coinmontemask $ 
     314                         , coindescend = coindescendmask, keep_cont = 0) 
     315    key_periodic = key_save 
     316  ENDIF 
    307317  IF n_elements(fillxdir) EQ 0  THEN fillxdir = 1 
    308318  IF keyword_set(fillxdir) THEN BEGIN 
     
    335345;   if keyword_set(notri) then trifield = -1 $ 
    336346;   ELSE trifield = triangule(mask,/basic) 
    337   if (usetri GE 1 AND (vargrid EQ 'T' OR vargrid EQ 'W')) $ 
    338     OR (usetri EQ 2 AND (vargrid NE 'T' AND vargrid NE 'W')) THEN $ 
    339     trifield = triangule(mask, /basic) 
     347  if NOT keyword_set(strictfill) AND ((usetri GE 1 AND (vargrid EQ 'T' OR vargrid EQ 'W')) $ 
     348                                      OR (usetri EQ 2 AND (vargrid NE 'T' AND vargrid NE 'W'))) THEN $ 
     349                                         trifield = triangule(mask, /basic) 
    340350; 
    341351  IF NOT keyword_set(endpoints)  THEN BEGIN 
Note: See TracChangeset for help on using the changeset viewer.