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