Skip to content

Commit

Permalink
minor fix
Browse files Browse the repository at this point in the history
  • Loading branch information
c0deta1ker committed Apr 13, 2023
1 parent 3944522 commit e4dcedd
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@
% define a scalar or vector of kinetic energies for the input.
% If the args is a string of an element / material, it will look it up
% the relevant materials parameters in the Material Properties Database
% (MPD) ('MPD_PCC.mat'). Otherwise, the args a be manually inserted as
% discussed below.
% (MPD) ('MPD_PCC.mat'). Otherwise, the args can be manually inserted as
% defined below.
%
% IN:
% - formalism: string for imfp calculator formalism. Default:"TPP2M" ["TPP2M","S1","S2","Universal"]
Expand All @@ -21,6 +21,21 @@
%
% OUT:
% - imfp: N×1 column vector of the electron IMFP values [Angstroms]
%
% SEE REFERENCES:
% [1] Tanuma, S., Powell, C. J., & Penn, D. R. (1987).
% Proposed formula for electron inelastic mean free paths based on
% calculations for 31 materials. Surface Science Letters, 192(1),
% L849–L857. https://doi.org/10.1016/0167-2584(87)90829-2
% [2] Shinotsuka H, Tanuma S, Powell CJ, Penn DR. Calculations of
% electron inelastic mean free paths. XII. Data for 42 inorganic
% compounds over the 50 eV to 200 keV range with the full Penn
% algorithm. Surf Interface Anal. 2018;51(4):427-457.
% doi:10.1002/sia.6598
% [3] M. P. Seah, "An accurate and simple universal curve for the
% energy-dependent electron inelastic mean free path,”
% Surf. Interface Anal., vol. 44, no. 4, pp. 497–503, 2012,
% doi: 10.1002/sia.4816.

%% Default parameters
% - Default formalism
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@
% compounds over the 50 eV to 200 keV range with the full Penn
% algorithm. Surf Interface Anal. 2018;51(4):427-457.
% doi:10.1002/sia.6598
% [1] M. P. Seah, “An accurate and simple universal curve for the
% energy-dependent electron inelastic mean free path,”
% Surf. Interface Anal., vol. 44, no. 4, pp. 497–503, 2012,
% doi: 10.1002/sia.4816.

%
% IN:
% - ke_dat: N×1 vector of the input electron kinetic energy (for PES; KE = BE - PHI) [eV]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
initStr.scan_1.(group_name).(element_names(j)) = h5read(full_h5_file_name, char(group_names(i)+"/"+element_names(j)));
end
end
initStr.scan_1
% initStr.scan_1 % FOR DEBUGGING
end
%% 1.2.3 -- Collecting all spectral data
spectra = struct();
Expand All @@ -125,7 +125,7 @@
Pol = "LH (s-pol)";
Slit = mean(spectra.attrs.ExitSlit);
Mode = spectra.attrs.LensMode(1);
if Type == "Eb(k)"; hv = mean(spectra.attrs.MonoEnergy); else; hv = spectra.attrs.MonoEnergy; end
if Type == "Eb(k)" || Type == "Eb(k,i)"; hv = mean(spectra.attrs.MonoEnergy); else; hv = spectra.attrs.MonoEnergy; end
Temp = mean(spectra.attrs.ManipulatorTempB);
% ----- Assinging the main experimental variables
% ------ Angle
Expand Down

0 comments on commit e4dcedd

Please sign in to comment.