traced_luminosities_from_stars#
- silmaril.imaging.traced_luminosities_from_stars(x_viewed, y_viewed, flux, source_grid, traced_pixel_corners, nonempty_pixels=None)#
Lenses the given source galaxy directly from particle data and returns a 2d array of luminosity values corresponding to pixels on the image plane.
- Parameters:
x_viewed (numpy.ndarray) – array of particle x coordinates in arcseconds
y_viewed (numpy.ndarray) – array of particle y coordinates in arcseconds
flux (numpy.ndarray) – array of particle fluxes in Jy
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