line_racer.intensity_correction_precalculation#
Functions#
|
Calculate the Voigt profile using the Wofz function. |
|
Calculate the Hartmann (Hartmann et al. 2002) and cutoff correction grid for the Voigt profile. |
Module Contents#
- line_racer.intensity_correction_precalculation.analy_voigt(grid, sigma, gamma)#
Calculate the Voigt profile using the Wofz function.
Parameters:
- gridarray-like
The grid of wavenumbers.
- gammafloat
The line broadening parameter (gamma).
- sigmafloat
The Doppler width (sigma).
Returns:
- sc_voigtarray-like
The calculated Voigt profile.
- line_racer.intensity_correction_precalculation.calculate_correction_grid(gamma_sigma_ratio_min, gamma_sigma_ratio_max, sigma_min, sigma_max, number_width_points, cutoff_min, cutoff_max, number_cutoff_points, use_hartmann)#
Calculate the Hartmann (Hartmann et al. 2002) and cutoff correction grid for the Voigt profile.
Parameters:
- gamma_sigma_ratio_minfloat
Minimum value of gamma/sigma.
- gamma_sigma_ratio_maxfloat
Maximum value of gamma/sigma.
- sigma_minfloat
Minimum value of sigma.
- sigma_maxfloat
Maximum value of sigma.
- width_pointsint
Number of points in the gamma/sigma dimension.
- cutoff_minfloat
Minimum value of cutoff.
- cutoff_maxfloat
Maximum value of cutoff.
- cutoff_pointsint
Number of points in the cutoff dimension.
- Hartmannbool
Whether to apply the Hartmann correction
Returns:
- corrnumpy.ndarray
The correction grid.
- sigma_arrnumpy.ndarray
The array of sigma values.
- gamma_sigma_ratio_arrnumpy.ndarray
The array of gamma/sigma values.
- cutoff_arrnumpy.ndarray
The array of cutoff values.