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

header

Methods Summary

check_jybeam_smoothing([raise_error_jybm])

This runs for spatial resolution operations (e.g.

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 and with_beams methods, including 1D spectra with Jy/beam units.

Parameters
raise_error_jybeambool, optional

Raises a BeamUnitsError when True (default). When False, it triggers a BeamWarning.

wcs()[source]