luv_finder.model

The source model, a Gaussian line from a Gaussian source evaluated in the UV plane, and its shared formulas.

Module Attributes

LINE_FLUX

Line flux per peak flux density and FWHM of a Gaussian line, sqrt(2 pi) / 2.355.

CONTINUUM_ORDER

Degree of the continuum polynomial fitted with each line, in the search and the fit.

Functions

continuum_basis(n_chan, terms[, xp])

The continuum's terms polynomials, powers of the channel index mapped to [-1, 1]: (n_chan, terms).

covariance(bmaj, bmin, pa[, xp])

Sky covariance (s_ee, s_nn, s_en) of a Gaussian of FWHM bmaj, bmin at pa deg E of N.

envelope(uw, vw, cov[, xp])

Visibility amplitude at (uw, vw) wavelengths of a unit-flux Gaussian of sky covariance cov (rad^2).

line_profile(freq, centre, width[, xp])

Unit-peak Gaussian line at freq (Hz), centred on centre (Hz), of FWHM width (km/s).

rotated(major, minor, pa[, xp])

(s_ee, s_nn, s_en) of variances major along pa deg east of north and minor across it.

Classes

Gaussian([dra, ddec, total_flux, bmin, ...])

2D spatial x 1D spectral Gaussian evaluated directly in the UV plane.

luv_finder.model.CONTINUUM_ORDER = 1

Degree of the continuum polynomial fitted with each line, in the search and the fit.

class luv_finder.model.Gaussian(dra=0.0, ddec=0.0, total_flux=1.0, bmin=0.0, bmaj=0.0, pa=0.0, nu_center=0.0, width=100.0)[source]

2D spatial x 1D spectral Gaussian evaluated directly in the UV plane.

Position (arcsec), FWHM axes bmaj, bmin (arcsec) at pa (deg E of N), line flux total_flux (Jy km/s) at nu_center (Hz) of FWHM width (km/s).

envelope(chunk) → ndarray[source]

Spatial envelope A(u, v): the source’s visibility amplitude, 1 at zero spacing, (n_chan, n_row).

spectrum(freq: ndarray) → ndarray[source]

Line profile in Jy at freq (Hz).

luv_finder.model.LINE_FLUX = np.float64(1.0643856792488324)

Line flux per peak flux density and FWHM of a Gaussian line, sqrt(2 pi) / 2.355.

luv_finder.model.continuum_basis(n_chan: int, terms: int, xp=<module 'numpy' from '/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/site-packages/numpy/__init__.py'>)[source]

The continuum’s terms polynomials, powers of the channel index mapped to [-1, 1]: (n_chan, terms).

luv_finder.model.covariance(bmaj, bmin, pa, xp=<module 'numpy' from '/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/site-packages/numpy/__init__.py'>)[source]

Sky covariance (s_ee, s_nn, s_en) of a Gaussian of FWHM bmaj, bmin at pa deg E of N.

luv_finder.model.envelope(uw, vw, cov, xp=<module 'numpy' from '/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/site-packages/numpy/__init__.py'>)[source]

Visibility amplitude at (uw, vw) wavelengths of a unit-flux Gaussian of sky covariance cov (rad^2).

luv_finder.model.line_profile(freq, centre, width, xp=<module 'numpy' from '/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/site-packages/numpy/__init__.py'>)[source]

Unit-peak Gaussian line at freq (Hz), centred on centre (Hz), of FWHM width (km/s).

luv_finder.model.rotated(major, minor, pa, xp=<module 'numpy' from '/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/site-packages/numpy/__init__.py'>)[source]

(s_ee, s_nn, s_en) of variances major along pa deg east of north and minor across it.