get_traced_luminosities#
- silmaril.imaging.get_traced_luminosities(source_image, source_grid, traced_pixel_corners, nonempty_pixels=None)#
Lenses the given source image and returns a 2d array of luminosity values corresponding to pixels on the image plane.
- Parameters:
source_image (numpy.ndarray) – image of the source
source_grid (Grid) – grid of source plane coordinates
traced_pixel_corners (numpy.ndarray) – grid of source plane coordinates of the corners of each pixel on the image plane
nonempty_pixels (np.ndarray) – list of indices of pixels on the image plane that fall on the source image when traced back to the source plane
- Returns:
luminosities – array of luminosity values in Jy/arcsec^2
- Return type:
numpy.ndarray