1 | function handles=get_newtopobutton(h,handles); |
---|
2 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
3 | % |
---|
4 | % Button to set a new topography for the child grid |
---|
5 | % instead of just interpolating the parent topography. |
---|
6 | % |
---|
7 | % Further Information: |
---|
8 | % http://www.brest.ird.fr/Roms_tools/ |
---|
9 | % |
---|
10 | % This file is part of ROMSTOOLS |
---|
11 | % |
---|
12 | % ROMSTOOLS is free software; you can redistribute it and/or modify |
---|
13 | % it under the terms of the GNU General Public License as published |
---|
14 | % by the Free Software Foundation; either version 2 of the License, |
---|
15 | % or (at your option) any later version. |
---|
16 | % |
---|
17 | % ROMSTOOLS is distributed in the hope that it will be useful, but |
---|
18 | % WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
19 | % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
20 | % GNU General Public License for more details. |
---|
21 | % |
---|
22 | % You should have received a copy of the GNU General Public License |
---|
23 | % along with this program; if not, write to the Free Software |
---|
24 | % Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
---|
25 | % MA 02111-1307 USA |
---|
26 | % |
---|
27 | % Copyright (c) 2004-2006 by Pierrick Penven |
---|
28 | % e-mail:Pierrick.Penven@ird.fr |
---|
29 | % |
---|
30 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
31 | a=get(handles.newtopo_button,'Value'); |
---|
32 | handles.newtopo=a; |
---|
33 | %set(handles.matchvolume_button,'Value',a) |
---|
34 | %handles.matchvolume=a; |
---|
35 | set(handles.vcorrec_button,'Value',a) |
---|
36 | handles.vertical_correc=a; |
---|
37 | set(handles.extrap_button,'Value',a) |
---|
38 | handles.extrapmask=a; |
---|
39 | if a==1 & isempty(handles.toponame); |
---|
40 | handles=get_topofile(h,handles); |
---|
41 | end |
---|
42 | return |
---|