density_diagnostic#
- irispy.utils.density.density_diagnostic(
- intensity_numerator,
- intensity_denominator,
- density_grid,
- *,
- ion,
- numerator,
- denominator,
- intensity_numerator_uncertainty=None,
- intensity_denominator_uncertainty=None,
- temperature=None,
- bounds_error=False,
- fill_value=nan,
- line_ratio_kwargs=None,
Map an observed IRIS line ratio onto a theoretical density curve.
- Parameters:
intensity_numerator (array-like or
Quantity) – Measured integrated intensities for the numerator and denominator lines.intensity_denominator (array-like or
Quantity) – Measured integrated intensities for the numerator and denominator lines.density_grid (
Quantity) – Density grid on which to evaluate the theoretical ratio curve.ion (
fiasco.Ion) – Ion used to compute the theoretical ratio curve.numerator (
Quantity) – Required wavelengths of the numerator and denominator transitions.denominator (
Quantity) – Required wavelengths of the numerator and denominator transitions.intensity_numerator_uncertainty – array-like or
Quantity, optional Uncertainties on the measured integrated intensities.intensity_denominator_uncertainty – array-like or
Quantity, optional Uncertainties on the measured integrated intensities.temperature (
Quantity, optional) – Temperature at which to evaluate the theoretical ratio curve fromion. If omitted and scalar, uses the ion temperature; if omitted and non-scalar, falls back toion.formation_temperature.bounds_error (
bool, optional) – Passed through tomap_ratio_to_quantity.fill_value (scalar or
Quantity, optional) – Passed through tomap_ratio_to_quantity.line_ratio_kwargs (
dict, optional) – Extra keyword arguments forwarded tofiasco.line_ratio.