radis.phys.convert module

Conversion formulas between different units (works with numpy arrays)

Checks the order of magnitudes to help detect conversion errors (comparing with standard order of magnitudes in plasma physics)

Examples

Get equivalent width in nm of a 10cm-1 width at 380 nm

>>> from radis import *
>>> dcm2dnm(10, nm2cm(380))

J2K(E)[source]

J to Kelvin.

J2cm(E)[source]

J to cm-1.

J2eV(E)[source]

J to eV.

K2J(E)[source]

Kelvin to J.

K2cm(E)[source]

K to cm-1.

K2eV(E)[source]

eV to K.

atm2bar(p_atm)[source]
atm2torr(p_atm)[source]
bar2atm(p_bar)[source]
bar2torr(p_bar)[source]
cm2J(E)[source]

cm-1 to J.

cm2K(E)[source]

cm-1 to K.

That’s the classical 1.44 K/cm-1. See hc_k

cm2eV(E)[source]

cm-1 to eV.

cm2hz(wl_cm1)[source]

wavenumber to frequency wl_cm1, output in hz.

cm2nm(wl_cm1)[source]

cm-1 to (vacuum) nm.

cm2nm_air(wl_cm1)[source]

cm-1 to (air) nm.

References

:func:`~radis.phys.air.vacuum2air’

dcm2dnm(delta_nu, nu_0)[source]

Converts (ex: FWHM) from Δcm to Δnm.

Parameters
  • delta_nu (float (cm-1)) – wavenumber broadening

  • nu_0 (float (cm-1)) – center wavenumber

Returns

delta_nm – broadening in wavelength (vacuum)

Return type

float (nm)

dcm2dnm_air(delta_nu, nu_0)[source]

Converts (ex: FWHM) from Δcm to Δnm.

Parameters
  • delta_nu (float (cm-1)) – wavenumber broadening

  • nu_0 (float (cm-1)) – center wavenumber

Returns

delta_nm – broadening in wavelength (air)

Return type

float (nm)

dhz2dnm(deltaf_hz, f_0)[source]

Converts (ex: FWHM) from ΔHz to Δnm.

Parameters
  • deltaf_hz (Hz) – frequency broadening

  • nu_0 (Hz) – center frequency

dnm2dcm(delta_lbd, lbd_0)[source]

Converts (ex: FWHM) from Δnm to Δcm.

Parameters
  • delta_lbd (float (nm)) – wavelength broadening (vacuum)

  • lbd_0 (float (nm)) – center wavelength (vacuum)

Returns

delta_cm – broadening in wavenumber

Return type

float (cm-1)

dnm2dhz(delta_lbd, lbd_0)[source]

Converts (ex: FWHM) from Δnm to Δhz.

Parameters
  • delta_lbd (nm) – wavelength broadening

  • lbd_0 (nm) – center wavelength

dnm_air2dcm(delta_lbd, lbd_0)[source]

Converts (ex: FWHM) from Δnm to Δcm.

Parameters
  • delta_lbd (float (nm)) – wavelength broadening (air)

  • lbd_0 (float (nm)) – center wavelength (air)

Returns

delta_cm – broadening in wavenumber

Return type

float (cm-1)

eV2J(E)[source]

eV to J.

eV2K(E)[source]

eV to K.

eV2cm(E)[source]

eV to cm.

eV2nm(E)[source]

nm to eV.

hz2cm(f_Hz)[source]

frequency to wavenumber f in Hz, output in cm-1.

hz2nm(f_Hz)[source]

frequency to wavelength f in Hz, output in nm.

nm2cm(wl_nm)[source]

(vacuum) nm to cm-1.

nm2eV(wl_nm)[source]

nm to eV.

nm2hz(lbd_nm)[source]

wavelength to frequency lbd in Hz, output in nm.

nm_air2cm(wl_nm_air)[source]

(air) nm to cm-1.

References

:func:`~radis.phys.air.air2vacuum’

torr2atm(p_atm)[source]
torr2bar(p_torr)[source]

Torr to bar.