atomcloud.analysis.image_scales module
Created on Sat Sep 10 20:05:17 2022
@author: hofer
- atomcloud.analysis.image_scales.all_axis_scales(lambd, xpixel_length, ypixel_length, magnification=1)[source]
Calculates the scaling values along all three axes.
- Parameters:
lambd (float) – wavelength of the laser beam in meters
xpixel_length (float) – x axis length of a pixel in meters
ypixel_length (float) – y axis length of a pixel in meters
magnification (float) – magnification of the imaging setup
- Returns:
scale factor for the image on the pixel axes
- Return type:
tuple[dict[str, float], list[str]]
- atomcloud.analysis.image_scales.convert_atom_number(atom_number, xscale, yscale, zscale)[source]
Rescale integrated values
- Parameters:
atom_number – number of atoms
xscale (float) – scale factor for x axis
yscale (float) – scale factor for y axis
zscale (float) – scale factor for z axis
- Returns:
rescaled atom number
- atomcloud.analysis.image_scales.img_axis_scales(xpixel_length, ypixel_length, magnification=1)[source]
Calculates the scaling values along the image axes.
- Parameters:
xpixel_length (float) – x axis length of a pixel in meters
ypixel_length (float) – y axis length of a pixel in meters
magnification (float) – magnification of the imaging setup
- Returns:
scale factor for the image on the pixel axes
- Return type:
tuple[float, float]
- atomcloud.analysis.image_scales.od_nd_scale(optical_cross_section)[source]
Calculates the conversion from optical density to atom number density.
- Parameters:
optical_cross_section (float) – optical cross section of the laser beam
- Returns:
atom number density
- atomcloud.analysis.image_scales.optical_cross_section(lambd)[source]
Calculate the optical cross section of a laser beam on resonance.
- Parameters:
lambd (float) – wavelength of the laser beam in meters
- Returns:
optical cross section in m^2
- Return type:
float
- atomcloud.analysis.image_scales.pixel_scale(pixel_length, magnification=1.0)[source]
Calculates the image scaling value if we’re only moving from pixels to meters. Includes the magnification factor of the imaging setup.
- Parameters:
pixel_length (float) – length of a pixel in meters
magnification (float) – magnification of the imaging setup
- Returns:
scale factor for the image on the pixel axis
- Return type:
float