convert_wave¶
- sofia_redux.visualization.utils.unit_conversion.convert_wave(wavelength: array, start_unit: str, end_unit: str) array [source]¶
Convert wavelength data to new units.
- Parameters:
- wavelengtharray-like
Input wavelength data to convert.
- start_unitstr
Starting unit for wavelength data, to convert from.
- end_unitstr
Desired unit for wavelength data, to convert to.
- Returns:
- out_wavearray-like
Converted wavelength array.
- Raises:
- ValueError
If the input and output units are incompatible.