HeaderMixinClass¶
- class spectral_cube.base_class.HeaderMixinClass[source]¶
Bases:
object
A mixin class to provide header updating from WCS objects. The parent object must have a WCS.
Attributes Summary
Methods Summary
check_jybeam_smoothing
([raise_error_jybm])This runs for spatial resolution operations (e.g.
spatial_smooth
) and either an error or warning when smoothing will affect brightness in Jy/beam operations.wcs
()Attributes Documentation
- header¶
Methods Documentation
- check_jybeam_smoothing(raise_error_jybm=True)[source]¶
This runs for spatial resolution operations (e.g.
spatial_smooth
) and either an error or warning when smoothing will affect brightness in Jy/beam operations.This is also true for using the
with_beam
andwith_beams
methods, including 1D spectra with Jy/beam units.- Parameters:
- raise_error_jybmbool, optional
Raises a
BeamUnitsError
when True (default). When False, it triggers aBeamWarning
.