1 | function handles=interp_initial(h,handles); |
---|
2 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
3 | % |
---|
4 | % Get everything in order to compute the child initial file |
---|
5 | % |
---|
6 | % Further Information: |
---|
7 | % http://www.brest.ird.fr/Roms_tools/ |
---|
8 | % |
---|
9 | % This file is part of ROMSTOOLS |
---|
10 | % |
---|
11 | % ROMSTOOLS is free software; you can redistribute it and/or modify |
---|
12 | % it under the terms of the GNU General Public License as published |
---|
13 | % by the Free Software Foundation; either version 2 of the License, |
---|
14 | % or (at your option) any later version. |
---|
15 | % |
---|
16 | % ROMSTOOLS is distributed in the hope that it will be useful, but |
---|
17 | % WITHOUT ANY WARRANTY; without even the implied warranty of |
---|
18 | % MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
---|
19 | % GNU General Public License for more details. |
---|
20 | % |
---|
21 | % You should have received a copy of the GNU General Public License |
---|
22 | % along with this program; if not, write to the Free Software |
---|
23 | % Foundation, Inc., 59 Temple Place, Suite 330, Boston, |
---|
24 | % MA 02111-1307 USA |
---|
25 | % |
---|
26 | % Copyright (c) 2004-2006 by Pierrick Penven |
---|
27 | % e-mail:Pierrick.Penven@ird.fr |
---|
28 | % |
---|
29 | %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% |
---|
30 | |
---|
31 | if isempty(handles.parentgrid) |
---|
32 | handles=get_parentininame(h,handles); |
---|
33 | end |
---|
34 | if isempty(handles.childgrid) |
---|
35 | handles=get_childgrdname(h,handles); |
---|
36 | end |
---|
37 | if isempty(handles.parentini) |
---|
38 | handles=get_parentininame(h,handles); |
---|
39 | end |
---|
40 | lev=str2num(handles.parentini(end)); |
---|
41 | if isempty(lev) |
---|
42 | childname=[handles.parentini,'.1']; |
---|
43 | else |
---|
44 | childname=[handles.parentini(1:end-1),num2str(lev+1)]; |
---|
45 | end |
---|
46 | Answer=questdlg(['Child initial name: ',childname,' OK ?'],'','Yes','Cancel','Yes'); |
---|
47 | switch Answer |
---|
48 | case {'Cancel'} |
---|
49 | return |
---|
50 | case 'Yes' |
---|
51 | handles.childini=childname; |
---|
52 | end |
---|
53 | nested_initial(handles.childgrid,handles.parentini,handles.childini,... |
---|
54 | handles.vertical_correc,handles.extrapmask,handles.biol,handles.pisces) |
---|
55 | return |
---|