model2camera_length#
- ElectronDiffraction1D.model2camera_length(simulation, model, beam_energy, physical_pixel_size)[source]#
Calculate the camera length from a model and simulation.
This is useful for calibrating the camera length very exactly.
- Parameters:
simulation (diffsims.simulations.Simulation1D) – The simulation of a 1D “powder” diffraction pattern.
model (hyperspy.models.Model1D) – The model for fitting the diffraction peaks to a 1D diffraction pattern.
beam_energy (float) – The beam energy in keV.
physical_pixel_size (float) – The physical pixel size in meters. Note the Merlin has a pixel size of 55 um or 5.5E-5 m and the Celeritas/ Celeritas XS has a 15 um pixel size or 1.5E-5 m.
- Returns:
camera_length – The camera length in meters for the experiment. Note that this is often slightly different from the micrscope setting, however this calibrated value is more accurate than the calculated value from the micrscope.
- Return type:
Notes
This functionality is still under development and may change slightly in the future.