SpectralData#
- class madcubapy.coordinates.SpectralData(value, unit=None, frame_type='observed', radial_velocity=None, doppler_rest=None, doppler_convention=None, **kwargs)[source]#
Bases:
SpectralCoordWrapper for
SpectralCoordthat adds support for rest-frame frequencies input.Note
Frame conversion between observed and rest frequencies always uses the relativistic convention (matching Astropy behavior). For expressing spectral coordinates as velocities, the doppler_convention can be ‘radio’ or ‘relativistic’.
- Parameters:
- value
int,float,ndarray, orQuantity Spectral values (wavelength, frequency, energy, wavenumber, or velocity)
- unit
Unit Unit for the given spectral values. Mandatory if value is not a
Quantity.- frame_type{“observed”, “rest”}, default: “observed”
Reference frame for input data.
- radial_velocity
Quantity, optional Radial velocity of the source.
- doppler_rest
Quantity, optional Reference rest frequency (for velocity calculations).
- doppler_convention{“radio”, “relativistic”}, optional
The Doppler convention to use when expressing the spectral value as velocity.
- value
- Other Parameters:
- **kwargs
Additional arguments passed to
SpectralCoord.