deconvolve_optimized

radio_beam.utils.deconvolve_optimized(beamprops1, beamprops2, failure_returns_pointlike=False)[source]

An optimized, non-Quantity version of beam deconvolution.

Because no unit conversions are handled, the inputs MUST be in degrees for the major, minor, and position angle.

Parameters:
beamprops1: dict

Dictionary with keys ‘BMAJ’, ‘BMIN’, and ‘BPA’ for the beam to deconvolve from. Can be produced with to_fits_keywords.

beamprops2: dict

Same as beamprops1 for the second beam.

failure_returns_pointlikebool, optional

Return a point beam (zero area) when deconvolution fails. If False, this will instead raise a BeamError when deconvolution fails.

Returns:
new_majorfloat

Deconvolved major FWHM.

new_minorfloat

Deconvolved minor FWHM.

new_pafloat

Deconvolved position angle.