source: trunk/SRC/ToBeReviewed/PLOTS/DESSINE/pltz.pro @ 326

Last change on this file since 326 was 326, checked in by smasson, 17 years ago

bugfix with max values of strictfill keyword

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 21.9 KB
Line 
1;+
2;
3; @file_comments
4; Trace vertical graphs.
5;
6; @categories
7; Graphics
8;
9; @param TAB
10; The field whose we want to make a vertical cut can be 2 kind of thing:
11;         1) An 2d or 3d array.
12;         If the field is 2d, indicate, with the keyword BOXZOOM, geographic delineations of the boxzoom.
13;         If the field is 3d, we extract the section on we average possibly before to do the plot.
14;         2)  a structure respecting all criterions specified by <pro>litchamp</pro>.
15;          See IDL> xhelp,'litchamp'. The array contained in the structure must be 2 or 3d (See case 1)
16;
17;
18; @param GIVENTYPE
19;
20; @param GIVENMIN {required}
21; valeur minimum que l'on veut prendre en compte dans le trace
22; des contours. Par defaut on prend le min de tab1 (sur les pts mer)
23;
24; @param GIVENMAX {required}
25; valeur maximum que l'on veut prendre en compte dans le trace
26; des contours. Par defaut on prend le max de tab1 (sur les pts mer)
27;
28; @keyword BOXZOOM
29; Vector indicating the geographic zone on which we want to cut the map.
30;  If BOXZOOM has :
31; 1 element : The extraction is made on [lon1, lon2, lat1, lat2, 0.,boxzoom[0]]
32; 2 elements: The extraction is made on [lon1, lon2, lat1, lat2, boxzoom[0],boxzoom[1]]
33; 4 elements: The extraction is made on [Boxzoom, 0, max([gdept, gdepw])]
34; 5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]]
35; 6 elements: The extraction is made on Boxzoom
36;
37; Where lon1, lon2,lat1,lat2 are global variables defined at the last
38; <pro>domdef</pro> !
39;
40; @keyword CONTINTERVALLE
41; When CONTOUR is activated, it is the value between 2 isolines
42; traced by a trait. So it can be different from the one specified by INTERVALLE which,
43; in this case, does not control colored isolines in color anymore. If there is noone
44; specified min, we choose a contour min which goes well with the specified interval!
45; If this keyword is not specified, we trace 20 isolines from the min to the max.
46;
47; @keyword CONTLABEL {type=integer}
48; When CONTOUR is activated, if n
49; is different of 0, choose the label type corresponding to n cases for
50; the traced by a traitisolines. To specify the type of label of the
51; colored contour, use LABEL
52;
53; @keyword CONTMAX {default=max of the keyword CONTOUR (on ocean points)}
54; When CONTOUR is activated, max value we want to consider in the isoline
55; traced by a trait's line.
56;
57; @keyword CONTMIN {default=min of the keyword CONTOUR (on ocean points)}
58; When CONTOUR is activated, min value we want to consider in the isoline
59; traced by a trait's line.
60;
61; @keyword CONTNLEVEL {default=20}
62; When  CONTOUR is activated, it is the number of contours
63; traced by a trait for drawing (active if
64; CONTLABEL=0).
65;
66; @keyword CONTOUR
67; If we want to trace contours of a different field than the one
68; whose we have the colored drawing (by example E-P in color and QSR in contours).
69; It must be a field respecting same characteristics than the argument number one of plt.
70;
71; @keyword ENDPOINTS
72; keyword specifying that we want to make a vertical cut in diagonal. Then coordinated of extremities
73; of these one are defined by the 4 elements of the vector ENDPOINTS: [x1,y1,x2,y2] which are
74; coordinates.
75;
76; @keyword INTERVALLE
77; Value of an interval between two isolines. If there is none specified min,
78; we choose a min contour which goes well with the specified interval!. If this keyword is not
79; specified, we trace 20 isoline from the min to the max. Comment: When CONTOUR is activated,
80; INTERVALLE only specify the interval between 2 colored isolines. To specify the interval
81; between 2 isolines traced by a trait, use CONTINTERVALLE.
82;
83; @keyword INV
84; Invert the color vector used to color the graph
85;               (without use the black, the white and the used palette)
86;
87; @keyword ZRATIO {default=2./3}
88; When the drawing has a zoomed part, it is the size rapport between the zoomed part,
89; hz (zoom height), and the whole drawing, ht (total height).
90;
91; @keyword LABEL {default=0}{type=integer}
92; It choose the label's type corresponding to cases in <pro>label</pro>
93; Comment: When CONTOUR is activated, it only specify the label's type for colored isolines.
94; For these one traced by a trait, use CONTLABEL.
95;
96; @keyword MAXIN
97; to specify the max value we want to plot with a keyword instead of with the
98; input parameter max. If max is defined by both, parameter and keyword, the
99; keyword is retained.
100;
101; @keyword MININ
102; to specify the min value we want to plot with a keyword instead of with the
103; input parameter min. If min is defined by both, parameter and keyword, the
104; keyword is retained.
105;
106; @keyword NLEVEL {default=20}
107; Number of contours to draw. active if
108; LABEL=0 or is not specified.
109;
110; @keyword NOFILL
111; To make just isolines with no filling
112;
113; @keyword NOTRI
114; To force not to use the triangulation. Beware, in this case, the
115; drawing only works if the grid is undeformed (It means that each point of a longitude
116; give one latitude and each point of a latitude give one longitude) except if we use
117; the keyword CELL_FILL=2.
118; Comment: if the field contain points !values.f_nan, then we even do a triangulation.
119;
120; @keyword OVERPLOT
121; To make a plot over an other one.
122; Comment: Contrarily to the use of CONTOUR or VECTEUR, the use of this keyword
123; does not the caption and/or the color bar.
124;
125; @keyword SIN
126; Activate this keyword if we want the x axis to be traced in sinus of the
127; latitude when we make a drawing f(y)
128;
129; @keyword STRICTFILL
130; Activate this keyword to that the filling of contours be
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. 
135;
136; @keyword STYLE {default=style=0}
137; Contour's style to adopt to draw isolines. See <pro>style</pro> for more informations
138;
139; @keyword WDEPTH
140; To specify that the field is at W depth instead of T
141; depth (automatically activated if vargrid eq 'W')
142;
143; @keyword XZ
144; Force to make a cut following xz
145;
146; @keyword YZ
147; Force to make a cut following yz
148;
149; @keyword ZOOM  {default=200m or max depth if it is inferior at 200m}
150; Depth where i can make our maximum zoom.
151;
152; @uses
153; common.pro
154;
155; @history
156;  Sebastien Masson (smasson\@lodyc.jussieu.fr)
157; 7/1999
158; Sebastien Masson 08/02/2000 checkfield and
159; notri keyword.
160;
161; @version
162; $Id$
163;
164; @todo
165; seb definition of paramaters L.215 à 221
166;
167;-
168PRO pltz, tab, giventype, givenmin, givenmax, BOXZOOM = boxzoom, CONTOUR = contour $
169          , ENDPOINTS = endpoints, INTERVALLE = intervalle, INV = inv, ZRATIO = zratio $
170          , CONTINTERVALLE = contintervalle, LABEL = label, CONTLABEL = contlabel $
171          , STYLE = style, CONTMAX = contmax, SIN = sin, TYPEIN = typein $
172          , CONTMIN = contmin, NLEVEL = nlevel, CONTNLEVEL = contnlevel $
173          , NOFILL = nofill, NOTRI = notri, USETRI = usetri, FILLXDIR = fillxdir $
174          , ZOOM = zoom, XZ = xz, YZ = yz, MININ = minin, MAXIN = maxin $
175          , STRICTFILL = strictfill, OVERPLOT = overplot, MASKFILL = maskfill $
176          , WDEPTH = wdepth, REALSECTION = realsection $
177          , _EXTRA = ex
178;
179  compile_opt idl2, strictarrsubs
180;
181@cm_4mesh
182@cm_4data
183@cm_4ps
184  IF NOT keyword_set(key_forgetold) THEN BEGIN
185@updatenew
186@updatekwd
187  ENDIF
188;--------------------------------------------------------------
189  tempsun = systime(1)          ; For key_performance
190;------------------------------------------------------------
191;--------------------------------------------------------------
192; 1st part: initialization small calculations...
193;--------------------------------------------------------------
194; Comment: we do not reinitialize when we call back plt in loop to use contour.
195  if n_elements(contour) ne 4 AND NOT keyword_set(overplot) then reinitplt
196;
197  if n_elements(contour) ne 4 THEN saveboxparam, 'boxparam4pltz.dat'
198;--------------------------------------------------------------
199;  Reading of the field.
200;--------------------------------------------------------------
201  if n_elements(giventype) NE 0 then type = giventype
202  if n_elements(givenmin) NE 0 then min = givenmin
203  if n_elements(givenmax) NE 0 then max = givenmax
204  if n_elements(minin) NE 0 then min = minin
205  if n_elements(maxin) NE 0 then max = maxin
206  if n_elements(realsection) EQ 0 then realsection = 1
207  IF n_elements(usetri) EQ 0 THEN BEGIN
208    IF n_elements(notri) NE 0 THEN usetri = 2-notri ELSE usetri = 1
209  ENDIF
210; no need of triangulation
211  IF usetri EQ 1 AND keyword_set(realsection) THEN usetri = 0
212; did we specify the type ?
213  if keyword_set(typein) then BEGIN
214    if size(type, /type) NE 7 AND size(type, /type) NE 0 then begin
215      if n_elements(min) NE 0 then max = min
216      min = type
217    endif
218    type = typein
219  ENDIF
220;
221  checktypeminmax, 'pltz', TYPE = type, MIN = min, MAX = max $
222    , XZ = xz, YZ = yz, ENDPOINTS = endpoints, _extra = ex
223;
224  if keyword_set(endpoints) then begin
225    section, tab, z2d, glam, gphi, ENDPOINTS = endpoints, TYPE = type $
226    , BOXZOOM = boxzoom, DIREC = direc, WDEPTH = wdepth, _extra = ex
227    if n_elements(z2d) EQ 1 AND z2d[0] EQ -1 AND n_elements(contour) ne 4 then BEGIN
228      restoreboxparam, 'boxparam4pltz.dat'
229      return
230    ENDIF
231    nx = n_elements(glam)
232    ny = nx
233    if strupcase(vargrid) EQ 'W' then begin
234      gdep = gdepw[firstzw:lastzw]
235      nz = nzw
236    ENDIF ELSE BEGIN
237      gdep = gdept[firstzt:lastzt]
238      nz = nzt
239    ENDELSE
240    mask = z2d LE valmask/10.
241  ENDIF ELSE BEGIN
242    z2d = checkfield(tab, 'pltz', TYPE = type, BOXZOOM = boxzoom $
243                     , DIREC = direc, WDEPTH = wdepth, _extra = ex)
244    if n_elements(z2d) EQ 1 AND z2d[0] EQ -1 AND n_elements(contour) ne 4 then BEGIN
245      restoreboxparam, 'boxparam4pltz.dat'
246      return
247    ENDIF
248    IF realsection EQ 1 THEN grille, mask, glam, gphi, gdep, nx, ny, nz, type = type, WDEPTH = wdepth $
249    ELSE grille, mask, glam, gphi, gdep, nx, ny, nz, WDEPTH = wdepth
250  ENDELSE
251  IF size(gdep, /n_dimensions) EQ 2 THEN usetri = 2
252;---------------------------------------------------------------
253  profmax = !y.range[0]
254  profmin = !y.range[1]
255  if not keyword_set(zoom) then zoom = 200
256  zoom = zoom[0]
257  IF zoom LT profmin THEN zoom = profmax
258  if zoom GE vert2 then zoom = profmax
259; construction of the mask and of the axis
260  axis4pltz, type, mask, glam, gphi, gdep, XXAXIS = xxaxis, ZZAXIS = zzaxis, SIN = sin, ZRATIO = zratio, ZOOM = zoom, PROFMAX = profmax, PROFMIN = profmin, _extra = ex
261; to draw from bottom to top (avoid using cell_fill)
262  z2d = reverse(z2d, 2)
263;-----------------------------------------------------------------------------
264; Determination of the mi:min and of the ma:max of z2d in the same way
265; as max: max and min: min for the drawing.
266;-----------------------------------------------------------------------------
267  nan = total(finite(z2d, /nan)) < 1
268; Do we need to do an autoscale ???
269  autoscale = testvar(var = min) EQ testvar(var = max) AND NOT keyword_set(intervalle)
270  determineminmax, z2d, mask, mi, ma, MININ = min, MAXIN = max, nan = nan, INTERVALLE = intervalle, _extra = ex
271  if n_elements(z2d) EQ 1 AND z2d[0] EQ -1 THEN GOTO, sortie
272; We do an autoscale if needed.
273  if autoscale then autoscale, min, max, intervalle
274;--------------------------------------------------------------
275;--------------------------------------------------------------
276; 2nd part: drawing
277;--------------------------------------------------------------
278;--------------------------------------------------------------
279  if n_elements(contour) NE 4 AND NOT keyword_set(overplot) THEN $
280    placedessin, 'pltz', posfenetre, posbar, contour = contour, endpoints = endpoints $
281    , direc = direc, _extra = ex
282;------------------------------------------------------------
283;--------------------------------------------------------------
284; choice of labels
285;-----------------------------------------------------------
286  if keyword_set(intervalle) AND NOT keyword_set(label) then label = 1
287  if keyword_set(label) eq 0 then cas = 0 else cas = label
288  label, cas, min, max, ncontour, level_z2d, colnumb, NLEVEL = nlevel $
289         , INTERVALLE = intervalle, strictfill = strictfill
290;--------------------------------------------------------------
291; choice of style
292;-----------------------------------------------------------
293  if not keyword_set(style) then style = 0
294  style, style, level_z2d, linestyle, thick
295  if keyword_set(inv) then colnumb = reverse(colnumb)
296;-----------------------------------------------------------
297;   definition of axes
298;----------------------------------------------------------
299  if NOT keyword_set(overplot) THEN axe, type, SIN = sin, _EXTRA = ex
300  !y.range = [-1, 0]
301;--------------------------------------------------------------
302; extrapolation of data on lands and specifying of the min/max value
303;--------------------------------------------------------------
304; define masknan
305  if keyword_set(nan) then BEGIN
306    masknan = finite(z2d)
307    IF NOT keyword_set(nofill) THEN z2d[where(masknan EQ 0)] = max
308  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
317  IF n_elements(fillxdir) EQ 0  THEN fillxdir = 1
318  IF keyword_set(fillxdir) THEN BEGIN
319; filling the mask values only in the x direction.
320    z2d = remplit(z2d, nite = nx*(1-(n_elements(maskfill) NE 0)) $
321                  , mask = mask*masknan, /basique $
322                  , /fillxdir, _extra = ex)
323; if some lines contains no field (the bottom line for ex) it must be
324; also filled with 8 neighbors method
325    IF (where(total(mask*masknan, 1) EQ 0))[0] NE -1 THEN $
326      z2d = remplit(z2d, nite = 1-(n_elements(maskfill) NE 0) $
327                    , mask = z2d LT valmask/10, /basique, _extra = ex)
328  ENDIF ELSE BEGIN
329; filling the mask values with 8 neighbors
330    z2d = remplit(z2d, nite = (1+(vargrid NE 'T')+keyword_set(nan)) $
331                  *(1-(n_elements(maskfill) NE 0)), mask = mask*masknan $
332                  , /basique, _extra = ex)
333  ENDELSE
334  if keyword_set(strictfill) EQ 0 AND n_elements(maskfill) EQ 0 $
335    then z2d = min > z2d <  max
336  if n_elements(maskfill) NE 0 then BEGIN
337    z2d = z2d*mask*masknan
338    if maskfill NE 0 then z2d = temporary(z2d) + maskfill*(1b-mask*masknan)
339  ENDIF
340;----------------------------------------------------------
341; check the mask and the triangulation according to the grid type and
342; nan values. find the coordinates of the mask
343;----------------------------------------------------------
344;   if (where(mask EQ 0))[0] EQ -1 AND NOT keyword_set(nan) then notri = 1
345;   if keyword_set(notri) then trifield = -1 $
346;   ELSE 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)
350;
351  IF NOT keyword_set(endpoints)  THEN BEGIN
352    if keyword_set(nan) then trinan = triangule(masknan, /basic, coinmonte = coinmontenan, coindescend = coindescendnan)
353    maskorg = mask
354    decoupeterre, mask, glammsk, gphimsk, gdepmsk, type = type, WDEPTH = wdepth, REALSECTION = realsection
355    axis4pltz, type, mask, glammsk, gphimsk, gdepmsk, XXAXIS = xmask, ZZAXIS = zmask, SIN = sin, ZRATIO = zratio, ZOOM = zoom, PROFMAX = profmax, PROFMIN = profmin, _extra = ex
356  ENDIF ELSE BEGIN
357    xmask = xxaxis
358    zmask = zzaxis
359  ENDELSE
360;
361  if (usetri GE 1 AND (vargrid NE 'T' AND vargrid NE 'W')) THEN BEGIN
362    IF keyword_set(realsection) THEN trimsk = triangule(mask, /basic) $
363    ELSE trimsk = triangule(mask, /basic, coinmonte = coinmontemask $
364                            , coindescend = coindescendmask)
365  ENDIF
366;------------------------------------------------------------
367; dessin en lui meme
368;------------------------------------------------------------
369  IF n_elements(romszinfos) EQ 1 THEN BEGIN
370; add one line at bottom to have nicer plot (colors go until the ocean bottom)
371    IF n_elements(romszinfos.h) NE 1 THEN BEGIN
372      CASE type OF
373        'xz':romsh = moyenne(romszinfos.h, 'y')
374        'yz':romsh = moyenne(romszinfos.h, 'x')
375      ENDCASE
376      IF nzt EQ jpk THEN BEGIN
377        z2d = [[z2d], [z2d[*, jpk-1]]]
378        zzaxis = [[zzaxis], [romsh]]
379      ENDIF
380    ENDIF
381  ENDIF
382  pltbase, z2d, xxaxis, zzaxis, mask, xmask, zmask $
383    , level_z2d, colnumb, overplot = overplot $
384    , contour = contour, trichamp = trifield, trimsk = trimsk  $
385    , c_linestyle = linestyle $
386    , c_labels = 1-(indgen(n_elements(level_z2d)) MOD 2) $
387    , c_thick = thick, unsur2 = unsur2, NOFILL = nofill $
388    , maskorg = maskorg, masknan = masknan, trinan = trinan $
389    , coinmontenan = coinmontenan, coindescendnan = coindescendnan $
390    , coinmontemask = coinmontemask, coindescendmask = coindescendmask $
391    , REALSECTION = realsection, USETRI = usetri, _extra = ex
392;------------------------------------------------------------
393; recall of pltz in loop when contour is activated
394;------------------------------------------------------------
395  if n_elements(contour) eq 4 then BEGIN ; It is the second time I pass in pltt
396    contour = {mietma:[mi, ma], unit:varunit, inter:intervalle} ; I send back the min, the max and the unity
397    return
398  endif
399  if keyword_set(contour) THEN BEGIN
400    pourlegende = [1, 1, 1, 1]
401    oldattributs = saveatt()
402    oldcolnumb = colnumb
403    pltz, contour, contmin, contmax, CONTOUR = pourlegende, ZRATIO = zratio $
404      , INTERVALLE = contintervalle, LABEL = contlabel, STYLE = style, /noerase  $
405      , NLEVEL = contnlevel, ZOOM = zoom, BOXZOOM = boxzoom, ENDPOINTS = endpoints $
406      , STRICTFILL = strictfill, REALSECTION = realsection, MASKFILL = maskfill $
407      , USETRI = usetri, WDEPTH = wdepth, _extra = ex
408    restoreatt, oldattributs
409    colnumb = oldcolnumb
410  ENDIF
411;------------------------------------------------------------
412;------------------------------------------------------------
413; 3rd part: drawing of the frame, caption, colorbar...
414;------------------------------------------------------------
415  if keyword_set(overplot) then BEGIN
416    !y.range =  [zoom, profmin] ; We get back on physic coordinates
417    plot, [0], [0], /nodata, /noerase, title = '', subtitle = '', xstyle = 5, ystyle = 5
418    GOTO, fini
419  endif
420;------------------------------------------------------------
421; Caption + display of them
422;------------------------------------------------------------
423  legende, mi, ma, type, CONTOUR = pourlegende, INTERVALLE = intervalle, DIREC = direc, endpoints = endpoints, _EXTRA = ex
424  if type eq 'yz' then xaxe = 'lataxe' else xaxe = 'lonaxe'
425  if keyword_set(sin) OR NOT key_onearth then xaxe = ''
426; Frame applied by default
427  plot, [xxaxis[0], xxaxis[n_elements(xxaxis)-1]], [-zratio, -zratio], /noerase $
428    , xstyle = 1+4*(keyword_set(endpoints) AND ((type EQ 'xz' AND lat1 NE lat2) OR (type EQ 'yz' AND lon1 NE lon2))) $
429    , xtickformat = xaxe, _extra = ex
430; Add of an axis in the case of we use endpoints
431  if keyword_set(endpoints) then addaxe, endpoints, type, posfenetre, _EXTRA = ex
432;------------------------------------------------------------
433; Y axis in 1 or 2 part
434;------------------------------------------------------------
435  if n_elements(ex) NE 0 then BEGIN
436; To do not put title anymore
437    if (where(tag_names(ex) EQ 'TITLE'))[0] NE -1 then ex.TITLE = ' '
438; To do not put subtitle anymore
439    if (where(tag_names(ex) EQ 'SUBTITLE'))[0] NE -1 then ex.SUBTITLE = ' '
440; To have just one ytitle
441    if (where(tag_names(ex) EQ 'YTITLE'))[0] NE -1 then BEGIN
442      ytitle = ex.YTITLE
443      ex.YTITLE = ' '
444    endif
445  ENDIF
446  htotal = posfenetre[3]-posfenetre[1]
447  hzoom = 1.*zratio*htotal
448  if zoom LT profmax then $
449    plot, [0], [0], /nodata, /noerase, ystyle = 1, yrange = [profmax, zoom+0.001] $
450    , position = posfenetre+[0, 0, 0, -hzoom], _extra = ex, title = '', subtitle = '', ytitle = ''
451;
452  !y.range =  [zoom, profmin]   ; We get back in physic coordinates!
453  plot, [0], [0], /nodata, /noerase, ystyle = 1, _extra = ex $
454    , title = '', subtitle = '', ytitle = '', position = posfenetre+[0, htotal-hzoom, 0, 0]
455;------------------------------------------------------------
456; to write the ytitle...
457;------------------------------------------------------------
458  if !d.name EQ 'PS' then $
459    xs = (max(page_size, min = mi)*(1-key_portrait) + mi*key_portrait)*!d.x_px_cm $
460  ELSE xs = !d.x_size
461  if n_elements(ytitle) NE 0 then !y.title = ytitle
462  charsize = chkstru(ex, 'ycharsize', /extract)
463  if charsize EQ -1 then charsize = !p.charsize
464  IF chkstru(ex, 'charsize') THEN ex.charsize = charsize
465  if chkstru(ex, 'ytitle', /extract) NE '' then $
466    decalage = string(format = '(e10.3)', profmax)
467  decalage = float(strmid(decalage, strpos(decalage, 'e')+1))
468  posy = posfenetre[1]+1.*htotal/2
469  posx = posfenetre[0]-(decalage+3)*!d.x_ch_size*charsize/xs
470  xyouts, posx, posy, !y.title, /normal, orientation = 90, color = 0, ALIGNMENT = .5, charsize = charsize, _extra = ex
471
472;------------------------------------------------------------
473; colorbar
474;------------------------------------------------------------
475  colnumb = colnumb[0:ncontour-1-keyword_set(strictfill)]
476  barrecouleur, colnumb, min,  max, (ncontour-keyword_set(strictfill))/2 $
477                , position = posbar, _extra = ex
478;------------------------------------------------------------
479;------------------------------------------------------------
480; 4th part: possible print
481;------------------------------------------------------------
482;------------------------------------------------------------
483fini:
484  terminedessin, _extra = ex
485;------------------------------------------------------------
486;------------------------------------------------------------
487;------------------------------------------------------------
488;------------------------------------------------------------
489sortie:
490  restoreboxparam, 'boxparam4pltz.dat'
491;
492  if keyword_set(key_performance) NE 0 THEN print, 'temps pltz', systime(1)-tempsun
493  return
494end
Note: See TracBrowser for help on using the repository browser.