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 |
---|
27 | ; <pro>domdef</pro> ! |
---|
28 | ; |
---|
29 | ; @keyword _EXTRA |
---|
30 | ; Used to pass keywords |
---|
31 | ; |
---|
32 | ; @returns |
---|
33 | ; |
---|
34 | ; @uses |
---|
35 | ; |
---|
36 | ; @restrictions |
---|
37 | ; |
---|
38 | ; @examples |
---|
39 | ; |
---|
40 | ; @history |
---|
41 | ; |
---|
42 | ; @version |
---|
43 | ; $Id$ |
---|
44 | ; |
---|
45 | ; @todo |
---|
46 | ; Seb: documenter |
---|
47 | ; |
---|
48 | ;- |
---|
49 | FUNCTION slec, name, debut, fin, nomexp $ |
---|
50 | , PARENT=parent, BOXZOOM=boxzoom, _EXTRA=ex |
---|
51 | ; |
---|
52 | compile_opt idl2, strictarrsubs |
---|
53 | ; |
---|
54 | @cm_4data |
---|
55 | IF NOT keyword_set(key_forgetold) THEN BEGIN |
---|
56 | @updatenew |
---|
57 | @updatekwd |
---|
58 | ENDIF |
---|
59 | ;------------------------------------------------------------ |
---|
60 | case n_params() of |
---|
61 | 1:tab = nlec(name, PARENT = parent, BOXZOOM=boxzoom, _EXTRA = ex) |
---|
62 | 2:tab = nlec(name,debut, PARENT = parent, BOXZOOM=boxzoom, _EXTRA = ex) |
---|
63 | 3:tab = nlec(name,debut,fin, PARENT = parent, BOXZOOM=boxzoom, _EXTRA = ex) |
---|
64 | 4:tab = nlec(name,debut,fin, nomexp, PARENT = parent, BOXZOOM=boxzoom, _EXTRA = ex) |
---|
65 | endcase |
---|
66 | ; |
---|
67 | return, {tab:tab, grille:vargrid, unite:varunit, experience:varexp, nom:varname} |
---|
68 | end |
---|