Changeset 1091
- Timestamp:
- Feb 9, 2021, 12:52:17 PM (4 years ago)
- Location:
- trunk/src
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/get_field.m
r1084 r1091 631 631 var_component=find(test_component);% list of variable indices elligible as unstructured coordinates 632 632 var_coord=find(test_coord);% % list of variable indices elligible as gridded coordinates 633 var_coord(var_coord==scalar_index)=[]; 634 var_component(var_component==scalar_index)=[]; 633 index_coord=[]; 634 index_component=[]; 635 for iscalar=1:numel(scalar_index) 636 index_component=[index_component find(var_component==scalar_index(iscalar),1)]; 637 index_coord=[index_coord find(var_coord==scalar_index(iscalar),1)]; 638 end 639 var_component(index_component)=[]; 640 var_coord(index_coord)=[]; 635 641 ListCoord=Field.Display.ListVarName([var_coord var_component]); 636 642 coord_val=zeros(size(ListCoord)); -
trunk/src/get_file_series.m
r1071 r1091 36 36 InputTable=Param.InputTable; 37 37 first_i=Param.IndexRange.first_i; 38 incr_i=Param.IndexRange.incr_ i;38 incr_i=Param.IndexRange.incr_slice; 39 39 last_i=Param.IndexRange.last_i; 40 40 first_j=[];last_j=[];incr_j=1;%default -
trunk/src/series.m
r1090 r1091 1903 1903 return 1904 1904 end 1905 Param.IndexRange.incr_slice=incr_i; 1905 1906 if isempty(Param.IndexRange.NbSlice) 1906 1907 Param.IndexRange.first_i=first_i+(iprocess-1)*BlockLength*incr_i; … … 1912 1913 else %multislices (then incr_i is not empty) 1913 1914 Param.IndexRange.first_i= first_i+iprocess-1; 1914 Param.IndexRange.incr_ i=incr_i*Param.IndexRange.NbSlice;1915 Param.IndexRange.incr_slice=incr_i*Param.IndexRange.NbSlice; 1915 1916 end 1916 1917 for ilist=1:size(Param.InputTable,1) -
trunk/src/series/time_series.m
r1085 r1091 248 248 last_j=j1_series{1}(end); 249 249 end 250 OutputPath=fullfile(Param.OutputPath,Param.Experiment,Param.Device) 250 251 251 252 %% Set field names and velocity types … … 305 306 if isfield(Param,'ActionInput') && isfield(Param.ActionInput,'VarMesh')%case of histograms 306 307 VarMesh=Param.ActionInput.VarMesh; 307 else 308 elseif isequal(Param.IndexRange.NbSlice,1) 308 309 VarMesh=[]; 309 310 disp_uvmat('WARNING','automatic bin size for histograms, select time_series again to set the value',checkrun) … … 572 573 573 574 %% name of result file 574 OutputFile=fullfile_uvmat( RootPath{1},OutputDir,RootFile{1},FileExtOut,NomTypeOut,first_i,last_i,first_j,last_j);575 OutputFile=fullfile_uvmat(OutputPath,OutputDir,RootFile{1},FileExtOut,NomTypeOut,first_i,last_i,first_j,last_j); 575 576 errormsg=struct2nc(OutputFile,DataOut); %save result file 576 577 if isempty(errormsg) … … 581 582 582 583 %% plot the time series for (the last one in case of multislices) 583 if checkrun %&& isfield(Param,'ProjObject') && strcmp(Param.ProjObject.Type,'points')584 if checkrun && isequal(Param.IndexRange.NbSlice,1)%&& isfield(Param,'ProjObject') && strcmp(Param.ProjObject.Type,'points') 584 585 %% open the result file with uvmat (in RUN mode) 585 586 uvmat(OutputFile)% open the last result file with uvmat 586 587 end 587 % figure 588 % haxes=axes; 589 % plot_field(DataOut,haxes) 590 % 591 % %% display the result file using the GUI get_field 592 % hget_field=findobj(allchild(0),'name','get_field'); 593 % if ~isempty(hget_field) 594 % delete(hget_field) 595 % end 596 % get_field(OutputFile,DataOut) 597 % end 598 599 588 589 590
Note: See TracChangeset
for help on using the changeset viewer.