deconvolve

radio_beam.utils.deconvolve(beam, other, failure_returns_pointlike=False)[source]

Deconvolve a beam from another

Parameters:
beamBeam

The defined beam.

otherBeam

The beam to deconvolve from this beam

failure_returns_pointlikebool

Option to return a pointlike beam (i.e., one with major=minor=0) if the second beam is larger than the first. Otherwise, a ValueError will be raised

Returns:
new_beamBeam

The convolved Beam

Raises:
failureValueError

If the second beam is larger than the first, the default behavior is to raise an exception. This can be overridden with failure_returns_pointlike