nass-micro-station-measurem.../2018-01-12 - Marc/scripts/export_measure_object.m

183 lines
4.2 KiB
Mathematica
Raw Normal View History

2019-03-14 16:40:28 +01:00
ground = struct(...
'full_name', 'Ground',...
'short_name', 'ground',...
'letter', 'g',...
'above_of', '',...
'bellow_of', 'marble',...
'tx', struct(...
'isMeasured', false, ...
'isExcited', false, ...
'id', 0 ...
),...
'ty', struct(...
'isMeasured', false, ...
'isExcited', false, ...
'id', 0 ...
),...
'tz', struct(...
'isMeasured', false, ...
'isExcited', false, ...
'id', 0 ...
)...
);
marble = struct(...
'full_name', 'Marble',...
'short_name', 'marble',...
'letter', 'm',...
'above_of', 'ground',...
'bellow_of', 'trans_stage',...
'tx', struct(...
'isMeasured', true, ...
'isExcited', true, ...
'id', 2 ...
),...
'ty', struct(...
'isMeasured', true, ...
'isExcited', true, ...
'id', 3 ...
),...
'tz', struct(...
'isMeasured', true, ...
'isExcited', true, ...
'id', 4 ...
)...
);
trans_stage = struct(...
'full_name', 'Translation Stage',...
'short_name', 'trans_stage',...
'letter', 't',...
'above_of', 'marble',...
'bellow_of', 'tilt_stage',...
'tx', struct(...
'isMeasured', false, ...
'isExcited', false, ...
'id', 0 ...
),...
'ty', struct(...
'isMeasured', false, ...
'isExcited', false, ...
'id', 0 ...
),...
'tz', struct(...
'isMeasured', false, ...
'isExcited', false, ...
'id', 0 ...
)...
);
tilt_stage = struct(...
'full_name', 'Tilt Stage',...
'short_name', 'tilt_stage',...
'letter', 'o',...
'above_of', 'trans_stage',...
'bellow_of', 'hexa',...
'tx', struct(...
'isMeasured', true, ...
'isExcited', false, ...
'id', 5 ...
),...
'ty', struct(...
'isMeasured', true, ...
'isExcited', false, ...
'id', 6 ...
),...
'tz', struct(...
'isMeasured', true, ...
'isExcited', false, ...
'id', 7 ...
)...
);
hexa = struct(...
'full_name', 'Hexapod',...
'short_name', 'hexa',...
'letter', 'h',...
'above_of', 'tilt_stage',...
'bellow_of', 'nano_stage',...
'tx', struct(...
'isMeasured', true, ...
'isExcited', true, ...
'id', 8 ...
),...
'ty', struct(...
'isMeasured', true, ...
'isExcited', true, ...
'id', 9 ...
),...
'tz', struct(...
'isMeasured', true, ...
'isExcited', true, ...
'id', 10 ...
)...
);
nano_stage = struct(...
'full_name', 'Nano Stage',...
'short_name', 'nano_stage',...
'letter', 'n',...
'above_of', 'hexa',...
'bellow_of', 'sample',...
'tx', struct(...
'isMeasured', false, ...
'isExcited', false, ...
'id', 0 ...
),...
'ty', struct(...
'isMeasured', false, ...
'isExcited', false, ...
'id', 0 ...
),...
'tz', struct(...
'isMeasured', false, ...
'isExcited', false, ...
'id', 0 ...
)...
);
sample = struct(...
'full_name', 'Sample',...
'short_name', 'sample',...
'letter', 's',...
'above_of', 'nano_stage',...
'bellow_of', '',...
'tx', struct(...
'isMeasured', false, ...
'isExcited', false, ...
'id', 0 ...
),...
'ty', struct(...
'isMeasured', false, ...
'isExcited', false, ...
'id', 0 ...
),...
'tz', struct(...
'isMeasured', false, ...
'isExcited', false, ...
'id', 0 ...
)...
);
%%
elements = struct(...
'ground', ground,...
'marble', marble,...
'trans_stage', trans_stage,...
'tilt_stage', tilt_stage,...
'hexa', hexa,...
'nano_stage', nano_stage,...
'sample', sample ...
);
%% Where is located the data files generated by export_measure_data script
files = struct(...
'frf', 'id31_microstation_2018_01_12_frf.mat',...
'coh', 'id31_microstation_2018_01_12_coh.mat' ...
);
%%
m_object = struct(...
'files', files,...
'elements', elements,...
'quantity', 'velocity', ...
'notes', 'Mesures du 12/01/2018 par Marc Lessourd - Geophones' ...
);
%% Save m_object
save('../data/2018_01_12.mat', 'm_object')