BasicP API

description here.

wave_to_freq(wave)

convert Wavelength to Frequency.

freq_to_wave(freq)

convert Frequency to Wavelength.

Dvlocity_to_Dshift(p0, v)

given Doppler velocity and the line central wavelength/frequency, compute Doppler shift in wavelength/frequency.

get_Doppler_width(p0, Te, Vt, am)

Given central wavelength/frequency, relative atomic mass of a line, and the temperature, turbulent velocity, compute the corresponding Doppler Width.

get_Level_gamma(Aji, idxJ, gamma)

Given Einstein A coefficient of Levels, upper index of Lines, compute radiative damping constant for each Level.

get_Line_Gamma(idxI, idxJ, gamma, Gamma)

Given Einstein radiative damping constant of Levels, compute radiative damping constant of Lines.

get_damping_a(_Gamma, _dopWidth_hz)

Given the radiative damping constant and the Doppler Width (in frequency unit) of the line, compute damping constant a.