- Timestamp:
- Nov 25, 2010, 5:41:04 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/civ.m
r135 r136 1596 1596 end 1597 1597 1598 %% get the root names 1599 filebase=get(handles.RootName,'String'); 1600 if isempty(filebase)||isequal(filebase,'') 1601 msgbox_uvmat('ERROR','no input files') 1602 return 1603 end 1598 1604 1599 1605 1600 %check mask if selecetd … … 1644 1639 return 1645 1640 end 1641 filecell 1642 1646 1643 nbfield=numel(num1_civ1); 1647 1644 nbslice=numel(num_a_civ1); … … 1889 1886 par_civ1.maskflag='y'; 1890 1887 else 1891 maskbase=[file base '_' maskdispl]; %1888 maskbase=[filecell.filebase '_' maskdispl]; % 1892 1889 nbslice_mask=str2num(maskdispl(1:end-4)); % 1893 1890 num1_mask=mod(num1_civ1(ifile)-1,nbslice_mask)+1; … … 1910 1907 if ~isempty(nbslice_grid) 1911 1908 num1_grid=mod(num1_civ1(ifile)-1,nbslice_grid)+1; 1912 par_civ1.gridname=[file base '_' name_generator(gridname,num1_grid,1,'.grid','_i')];1909 par_civ1.gridname=[filecell.filebase '_' name_generator(gridname,num1_grid,1,'.grid','_i')]; 1913 1910 if ~exist(par_civ1.gridname,'file') 1914 1911 msgbox_uvmat('ERROR','grid file absent for civ1') … … 1952 1949 nbslice_mask=str2num(maskdispl(1:end-4)); % 1953 1950 num1_mask=mod(num1_civ1(ifile)-1,nbslice_mask)+1; 1954 maskbase=[file base '_' maskdispl];1951 maskbase=[filecell.filebase '_' maskdispl]; 1955 1952 maskname=name_generator(maskbase,num1_mask,1,'.png','_i'); 1956 1953 end … … 2000 1997 if ~isempty(nbslice_grid) 2001 1998 num1_grid=mod(num1_civ1(ifile)-1,nbslice_grid)+1; 2002 patch1.gridPatch=[file base '_' name_generator(gridname,num1_grid,1,'.grid','_i')];1999 patch1.gridPatch=[filecell.filebase '_' name_generator(gridname,num1_grid,1,'.grid','_i')]; 2003 2000 if ~exist(patch1.gridPatch,'file') 2004 2001 msgbox_uvmat('ERROR','grid file absent for patch1') … … 2058 2055 par_civ2.maskflag='y'; 2059 2056 else 2060 maskbase=[file base '_' maskdispl]; %2057 maskbase=[filecell.filebase '_' maskdispl]; % 2061 2058 nbslice_mask=str2num(maskdispl(1:end-4)); % 2062 2059 num1_mask=mod(num1_civ2(ifile)-1,nbslice_mask)+1; … … 2079 2076 par_civ2.gridflag='y'; 2080 2077 num1_grid=mod(num1_civ2(ifile)-1,nbslice_grid)+1; 2081 par_civ2.gridname=[file base '_' name_generator(gridname,num1_grid,1,'.grid','_i')];2078 par_civ2.gridname=[filecell.filebase '_' name_generator(gridname,num1_grid,1,'.grid','_i')]; 2082 2079 if exist(par_civ2.gridname,'file') 2083 2080 par_civ2.gridflag='y'; … … 2125 2122 else 2126 2123 maskdispl=get(handles.mask_fix2,'String'); 2127 maskbase=[file base '_' maskdispl]; %2124 maskbase=[filecell.filebase '_' maskdispl]; % 2128 2125 nbslice_mask=str2num(maskdispl(1:end-4)); % 2129 2126 num1_mask=mod(num1_civ2(ifile)-1,nbslice_mask)+1; … … 2175 2172 if ~isempty(nbslice_grid) 2176 2173 num1_grid=mod(num1_civ2(ifile)-1,nbslice_grid)+1; 2177 patch2.gridPatch=[file base '_' name_generator(gridname,num1_grid,1,'.grid','_i')];2174 patch2.gridPatch=[filecell.filebase '_' name_generator(gridname,num1_grid,1,'.grid','_i')]; 2178 2175 if ~exist(patch2.gridPatch,'file') 2179 2176 msgbox_uvmat('ERROR','grid file absent for patch2') … … 2213 2210 [Rootbat,Filebat,extbat]=fileparts(filename_cmx); 2214 2211 filename_bat=fullfile(Rootbat,['job_' Filebat extbat]); 2215 else2212 else 2216 2213 filename_bat=filename_cmx; 2217 2214 end … … 2288 2285 %------------------------------------------------------------------------ 2289 2286 filecell=[];%default 2290 %get the filename root, nomenclature and numbers 2287 2288 %% get the root names nomenclature and numbers 2291 2289 filebase=get(handles.RootName,'String'); 2290 2291 if isempty(filebase)||isequal(filebase,'') 2292 msgbox_uvmat('ERROR','no input files') 2293 return 2294 end 2295 2296 filebase=regexprep(filebase,'\.fsnet','fsnet');% temporary fix for cluster Coriolis 2297 filecell.filebase=filebase; 2298 2292 2299 browse=get(handles.browse_root,'UserData'); 2293 2300 compare_list=get(handles.compare,'String');
Note: See TracChangeset
for help on using the changeset viewer.