luv_finder.imaging

Natural-weighted dirty cubes and moment-8/continuum maps on a regular grid, by NUFFT.

Functions

dirty_cube(data, dra, ddec[, cores])

Natural-weighted dirty cube of one field on the regular dra x ddec grid (arcsec, sky frame).

dirty_maps(data, dra, ddec[, cores])

Moment-8 (S/N), continuum (Jy/beam) and continuum noise of one field on the dra x ddec grid.

line_maps(data, cat[, size, pb_limit])

(dra, ddec, moment0) within size arcsec of each fitted line, Jy/beam km/s over +-1 FWHM, no continuum.

mosaic_dirty_maps(cubes[, pb_limit])

Linear mosaic of the pointings' cubes (PB >= pb_limit): (dra, ddec, moment8, continuum, sigma).

oversample(axis[, factor])

axis with factor times as many pixels over the same span (the search grid's res/2 to res/4).

pointing_cubes(path[, grid_cfg, pb_limit, ...])

The dirty cube of every field of a measurement set or NPZ, on its search grid oversampled factor times.

Classes

DirtyCube(cube, weight, dra, ddec, offset, ...)

Dirty cube of one pointing, (n_chan, n_dra, n_ddec) Jy/beam; channel i has noise weight[i]**-0.5.

class luv_finder.imaging.DirtyCube(cube: ndarray, weight: ndarray, dra: list[float], ddec: list[float], offset: ndarray, freqs: ndarray, dish_diameter: float, window_sizes: list[int])[source]

Dirty cube of one pointing, (n_chan, n_dra, n_ddec) Jy/beam; channel i has noise weight[i]**-0.5.

luv_finder.imaging.dirty_cube(data: DataHandler, dra, ddec, cores: int | None = None) → DirtyCube[source]

Natural-weighted dirty cube of one field on the regular dra x ddec grid (arcsec, sky frame).

luv_finder.imaging.dirty_maps(data: DataHandler, dra, ddec, cores: int | None = None)[source]

Moment-8 (S/N), continuum (Jy/beam) and continuum noise of one field on the dra x ddec grid.

luv_finder.imaging.line_maps(data: DataHandler, cat, size: float = 8.0, pb_limit: float = 0.2) → list[tuple][source]

(dra, ddec, moment0) within size arcsec of each fitted line, Jy/beam km/s over +-1 FWHM, no continuum.

Positions no pointing covers (primary beam below pb_limit) are NaN, the whole map when a fit ran to one of them.

luv_finder.imaging.mosaic_dirty_maps(cubes: Sequence[DirtyCube], pb_limit: float = 0.2)[source]

Linear mosaic of the pointings’ cubes (PB >= pb_limit): (dra, ddec, moment8, continuum, sigma).

luv_finder.imaging.oversample(axis, factor: int = 2) → ndarray[source]

axis with factor times as many pixels over the same span (the search grid’s res/2 to res/4).

luv_finder.imaging.pointing_cubes(path: str, grid_cfg: dict | None = None, pb_limit: float = 0.2, factor: int = 2, cores: int | None = None)[source]

The dirty cube of every field of a measurement set or NPZ, on its search grid oversampled factor times.