Changeset 1123
- Timestamp:
- Aug 21, 2023, 5:53:05 PM (14 months ago)
- Location:
- trunk/src
- Files:
-
- 1 added
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/fill_GUI.m
r1122 r1123 60 60 hh=[]; 61 61 input_data=Param.(fields{ifield}); 62 if isfield(Param,'Type') && isa(Param.Type,'matlab.graphics.primitive.Rectangle') 63 input_data='rectangle'; 64 end 62 65 check_done=0; 63 66 if isfield(handles,fields{ifield}) -
trunk/src/find_field_bounds.m
r1107 r1123 34 34 %% analyse input field 35 35 [CellInfo,NbDimArray,errormsg]=find_field_cells(Field);% analyse the input field structure 36 if isempty(CellInfo) 37 errormsg='bad input field' 38 return 39 end 36 40 if ~isempty(errormsg) 37 errormsg=['uvmat /refresh_field / find_field_cells / ' errormsg] ;% display error41 errormsg=['uvmat /refresh_field / find_field_cells / ' errormsg]% display error 38 42 return 39 43 end -
trunk/src/script_readlvm.m
r971 r1123 61 61 62 62 %% check camera signal 63 ind_start=find(Data.Trig_ Cam>3.5,1,'first')63 ind_start=find(Data.Trig_cam>3.5,1,'first') 64 64 disp(['camera starts at time ' num2str(Data.Time(ind_start))]) 65 65 %% transform and filter conductivity probe signals into [temperature-corrected] density -
trunk/src/series.m
r1120 r1123 2720 2720 2721 2721 %% NbSlice visibility 2722 if isfield(ParamOut,'OutputFileMode')&& strcmp(ParamOut.OutputFileMode,'NbSlice') 2723 ParamOut.NbSlice='on'; 2724 end 2722 2725 if isfield(ParamOut,'NbSlice') && (strcmp(ParamOut.NbSlice,'on')||isnumeric(ParamOut.NbSlice)) 2723 2726 set(handles.num_NbSlice,'Visible','on') -
trunk/src/series/civ_series.m
r1122 r1123 89 89 end 90 90 end 91 % estimated CPUTime92 % CPUtime_unit=0.01;%estimated time for a multiplication (in microsecond)93 % if isfield(Param.SeriesData,'FileInfo')&&isfield(Param.SeriesData.FileInfo{1},'Height')&&isfield(Param.SeriesData.FileInfo{1},'Width')94 % pixnbre=Param.SeriesData.FileInfo{1}.Height*Param.SeriesData.FileInfo{1}.Width; % total number of pxels for input images95 % CPUtime=0;96 % if isfield(Data.ActionInput,'Civ1')97 % %BoxSize=Data.ActionInput.Civ1.CorrBoxSize(1)*Data.ActionInput.Civ1.CorrBoxSize(2);98 % tic99 % testboxa=rand(Data.ActionInput.Civ1.CorrBoxSize(1),Data.ActionInput.Civ1.CorrBoxSize(2));100 % testboxb=rand(Data.ActionInput.Civ1.SearchBoxSize(1),Data.ActionInput.Civ1.SearchBoxSize(2));101 % anss=conv2(testboxa,testboxb);102 % CPUtime_unit=toc;103 % nb_box=pixnbre/(Data.ActionInput.Civ1.Dx*Data.ActionInput.Civ1.Dy);104 % %nbpos=Data.ActionInput.Civ1.SearchBoxSize-Data.ActionInput.Civ1.CorrBoxSize;105 % CPUtime=2*CPUtime_unit*nb_box%*BoxSize*nbpos(1)*nbpos(2);% adjustement factor 2 used106 % end107 % if isfield(Data.ActionInput,'Patch1')108 % CPUtime=2*CPUtime;109 % end110 % if isfield(Data.ActionInput,'Civ2')111 % tic112 % testboxa=rand(Data.ActionInput.Civ2.CorrBoxSize(1),Data.ActionInput.Civ2.CorrBoxSize(2));113 % testboxb=rand(Data.ActionInput.Civ2.SearchBoxSize(1),Data.ActionInput.Civ2.SearchBoxSize(2));114 % anss=conv2(testboxa,testboxb);115 % CPUtime_unit=toc;116 % nb_box=pixnbre/(Data.ActionInput.Civ2.Dx*Data.ActionInput.Civ2.Dy);117 % %BoxSize=Data.ActionInput.Civ2.CorrBoxSize(1)*Data.ActionInput.Civ2.CorrBoxSize(2);118 % %nbpos=Data.ActionInput.Civ2.SearchBoxSize-Data.ActionInput.Civ2.CorrBoxSize;119 % CPUtime=CPUtime+2*CPUtime_unit*nb_box;%*BoxSize*nbpos(1)*nbpos(2);120 % end121 % if isfield(Data.ActionInput,'Patch2')122 % CPUtime=(4/3)*CPUtime;123 % end124 % Data.CPUTime=ceil(CPUtime/6); % estimated CPU time per field pair in minute125 % Data.CPUTime=Data.CPUTime/10; % displqy CPU time with 1 digit beyond dot126 % end127 91 return 128 92 end -
trunk/src/transform_field/FFT2_detrend.m
r1113 r1123 68 68 VarName=DataIn.ListVarName{ivar}; 69 69 z=DataIn.(VarName); 70 z(isnan(z))=0;% set to 0 NaN values 70 71 rhs(1) = sum(sum(x.*z)); rhs(2) = sum(sum(y.*z)); rhs(3) = sum(sum(z)); 71 72 lin_coeff = inv(coeff)*rhs'; … … 75 76 spec2 = spec2(Iy,Ix); 76 77 spec2 = spec2(ss,:); 77 %DataOut.(VarName) = log(spec2);78 DataOut.(VarName) = spec2;78 DataOut.(VarName) = log10(spec2); 79 %DataOut.(VarName) = spec2; 79 80 spec_sum=sum(sum(spec2)); 80 81 kx_mean=sum(sum(spec2.*kx))/spec_sum; -
trunk/src/transform_field/signal_spectrum.m
r1107 r1123 170 170 if numel(ind_good)>WindowLength 171 171 NbPos=NbPos+1; 172 if ~isempty(ind_bad) 172 if ~isempty(ind_bad)WindowLength 173 173 sample=sample(ind_good); % keep only non NaN data 174 174 NbNan=NbNan+numel(ind_bad); -
trunk/src/uvmat.m
r1121 r1123 5000 5000 menu={'civ1';'filter1';'civ2';'filter2';'civ3';'filter3'}; 5001 5001 imax=[0 1 1 2 3 3 4 5 5 6]; 5002 imax=imax( Civ+1);5002 imax=imax(min(Civ+1,10)); 5003 5003 % if isequal(Civ,0) 5004 5004 % imax=0;
Note: See TracChangeset
for help on using the changeset viewer.