Skip to content

Latest commit

 

History

History
173 lines (108 loc) · 2.65 KB

model-api.rst

File metadata and controls

173 lines (108 loc) · 2.65 KB

Sky Model

Functionality related to the Sky Model.

Coherency Conversion

Utilities for converting back and forth between stokes parameters and correlations

Numpy

africanus.model.coherency

convert

convert

Cuda

africanus.model.coherency.cuda

convert

convert

Dask

africanus.model.coherency.dask

convert

convert

Spectral Model

Functionality for computing a Spectral Model.

Numpy

africanus.model.spectral

spectral_model

spectral_model

Dask

africanus.model.spectral.dask

spectral_model

spectral_model

Spectral Index

Functionality related to the spectral index.

For example, we may want to compute the spectral indices of components in a sky model defined by

$$I(\nu) = I(\nu_0) \left(\frac{\nu}{\nu_0}\right)^\alpha$$

where ν are frequencies ay which we want to construct the intensity of a Stokes I image and the ν0 is the corresponding reference frequency. The spectral index α determines how quickly the intensity grows or decays as a function of frequency. Given a list of model image components (preferably with the residuals added back in) we can recover the corresponding spectral indices and reference intensities using the ~africanus.model.spi.fit_spi_components function. This will also return a lower bound on the associated uncertainties on these components.

Numpy

africanus.model.spi

fit_spi_components

fit_spi_components

Dask

africanus.model.spi.dask

fit_spi_components

fit_spi_components

Source Morphology

Shape functions for different Source Morphologies

Numpy

africanus.model.shape

gaussian

gaussian

Dask

africanus.model.shape.dask

gaussian

gaussian

WSClean Spectral Model

Utilities for creating a spectral model from a wsclean component file.

Numpy

africanus.model.wsclean

load spectra

load

spectra

Dask

africanus.model.wsclean.dask

spectra

spectra