Commit e97f29ee authored by Leon Merten Lohse's avatar Leon Merten Lohse
Browse files

update julia template

parent e18808b8
Pipeline #103506 passed with stage
in 3 minutes and 47 seconds
......@@ -4,7 +4,6 @@ set(0,'DefaultFigureColor','w');
%% parameters of the scan
spec = 'julia';
year = '2019';
runname = '2019_05_02';
detector = 'argos';
......@@ -29,16 +28,15 @@ if ispc
toolboxPath = 'S:/Projects_X-ray_Imaging/holotomotoolbox/functions';
astraPath = 'S:/Projects_X-ray_Imaging/ASTRAToolbox/windows';
prePath = 'J:/';
saveDir = fullfile('T:/Julialabor Tomo', runname, filePrefix, 'Slices');
elseif isunix
toolboxPath = '/IRP/AG_Salditt/Projects_X-ray_Imaging/holotomotoolbox/functions';
astraPath = '/IRP/AG_Salditt/Projects_X-ray_Imaging/ASTRAToolbox/linux';
prePath = '/IRP/Labdata/AG_Salditt/julialab/';
saveDir = fullfile('/tmp/', filePrefix);
toolboxPath = '/home/AG_Salditt/Projects_X-ray_Imaging/holotomotoolbox/functions';
astraPath = '/home/AG_Salditt/Projects_X-ray_Imaging/ASTRAToolbox/linux';
prePath = '/home/Labdata/AG_Salditt/julialab/';
end
% change if not using julia
dataPath = fullfile(prePath, year, 'julia' , runname, 'detectors', detector, filePrefix);
saveDir = fullfile(prePath, year, 'julia', runname, 'analysis', filePrefix, 'Slices');
if ~exist(toolboxPath,'dir')
error(['Assigned path to the holotomotoolbox ''', toolboxPath, ''' does not exist.']);
......@@ -155,7 +153,7 @@ parfor indAngle = 1:numAngles
number = rawnumbers(indAngle);
imgTmp = zeros(size(raw0,1),size(raw0,2),numAverage);
for indImage = 1:numAverage
imgTmp(:,:,indImage) = imageReader(getFileName(number+(indImage-1)));
imgTmp(:,:,indImage) = imageReader(getFileName(number+(indImage-1))); %#ok<PFBNS>
end
% average over all images
raw = median(imgTmp,3);
......@@ -246,12 +244,7 @@ z12 = (z02-z01)/1000;
z_eff = z12/M;
% main energy peak of the x-ray spectrum
switch lower(spec)
case 'mona'
E = 17.5; % molybdenum
case 'julia'
E = 9.25; % gallium
end
E = 9.25; % gallium
% wavelength of the main energy peak
lambda = 12.398/E*1e-10;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment