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/plt.pro

    r325 r326  
    147147; @keyword STRICTFILL 
    148148; Activate this keyword to that the filling of contours be 
    149 ; precisely done between the min and the max specified letting values inferior at the 
    150 ; specified min and values superior at the specified max in white. 
     149; precisely done between the min and the max specified. Values inferior/superior at the 
     150; specified min/max are not filled. Note that max values a considered 
     151; as missing values so cells containing one or more corners with 
     152; values above max will have no contours drawn through them.   
    151153; 
    152154; @keyword STYLE {default=style=0} 
     
    342344    IF NOT keyword_set(nofill) THEN z2d[where(masknan EQ 0)] = max 
    343345  ENDIF ELSE masknan = 1 
     346  IF keyword_set(strictfill) THEN BEGIN 
     347    tmp = z2d ge max 
     348    tmp = 1b - byte(extrapolate(tmp, tmp, 1, x_periodic = keyword_set(key_periodic)*(nx EQ jpi) )) 
     349    trifield = triangule(temporary(tmp)*mask, coinmonte = coinmontemask $ 
     350               , coindescend = coindescendmask, keep_cont = 0) 
     351    indicezoommask = (lindgen(jpi, jpj))[firstx:lastx, firsty:lasty] 
     352  ENDIF 
    344353; filling the mask values 
    345354; we fill only masknan or we fill mask*masknan? 
Note: See TracChangeset for help on using the changeset viewer.