combine_beams

sofia_redux.scan.utilities.utils.combine_beams(beam1, beam2, deconvolve=False)[source]

Convolve or deconvolve one beam by another.

Parameters:
beam1beams.gaussian_2d.Gaussian2D or Gaussian2D

The original beam to modify.

beam2Gaussian2D or None or beams.gaussian_2d.Gaussian2D

The beam to modify beam1 with.

deconvolvebool, optional

If True, indicates a deconvolution rather than a convolution.

Returns:
beams.gaussian_2d.Gaussian2D or Gaussian2D

The combined beam.