source: trunk/ToBeReviewed/HOPE/domainpart.pro @ 53

Last change on this file since 53 was 53, checked in by pinsard, 18 years ago

upgrade of ToBeReviewed?/HOPE according to cerbere.lodyc.jussieu.fr: /usr/home/smasson/SAXO_RD/

  • Property svn:executable set to *
File size: 2.3 KB
Line 
1pro domainpart, top_uvalue, basedomain, selected, DESTROY = destroy
2
3   if keyword_set(destroy) then BEGIN
4;       id = widget_info(basedomain,find_by_uname = 'title')
5;       IF id NE 0 THEN widget_control, id, /destroy
6      id = widget_info(basedomain,find_by_uname = 'oddsecchoice')
7      IF id NE 0 THEN widget_control, id, /destroy
8      id = widget_info(basedomain,find_by_uname = 'evensecchoice')
9      IF id NE 0 THEN widget_control, id, /destroy
10      id = widget_info(basedomain,find_by_uname = 'odd-evensecchoice')
11      IF id NE 0 THEN widget_control, id, /destroy
12      id = widget_info(basedomain,find_by_uname = 'basex')
13      IF id NE 0 THEN widget_control, id, /destroy
14      id = widget_info(basedomain,find_by_uname = 'basey')
15      IF id NE 0 THEN widget_control, id, /destroy
16      id = widget_info(basedomain,find_by_uname = 'basez')
17      IF id NE 0 THEN widget_control, id, /destroy
18      return
19   endif
20;
21; we get the size of the dimenstion id of this section
22;
23   dimvar = *top_uvalue[1, findline(top_uvalue, 'dimvar')]
24   selecteddim = dimvar[*, selected]
25   typedim = *top_uvalue[1, findline(top_uvalue, 'typedim')]
26   sorteddim = selecteddim[sortdim(typedim[selecteddim])]
27   dimlist = *top_uvalue[1, findline(top_uvalue, 'dimlist')]
28;
29;  longitude part
30;
31   basex=widget_info(basedomain,find_by_uname = 'basex')
32   IF basex NE 0 THEN widget_control, basex, /destroy
33   basex=widget_base(basedomain,/row, uname='basex')
34   nothing=widget_text(basex,value='longitude', xsize = 10)
35   nothing=cw_selectinterval(basex,dimlist.(sorteddim[0]),uname='xinterval',uvalue={name:'xinterval'})
36;
37;  latitude part
38;
39   basey=widget_info(basedomain,find_by_uname = 'basey')
40   IF basey NE 0 THEN widget_control, basey, /destroy
41   basey=widget_base(basedomain,/row, uname='basey')
42   nothing=widget_text(basey,value='latitude', xsize = 10)
43   nothing=cw_selectinterval(basey,reverse(dimlist.(sorteddim[1])), uname='yinterval',uvalue={name:'yinterval'})
44;
45;  depth part
46;
47   basez=widget_info(basedomain,find_by_uname = 'basez')
48   IF basez NE 0 THEN widget_control, basez, /destroy
49   basez=widget_base(basedomain,/row, uname='basez')
50   nothing=widget_text(basez,value='depth', xsize = 10)
51   nothing=cw_selectinterval(basez,dimlist.(sorteddim[2]),uname='zinterval',uvalue={name:'zinterval'})
52;
53end
54;
Note: See TracBrowser for help on using the repository browser.