Changeset 1147 for trunk/src/series
- Timestamp:
- May 29, 2024, 7:08:52 PM (7 months ago)
- Location:
- trunk/src/series
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/civ_input.m
r1143 r1147 268 268 end 269 269 else %case of netcdf file opening, start with the stage read in the file if the input file is being refreshed 270 if isequal(get(hhseries.REFRESH,'BackgroundColor'),[1 1 0]) &&...271 ~(isfield(Param,'ActionInput') && isfield(Param.ActionInput,'ConfigSource'))270 % if isequal(get(hhseries.REFRESH,'BackgroundColor'),[1 1 0]) &&... 271 % ~(isfield(Param,'ActionInput') && isfield(Param.ActionInput,'ConfigSource')) 272 272 for index = 1:min(ind_opening,5) 273 273 set(handles.(ListOptions{index}),'value',0) 274 274 fill_civ_input(Data,handles); %fill civ_input with the parameters retrieved from an input Civ file 275 275 end 276 if isempty(FileInfo) 277 FileInfo.FileName=''; 278 end 276 279 set(handles.ConfigSource,'String',FileInfo.FileName); 277 280 set(handles.(ListOptions{min(ind_opening+1,6)}),'value',1) … … 280 283 end 281 284 checkrefresh=1; 282 end285 % end 283 286 if ind_opening>=3 284 287 set(handles.CheckCiv3,'Visible','on')% make visible the switch 'iterate/repet' for Civ2. -
trunk/src/series/civ_series.m
r1146 r1147 53 53 path_series=fileparts(which('series')); 54 54 addpath(fullfile(path_series,'series')) 55 56 55 57 Data=civ_input(Param);% introduce the civ parameters using the GUI civ_input 56 58 %Data=civ_input_App(Param);% introduce the civ parameters using the GUI civ_input -
trunk/src/series/merge_proj.m
r1137 r1147 232 232 end 233 233 234 %% mask (TODO: case of multilevels)235 MaskData=cell(NbView,1);236 if Param.CheckMask237 if ischar(Param.MaskTable)% case of a single mask (char chain)238 Param.MaskTable={Param.MaskTable};239 end240 for iview=1:numel(Param.MaskTable)241 if exist(Param.MaskTable{iview},'file')242 [MaskData{iview},tild,errormsg] = read_field(Param.MaskTable{iview},'image');243 if ~isempty(transform_fct) && nargin(transform_fct)>=2244 MaskData{iview}=transform_fct(MaskData{iview},XmlData{iview});245 end246 end247 end248 end249 234 250 235 %% Set field names and velocity types … … 319 304 %% transform the input field iview (e.g; phys) if requested (no transform involving two input fields at this stage) 320 305 if ~isempty(transform_fct)&& checksub==0 321 checksub=nargin(transform_fct);322 306 if nargin(transform_fct)>=2 323 307 Data{iview}=transform_fct(Data{iview},XmlData{iview}); … … 345 329 346 330 %% mask 347 if Param.CheckMask && ~isempty(MaskData{iview}) 348 [Data{iview},errormsg]=mask_proj(Data{iview},MaskData{iview}); 331 if Param.CheckMask % introduce multilevel mask like for civ 332 NbSlice=Param.MaskTable{iview,2}; 333 [RootPath_mask,SubDir_mask,RootFile_mask,i1_mask,i2_mask,j1_mask,j2_mask,Ext_mask]=fileparts_uvmat(Param.MaskTable{iview,1}); 334 i1_mask=mod(i1-1,NbSlice)+1; 335 maskname=fullfile_uvmat(RootPath_mask,SubDir_mask,RootFile_mask,Ext_mask,'_1',i1_mask); 336 if ~exist(maskname,'file') 337 maskname=Param.MaskTable{iview,1}; 338 end 339 [MaskData,~,errormsg] = read_field(maskname,'image'); 340 if ~isempty(transform_fct) && nargin(transform_fct)>=2 341 MaskData=transform_fct(MaskData,XmlData{iview}); 342 end 343 if ~isempty(MaskData) 344 [Data{iview},errormsg]=mask_proj(Data{iview},MaskData); 345 end 349 346 end 350 347 end
Note: See TracChangeset
for help on using the changeset viewer.