Wavelength#
Source Code Documentation#
Wavelength of the incident radiation.
Supports compatible unit conversions.
X-ray voltage wavelength product (\(h \nu\)), per NIST standard. |
|
|
Monochromatic wavelength (and units); cannot be changed. |
|
Monochromatic X-ray wavelength (and units). |
|
Base for all wavelength (\(\lambda\)) classes. |
- hklpy2.wavelength_support.A_KEV = 12.398419843856837#
X-ray voltage wavelength product (\(h \nu\)), per NIST standard.
- class hklpy2.wavelength_support.ConstantMonochromaticWavelength(wavelength: float, **kwargs)[source]#
Bases:
WavelengthBase
Monochromatic wavelength (and units); cannot be changed.
Just wavelength. Can be used with any type of radiation source.
Wavelength (\(\lambda\)).
Engineering units of the wavelength.
Nature of the incident radiation.
Description of the spectrum of the incident radiation.
- source_type = 'any'#
Nature of the incident radiation.
- spectrum_type = 'monochromatic'#
Description of the spectrum of the incident radiation.
- class hklpy2.wavelength_support.MonochromaticXrayWavelength(wavelength: float, energy_units: str = None, **kwargs)[source]#
Bases:
WavelengthBase
Monochromatic X-ray wavelength (and units).
Wavelength (\(\lambda\)).
Engineering units of the wavelength.
Incident monochromatic X-ray photon energy (\(E\)).
Engineering units of the X-ray photon energy.
Nature of the incident radiation.
Description of the spectrum of the incident radiation.
- property energy: float#
Incident monochromatic X-ray photon energy (\(E\)).
\[\lambda = (h \nu) / E\]
- source_type = 'X-ray'#
Nature of the incident radiation.
- spectrum_type = 'monochromatic'#
Description of the spectrum of the incident radiation.
- class hklpy2.wavelength_support.WavelengthBase(*, units: str = None)[source]#
Bases:
ABC
Base for all wavelength (\(\lambda\)) classes.
Wavelength (\(\lambda\)).
Engineering units of the wavelength.
Nature of the incident radiation.
Description of the spectrum of the incident radiation.
- source_type = 'any'#
Nature of the incident radiation.
- spectrum_type = 'any'#
Description of the spectrum of the incident radiation.
- hklpy2.wavelength_support.XRAY_ENERGY_EQUIVALENT_ = 806554.3937#
Energy equivalent factor \(1 / (h \nu)\)
Per NIST publication, of CODATA Fundamental Physical Constants, 2022 revision.
- See:
https://physics.nist.gov/cuu/Constants/factors.html (“1 eV” v. “1/m”)