Changeset 944 for trunk/src/series/merge_proj_polar.m
- Timestamp:
- May 20, 2016, 6:19:16 PM (8 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/merge_proj_polar.m
r943 r944 146 146 %% define the name for result file (with path=RootPath{1}) 147 147 OutputDir=[Param.OutputSubDir Param.OutputDirExt];% subdirectory for output files 148 OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},'.nc','_1',i1_series{1}(1));149 CheckOverwrite=1;%default150 if isfield(Param,'CheckOverwrite')151 CheckOverwrite=Param.CheckOverwrite;152 end153 if ~CheckOverwrite && exist(OutputFile,'file')154 disp(['existing output file ' OutputFile ' already exists, skip to next field'])155 return% skip iteration if the mode overwrite is desactivated and the result file already exists156 end148 % OutputFile=fullfile_uvmat(RootPath{1},OutputDir,RootFile{1},'.nc','_1',i1_series{1}(1)); 149 % CheckOverwrite=1;%default 150 % if isfield(Param,'CheckOverwrite') 151 % CheckOverwrite=Param.CheckOverwrite; 152 % end 153 % if ~CheckOverwrite && exist(OutputFile,'file') 154 % disp(['existing output file ' OutputFile ' already exists, skip to next field']) 155 % return% skip iteration if the mode overwrite is desactivated and the result file already exists 156 % end 157 157 158 158 if ~isfield(Param,'InputFields') 159 159 Param.InputFields.FieldName=''; 160 160 end 161 162 %% prepare output file content163 % TimeData.ListGlobalAttribute={'Conventions','Project','CoordUnit','TimeUnit','ZPos'};164 % TimeData.Conventions='uvmat';165 % TimeData.Project='2016_Circumpolar';166 % TimeData.CoordUnit='cm';167 % TimeData.TimeUnit='s';168 % TimeData.ZPos=0;169 % TimeData.ListVarName={'time','radius','azimuth','U','V','curl','div'};170 % TimeData.VarDimName={'time','radius','azimuth',{'time','radius','azimuth'},{'time','radius','azimuth'}...171 % {'time','radius','azimuth'},{'time','radius','azimuth'}};172 % TimeData.VarAttribute{1}.Role='';173 % TimeData.VarAttribute{2}.Role='';174 % TimeData.VarAttribute{3}.Role='';175 % TimeData.VarAttribute{4}.Role='vector_x';176 % TimeData.VarAttribute{5}.Role='vector_y';177 % TimeData.VarAttribute{6}.Role='scalar';178 % TimeData.VarAttribute{7}.Role='scalar';179 % TimeData.time=nan(1,NbField);180 % TimeData.radius=radius_shifted;181 % TimeData.azimuth=azimuth_arclength;182 % nby=numel(radius);183 % nbx=numel(azimuth);184 % TimeData.U=nan(NbField,nby,nbx);185 % TimeData.V=nan(NbField,nby,nbx);186 % TimeData.curl=nan(NbField,nby,nbx);187 % TimeData.div=nan(NbField,nby,nbx);188 189 % if ~isempty(timeread)190 % MergeData.ListGlobalAttribute=[MergeData.ListGlobalAttribute {'Time'}];191 % MergeData.Time=timeread;192 % end193 194 % time unit195 % if isfield(Data{1},'TimeUnit')196 % TimeUnit=Data{1}.TimeUnit;197 % for iview =2:numel(Data)198 % if ~(isfield(Data{iview},'TimeUnit')&& isequal(Data{iview}.TimeUnit,TimeUnit))199 % TimeUnit=[];%TimeUnit not the same for all fields200 % end201 % end202 % if ~isempty(TimeUnit)203 % MergeData.ListGlobalAttribute=[MergeData.ListGlobalAttribute {'TimeUnit'}];204 % MergeData.TimeUnit=TimeUnit;205 % end206 % end207 161 208 162 … … 309 263 %%%%%%%%%%%%%%%% loop on field indices %%%%%%%%%%%%%%%% 310 264 tstart=tic; %used to record the computing time 311 265 CheckOverwrite=1;%default 266 if isfield(Param,'CheckOverwrite') 267 CheckOverwrite=Param.CheckOverwrite; 268 end 312 269 313 270 for index=1:NbField
Note: See TracChangeset
for help on using the changeset viewer.