maxwelllink.units module¶
- maxwelllink.units.unit(from_unit, to_unit='au')[source]¶
Return the conversion factor from one unit to another.
- maxwelllink.units.wavelength_nm_from_omega(omega, units='cm-1')[source]¶
Convert a photon frequency/energy (or wavelength) to a vacuum wavelength in nm.
- Parameters:
omega (float) – Photon frequency/energy in
units, or a wavelength ifunitsis"nm"or"um".units (str, default: "cm-1") – One of
"cm-1","eV","au"(Hartree),"nm","um".
- Returns:
The vacuum wavelength in nanometers.
- Return type:
float