Changeset 1069 for trunk/src/series/time_series.m
- Timestamp:
- Jul 10, 2019, 12:17:42 PM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/series/time_series.m
r1061 r1069 304 304 VarMesh=[]; 305 305 checkhisto=0; 306 if isfield(Param,'ProjObject') && ismember(Param.ProjObject.ProjMode,{'inside','outside'}) 306 checkline=0; 307 if isfield(Param,'ProjObject') 308 if ismember(Param.ProjObject.ProjMode,{'inside','outside'}) 307 309 checkhisto=1; 308 310 if isfield(Param,'ActionInput') && isfield(Param.ActionInput,'VarMesh')%case of histograms … … 311 313 VarMesh=[]; 312 314 disp_uvmat('WARNING','automatic bin size for histograms, select time_series again to set the value',checkrun) 315 end 316 elseif ismember(Param.ProjObject.Type,{'line'}) 317 checkline=1; 313 318 end 314 319 end … … 401 406 DataOut.ListVarName=[DataOut.ListVarName {[VarName 'Histo']}]; 402 407 DataOut.VarDimName=[DataOut.VarDimName {{'Time',VarName}}]; 403 % if isfield(DataOut.VarAttribute{ivar},'Role')404 % DataOut.VarAttribute{ivar}=rmfield(DataOut.VarAttribute{ivar},'Role');405 % end406 408 StatName=pdf2stat;% get the names of statistical quantities to calcuilate at each time 407 409 for istat=1:numel(StatName) … … 430 432 eval(['DataOut=rmfield(DataOut,''' Field.ListVarName{ivar} ''');']);%remove variable 431 433 end 432 if strcmp(var_role,'coord_x')||strcmp(var_role,'coord_ y')||strcmp(var_role,'coord_z')||strcmp(var_role,'coord')434 if strcmp(var_role,'coord_x')||strcmp(var_role,'coord_z')||strcmp(var_role,'coord') 433 435 testsum(ivar)=1; %constant coordinates, record without time evolution 436 end 437 if strcmp(var_role,'coord_y')&& ~checkline 438 testsum(ivar)=1; 434 439 end 435 440 end … … 567 572 end 568 573 569 % %case of histograms570 % if checkhisto571 % for ivar=1:numel(Field.ListVarName)572 % VarName=Field.ListVarName{ivar};573 % if isfield(Data{1},VarName)574 % DataOut.ListVarName=[DataOut.ListVarName {[VarName 'Histo']}];575 % DataOut.VarDimName=[DataOut.VarDimName {{'Time',VarName}}];576 % end577 % end578 % end579 % display nbmissing580 574 if ~isequal(nbmissing,0) 581 575 disp_uvmat('WARNING',[num2str(nbmissing) ' files skipped: missing files or bad input, see command window display'],checkrun)
Note: See TracChangeset
for help on using the changeset viewer.