create_mrt_line_kernel
- acstools.utils_findsat_mrt.create_mrt_line_kernel(width, sigma, outfile=None, shape=(1024, 2048), plot=False, theta=None, processes=1)
Creates a model signal MRT signal of a line of specified width.
The trails can be blurred by a simple Gaussian model PSF. More accurate PSF convolution using an input PSF model will be incorporated in the future. These kernels are used for detection of real linear signals in the MRT of imaging data.
- Parameters:
width (int) – Width of the line. Intensity is constant over this width.
sigma (float) – Gaussian sigma of the PSF. This is NOT FWHM.
outfile (str or
None
, optional) – Location to save an output fits file of the kernel. The default isNone
. If a filename is given and it exists, it will be overwritten.sz (tuple of int, optional) – Size of the image on which to place the line. The default is
(1024, 2048)
.plot (bool, optional) – Flag to plot the original image, MRT, and kernel cutout.
theta (array or
None
, optional) – Set of angles in degrees at which to calculate the MRT, default isNone
, which defaults tonp.arange(0, 180, 0.5)
.processes (int, optional) – Number of processes to use when calculating MRT. Default is 1 (no multi-processing).
- Returns:
kernel – The resulting kernel.
- Return type:
ndarray