Changeset 550 for trunk/src/series/merge_proj.m
- Timestamp:
- Oct 11, 2012, 10:07:12 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/merge_proj.m
r522 r550 80 80 end 81 81 ParamOut=Param; %default output 82 if ~isfield(Param,'InputFields') 83 Param.InputFields.FieldName=''; 84 end 82 85 OutputSubDir=[Param.OutputSubDir Param.OutputDirExt]; 83 86 … … 210 213 %transform the input field (e.g; phys) if requested 211 214 if ~isempty(transform_fct) 212 Data{iview}=transform_fct(Data{iview},XmlData{iview}); %transform to phys if requested 215 switch nargin(transform_fct) 216 case {2,3,4} 217 Data{iview}=transform_fct(Data{iview},XmlData{iview}); 218 case 1 219 Data{iview}=transform_fct(Data{iview}); 220 end 213 221 end 214 222 … … 311 319 GeometryCal.Tx_Ty_Tz=[T_x T_y 1]; 312 320 ImaDoc.GeometryCalib=GeometryCal; 313 t=struct2xml(ImaDoc);314 t=set(t,1,'name','ImaDoc');315 save(t,[filebase_merge '.xml'])316 display([filebase_merge '.xml saved'])321 % t=struct2xml(ImaDoc); 322 % t=set(t,1,'name','ImaDoc'); 323 % save(t,[filebase_merge '.xml']) 324 % display([filebase_merge '.xml saved']) 317 325 else 318 326 MergeData.ListGlobalAttribute={'Conventions','Project','InputFile_1','InputFile_end','nb_coord','nb_dim','dt','Time','civ'};
Note: See TracChangeset
for help on using the changeset viewer.