calculate_red_blue_asymmetry#

irispy.utils.red_blue.calculate_red_blue_asymmetry(
cube,
*,
rest_wavelength=None,
velocity_range=<Quantity [ 50.,
150.] km / s>,
dv=<Quantity 10. km / s>,
continuum_windows=None,
degree=3,
min_intensity=None,
saturation_limit=None,
return_profiles=True,
)[source]#

Calculate red-blue asymmetry maps from a spectrogram cube.

The asymmetry is computed for each spatial pixel as \((I_R - I_B) / I_p\), where I_R and I_B are mean intensities in matching red and blue velocity ranges and I_p is the interpolated peak intensity.

Parameters:
Returns:

Always contains "red_blue_asymmetry" and "quality" 2D maps. "red_blue_asymmetry_error" is added when the input cube has uncertainty. "observed_profile" and "interpolated_profile" 3D cubes are added when return_profiles=True. The interpolated profile velocity axis is peak-centred; the observed profile velocity axis is relative to rest_wavelength.

Return type:

irispy.spectrograph.RasterCollection