luv_finder.utils

Shared constants and the analytic ALMA primary beam.

The primary beam follows the ALMA Technical Handbook: the measured FWHM of the 12 m and 7 m antennas is about 1.13 lambda / D, and CASA models the beam as an Airy pattern scaled so that its FWHM matches.

Module Attributes

PB_LIMIT

Primary-beam level down to which a pointing is searched, fitted and imaged.

BLOCK_BYTES

Arrays processed in blocks stay near this size in memory.

FWHM_FACTOR

Measured primary-beam FWHM in units of lambda / D (ALMA Technical Handbook).

X_HALF

Argument at which the Airy pattern drops to one half.

Functions

primary_beam(offset_arcsec, freq_hz, ...[, xp])

Primary-beam attenuation in [0, 1] at an angular offset from the pointing centre.

primary_beam_at(dra, ddec, offset, freq_hz, ...)

primary_beam() at (dra, ddec) arcsec of the pointing centred on offset.

primary_beam_fwhm(freq_hz, dish_diameter)

primary_beam_radius(level, freq_hz, ...)

Offset in arcsec at which the main lobe falls to level (0 < level <= 1).

luv_finder.utils.BLOCK_BYTES = 2147483648

Arrays processed in blocks stay near this size in memory.

luv_finder.utils.FWHM_FACTOR = 1.13

Measured primary-beam FWHM in units of lambda / D (ALMA Technical Handbook).

luv_finder.utils.PB_LIMIT = 0.2

Primary-beam level down to which a pointing is searched, fitted and imaged.

luv_finder.utils.X_HALF = 1.6163399483104932

Argument at which the Airy pattern drops to one half.

luv_finder.utils.primary_beam(offset_arcsec, freq_hz, dish_diameter, xp=<module 'numpy' from '/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/site-packages/numpy/__init__.py'>)[source]

Primary-beam attenuation in [0, 1] at an angular offset from the pointing centre.

luv_finder.utils.primary_beam_at(dra, ddec, offset, freq_hz, dish_diameter, xp=<module 'numpy' from '/opt/hostedtoolcache/Python/3.12.15/x64/lib/python3.12/site-packages/numpy/__init__.py'>)[source]

primary_beam() at (dra, ddec) arcsec of the pointing centred on offset.

luv_finder.utils.primary_beam_radius(level, freq_hz, dish_diameter)[source]

Offset in arcsec at which the main lobe falls to level (0 < level <= 1).