source: trunk/SRC/ToBeReviewed/WIDGET/slec.pro @ 242

Last change on this file since 242 was 238, checked in by pinsard, 17 years ago

improvements/corrections of some *.pro headers

  • Property svn:eol-style set to native
  • Property svn:keywords set to Id
File size: 1.6 KB
Line 
1;+
2;
3; @file_comments
4;
5; @categories
6;
7; @param NAME
8;
9; @param DEBUT
10;
11; @param FIN
12;
13; @param NOMEXP
14;
15; @keyword PARENT {in}{required}
16; The widget ID of the parent widget.
17;
18; @keyword BOXZOOM
19; Vector indicating the geographic zone on which we want to cut the map.
20; If BOXZOOM has :
21;   1 element : The extraction is made on [lon1, lon2, lat1, lat2, 0.,boxzoom[0]]
22;   2 elements: The extraction is made on [lon1, lon2, lat1, lat2, boxzoom[0],boxzoom[1]]
23;   4 elements: The extraction is made on [Boxzoom, 0, max([gdept, gdepw])]
24;   5 elements: The extraction is made on [Boxzoom[0:3], 0, Boxzoom[4]]
25;   6 elements: The extraction is made on Boxzoom
26; where lon1,lon2,lat1,lat2 are global variables defined at the last domdef!
27;
28; @keyword _EXTRA
29; Used to pass keywords
30;
31; @returns
32;
33; @uses
34;
35; @restrictions
36;
37; @examples
38;
39; @history
40;
41; @version
42; $Id$
43;
44; @todo
45; Seb: documenter
46;
47;-
48;
49FUNCTION slec,name,debut,fin, nomexp, PARENT = parent, BOXZOOM=boxzoom, _EXTRA = ex
50;
51  compile_opt idl2, strictarrsubs
52;
53@cm_4data
54  IF NOT keyword_set(key_forgetold) THEN BEGIN
55@updatenew
56@updatekwd
57  ENDIF
58;------------------------------------------------------------
59   case n_params() of
60      1:tab = nlec(name, PARENT = parent, BOXZOOM=boxzoom, _EXTRA = ex)
61      2:tab = nlec(name,debut, PARENT = parent, BOXZOOM=boxzoom, _EXTRA = ex)
62      3:tab = nlec(name,debut,fin, PARENT = parent, BOXZOOM=boxzoom, _EXTRA = ex)
63      4:tab = nlec(name,debut,fin, nomexp, PARENT = parent, BOXZOOM=boxzoom, _EXTRA = ex)
64   endcase
65;
66   return, {tab:tab, grille:vargrid, unite:varunit, experience:varexp, nom:varname}
67end
Note: See TracBrowser for help on using the repository browser.