Changeset 246 for trunk/SRC/ToBeReviewed


Ignore:
Timestamp:
05/29/07 10:57:28 (17 years ago)
Author:
smasson
Message:

bugfix when using /NOFILL with NaN values

Location:
trunk/SRC/ToBeReviewed/PLOTS/DESSINE
Files:
4 edited

Legend:

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

    r232 r246  
    126126; LABEL=0 or is not specified. 
    127127; 
     128; @keyword NOFILL 
     129; To make just isolines with no filling 
     130; 
    128131; @keyword NOTRI 
    129132; To force not to use the triangulation. Beware, in this case, the 
     
    192195         , STYLE = style, CONTMAX = contmax, CONTMIN = contmin, NLEVEL = nlevel, CONTNLEVEL = contnlevel $ 
    193196         , VECTEUR = vecteur, MAP = map, MININ = minin, MAXIN = maxin $ 
    194          , CONT_NOFILL = cont_nofill $ 
     197         , NOFILL = nofill, CONT_NOFILL = cont_nofill $ 
    195198         , USETRI = usetri, NOTRI = notri, MASKFILL = maskfill $ 
    196199         , DUPLICATE = duplicate, STRICTFILL = strictfill, OVERPLOT = overplot $ 
     
    333336; extrapolation of field on lands and setup of min, max values 
    334337;-------------------------------------------------------------- 
    335   if keyword_set(nan) then begin 
    336     z2d[where(masknan EQ 0)] = max 
     338  IF keyword_set(nan) THEN BEGIN 
     339    IF NOT keyword_set(nofill) THEN z2d[where(masknan EQ 0)] = max 
    337340  ENDIF ELSE masknan = 1 
    338341; filling the mask values 
     
    467470    , overplot = keyword_set(overplot)+keyword_set(map) $ 
    468471    , c_linestyle = linestyle, c_labels = 1-(indgen(n_elements(level_z2d)) MOD 2) $ 
    469     , c_thick = thick, cont_nofill = cont_nofill, nan = nan $ 
     472    , c_thick = thick, nofill = nofill, cont_nofill = cont_nofill, nan = nan $ 
    470473    , coinmontemask = coinmontemask, coindescendmask = coindescendmask $ 
    471474    , coinmontenan = coinmontenan, coindescendnan = coindescendnan $ 
  • trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltbase.pro

    r231 r246  
    7575; 
    7676; @keyword NOFILL 
    77 ; To make just isolines. 
     77; To make just isolines with no filling 
    7878; 
    7979; @keyword NOCONTOUR 
     
    253253; We trace points in white at NaN before drawing coasts with a trait. 
    254254; 
    255     if keyword_set(trinan) THEN BEGIN 
     255    if keyword_set(trinan) AND NOT keyword_set(nofill) THEN BEGIN 
    256256      IF size(x, /n_dimensions) EQ 1 THEN x = x#replicate(1, (size(masknan))[2]) 
    257257      IF size(y, /n_dimensions) EQ 1 THEN y = replicate(1, (size(masknan))[1])#y 
  • trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltt.pro

    r240 r246  
    125125; LABEL=0 or is not specified. 
    126126; 
     127; @keyword NOFILL 
     128; To make just isolines with no filling 
     129; 
    127130; @keyword CONTNLEVEL {default=20} 
    128131; When  CONTOUR is activated, it is the number of contours 
     
    189192;- 
    190193; 
    191 PRO pltt,tab,giventype,givenmin,givenmax,datmin,datmax,BOXZOOM = boxzoom, CONTOUR=contour $ 
    192          ,ENDPOINTS=endpoints,INTERVALLE=intervalle,INV=inv  $ 
    193          ,CONTINTERVALLE=contintervalle,LABEL=label,CONTLABEL=contlabel $ 
    194          ,STYLE=style, CONTMAX=contmax $ 
    195          ,CONTMIN=contmin,NLEVEL=nlevel,CONTNLEVEL=contnlevel $ 
    196          ,COL1D=col1d,STY1D=sty1d, MININ = minin, MAXIN = maxin $ 
    197          ,OV1D=ov1d, FILTER = filter, TREND_TYPE = trend_type $ 
    198          ,REPEAT_C = repeat_c, TYPEIN = typein, XT = XT, YT = YT, ZT = zt $ 
    199          , TT = tt, STRICTFILL = strictfill, OVERPLOT = overplot $ 
    200          , EXCHANGE_XY = exchange_xy $ 
    201          , _EXTRA = ex 
     194PRO pltt, tab, giventype, givenmin, givenmax, datmin, datmax, BOXZOOM = boxzoom, CONTOUR = contour $ 
     195          , ENDPOINTS = endpoints, INTERVALLE = intervalle, INV = inv  $ 
     196          , CONTINTERVALLE = contintervalle, LABEL = label, CONTLABEL = contlabel $ 
     197          , STYLE = style, CONTMAX = contmax, CONTMIN = contmin $ 
     198          , NOFILL = nofill, NLEVEL = nlevel, CONTNLEVEL = contnlevel $ 
     199          , COL1D = col1d, STY1D = sty1d, MININ = minin, MAXIN = maxin $ 
     200          , OV1D = ov1d, FILTER = filter, TREND_TYPE = trend_type $ 
     201          , REPEAT_C = repeat_c, TYPEIN = typein, XT = XT, YT = YT, ZT = zt $ 
     202          , TT = tt, STRICTFILL = strictfill, OVERPLOT = overplot $ 
     203          , EXCHANGE_XY = exchange_xy $ 
     204          , _EXTRA = ex 
    202205; 
    203206  compile_opt idl2, strictarrsubs 
     
    454457;         yy = replicate(1, nbx)#yy 
    455458         masknan = finite(z2d) 
    456          z2d[where(masknan EQ 0)] = max 
     459         IF NOT keyword_set(nofill) THEN z2d[where(masknan EQ 0)] = max 
    457460         mask = temporary(mask)*temporary(masknan) 
    458461      ENDIF 
     
    475478       , c_linestyle=linestyle,c_labels=1-(indgen(n_elements(level_z2d)) MOD 2) $ 
    476479       , trichamp = triangulation, trimsk = triangulation, overplot = overplot $ 
    477        , c_thick=thick, performance = key_performance, usetri = usetri $ 
     480       , c_thick=thick, performance = key_performance, nofill = nofill, usetri = usetri $ 
    478481       , coinmontemask=coinmontemask, coindescendmask=coindescendmask, _extra = ex 
    479482;------------------------------------------------------------ 
  • trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltz.pro

    r231 r246  
    104104; LABEL=0 or is not specified. 
    105105; 
     106; @keyword NOFILL 
     107; To make just isolines with no filling 
     108; 
    106109; @keyword NOTRI 
    107110; To force not to use the triangulation. Beware, in this case, the 
     
    162165          , STYLE = style, CONTMAX = contmax, SIN = sin, TYPEIN = typein $ 
    163166          , CONTMIN = contmin, NLEVEL = nlevel, CONTNLEVEL = contnlevel $ 
    164           , NOTRI = notri, USETRI = usetri, FILLXDIR = fillxdir $ 
     167          , NOFILL = nofill, NOTRI = notri, USETRI = usetri, FILLXDIR = fillxdir $ 
    165168          , ZOOM = zoom, XZ = xz, YZ = yz, MININ = minin, MAXIN = maxin $ 
    166169          , STRICTFILL = strictfill, OVERPLOT = overplot, MASKFILL = maskfill $ 
     
    296299  if keyword_set(nan) then BEGIN 
    297300    masknan = finite(z2d) 
    298     z2d[where(masknan EQ 0)] = max 
     301    IF NOT keyword_set(nofill) THEN z2d[where(masknan EQ 0)] = max 
    299302  ENDIF ELSE masknan = 1 
    300303  IF n_elements(fillxdir) EQ 0  THEN fillxdir = 1 
     
    368371    , c_linestyle = linestyle $ 
    369372    , c_labels = 1-(indgen(n_elements(level_z2d)) MOD 2) $ 
    370     , c_thick = thick, unsur2 = unsur2 $ 
     373    , c_thick = thick, unsur2 = unsur2, NOFILL = nofill $ 
    371374    , maskorg = maskorg, masknan = masknan, trinan = trinan $ 
    372375    , coinmontenan = coinmontenan, coindescendnan = coindescendnan $ 
Note: See TracChangeset for help on using the changeset viewer.