Changeset 1104
- Timestamp:
- Jul 14, 2021, 1:27:31 PM (3 years ago)
- Location:
- trunk/src
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/export_fct/quiver_col_eletta.m
r1102 r1104 1 %' quiver_col_eletta': plot vector fields and save figures for project Coriolis/2019/TUBE1 %'export_mat': plot vector fields and save figures for project Coriolis/2019/TUBE 2 2 %------------------------------------------------------------------------ 3 3 … … 6 6 7 7 8 function quiver_col_eletta(handles)8 function export_mat(handles) 9 9 %------------------------------------------------------------------------ 10 10 -
trunk/src/series.m
r1100 r1104 1633 1633 for iexp=1:numel(ListExp) 1634 1634 if ~isempty(regexp(ListExp{iexp},'^\+/'))% if it is a folder 1635 1636 NbExp=NbExp+1;1637 ExpIndex{NbExp}=iexp;1638 for idevice=1:numel(ListDevices)1639 lpath= fullfile(SourceDir,regexprep(ListExp{iexp},'^\+/',''),...1640 regexprep(ListDevices{idevice},'^\+/',''));1641 lpathout=fullfile(OutputPath,regexprep(ListExp{iexp},'^\+/',''),...1642 regexprep(ListDevices{idevice},'^\+/',''));1643 ldir=regexprep(ListDataSeries{idevice},'^\+/','');1644 ListPath{idevice,NbExp}=lpath;1645 ListPathOut{idevice,NbExp}=lpathout;1646 ListSubdir{idevice,NbExp}=ldir;1647 end1648 else1635 %if strcmp(get(BrowseData.DataSeries,'enable'),'off') %case of a multiple input line for series 1636 % NbExp=NbExp+1; 1637 % ExpIndex{NbExp}=iexp; 1638 % for idevice=1:numel(ListDevices) 1639 % lpath= fullfile(SourceDir,regexprep(ListExp{iexp},'^\+/',''),... 1640 % regexprep(ListDevices{idevice},'^\+/','')); 1641 % lpathout=fullfile(OutputPath,regexprep(ListExp{iexp},'^\+/',''),... 1642 % regexprep(ListDevices{idevice},'^\+/','')); 1643 % ldir=regexprep(ListDataSeries{idevice},'^\+/',''); 1644 % ListPath{idevice,NbExp}=lpath; 1645 % ListPathOut{idevice,NbExp}=lpathout; 1646 % ListSubdir{idevice,NbExp}=ldir; 1647 % end 1648 %else 1649 1649 for idevice=1:numel(ListDevices) 1650 1650 if ~isempty(regexp(ListDevices{idevice},'^\+/'))% if it is a folder … … 1658 1658 if exist(fullfile(lpath,ldir),'dir') 1659 1659 NbExp=NbExp+1; 1660 ExpIndex{NbExp}=iexp; 1660 ExpIndex(NbExp)=ExpIndices(iexp); 1661 DeviceIndex(NbExp)=DeviceIndices(idevice); 1661 1662 ListPath{NbExp}=lpath; 1662 1663 ListPathOut{NbExp}=lpathout; 1664 ListDeviceOut{NbExp}=regexprep(ListDevices{idevice},'^\+/',''); 1665 ListExpOut{NbExp}=regexprep(ListExp{iexp},'^\+/',''); 1663 1666 ListSubdir{NbExp}=ldir; 1664 1667 end … … 1667 1670 end 1668 1671 end 1669 end1672 % end 1670 1673 end 1671 1674 end … … 1685 1688 return 1686 1689 end 1687 set(BrowseData.ListExperiments,'Value',ExpIndex{iexp}) 1690 set(BrowseData.ListExperiments,'Value',ExpIndex(iexp)) 1691 set(BrowseData.ListDevices,'Value',DeviceIndex(iexp)) 1688 1692 Param.InputTable(:,1)=ListPath(:,iexp); 1689 1693 Param.InputTable(:,2)=ListSubdir(:,iexp); … … 1706 1710 PathOut=get(handles.OutputPath,'String'); 1707 1711 if ~exist(PathOut,'dir') % test if the dir already exist 1708 PathOut=uigetdir(PathOut,'pick the output root path') 1709 set(handles.OutputPath,'String',PathOut); 1710 end 1711 PathExpOut=fullfile(PathOut,get(handles.Experiment,'String')); 1712 PathOut=uigetdir(PathOut,'pick the output root path'); 1713 set(handles.OutputPath,'String',PathOut); 1714 end 1715 %PathExpOut=fullfile(PathOut,get(handles.Experiment,'String')); 1716 PathExpOut=fileparts(ListPath{iexp}); 1712 1717 if ~exist(PathExpOut,'dir') 1713 1718 [tild,msg1]=mkdir(PathExpOut); … … 1717 1722 end 1718 1723 end 1719 PathExpDeviceOut=fullfile(PathExpOut,get(handles.Device,'String')); 1724 %PathExpDeviceOut=fullfile(PathExpOut,get(handles.Device,'String')); 1725 PathExpDeviceOut=ListPath{iexp}; 1720 1726 if ~exist(PathExpDeviceOut,'dir') 1721 1727 [tild,msg1]=mkdir(PathExpDeviceOut); … … 1780 1786 if get(handles.Replicate,'Value') 1781 1787 set(handles.InputTable,'Data',Param.InputTable) 1782 set(handles.OutputPath,'String',Pathout) 1783 set(handles.Experiment,'String',ListExp{iexp}) 1784 set(handles.Device,'String',ListDevices{iexp}) 1788 set(handles.OutputPath,'String',OutputPath) 1789 set(handles.Experiment,'String',ListExpOut{iexp}) 1790 set(handles.Device,'String',ListDeviceOut{iexp}) 1791 Param.Experiment=ListExpOut{iexp}; 1792 Param.Device=ListDeviceOut{iexp}; 1785 1793 check_input_file_series(handles) 1786 1794 end … … 1850 1858 end 1851 1859 end 1852 % CPUTime=1; % job time estimated at 1 min per iteration (on index i and j) by default1853 % if isfield(Param.Action, 'CPUTime') && ~isempty(Param.Action.CPUTime)1854 % CPUTime=Param.Action.CPUTime; % Note: CpUTime for one iteration ref_i has to be multiplied by the number of j indices nbfield_j1855 % end1856 1860 nbfield_j=numel(ref_j); % number of j indices 1857 1861 BlockLength=numel(ref_i); % by default, job involves the full set of i field indices … … 1860 1864 case 'cluster' 1861 1865 if (isfield(Param.Action, 'CPUTime') && ~isempty(Param.Action.CPUTime)) 1862 CPUTime=Param.Action.CPUTime; % Note: CpUTime for one iteration ref_i has to be multiplied by the number of j indices nbfield_j1866 CPUTime=Param.Action.CPUTime; % Note: CpUTime for one iteration ref_i has to be multiplied by the number of j indices nbfield_j 1863 1867 else 1864 answer=msgbox_uvmat('INPUT_TXT','estimate the CPU time(in minutes) for each value of index i:' ,''); 1865 CPUTime=str2num(answer); 1866 set(handles.num_CPUTime,'String',answer) 1868 answer=msgbox_uvmat('INPUT_TXT','estimate the CPU time(in minutes) for each value of index i:' ,''); 1869 CPUTime=str2num(answer); 1870 set(handles.num_CPUTime,'String',answer) 1871 Param.Action.CPUTime=CPUTime; 1867 1872 end 1868 1873 JobNumberMax=SeriesData.SeriesParam.ClusterParam.JobNumberMax; -
trunk/src/series/sliding_average.m
r1097 r1104 204 204 t0=3.4; %dt=0.2 -> i0=18 image index of starting motion, % torus at its max x at the beginning of motion 205 205 end 206 NbPeriod=2; %number of periods for the sliding average 206 %NbPeriod=2; %number of periods for the sliding average 207 NbPeriod=4; %number of periods for the sliding average 207 208 omega=2*2*pi/T;%harmonic 208 209 Lscale=15;%diameter of the torus, length scale for normalisation -
trunk/src/transform_field/ima_find_particles.m
r1093 r1104 90 90 set(hmovies,'NextPlot','replace') 91 91 end 92 92 0.03187 93 93 94 94 %------------------------------------------------------------------------ -
trunk/src/transform_field/phys_polar.m
r1094 r1104 117 117 angle_offset=0; %reference angle used as new origin of the polar angle (= axis Ox by default) 118 118 angle_scale=180/pi; 119 check_reverse=false; 119 120 check_degree=1;%angle expressed in degrees by default 120 121 if isfield(XmlData,'TransformInput')
Note: See TracChangeset
for help on using the changeset viewer.