tso_aperture_photometry
- jwst.tso_photometry.tso_photometry.tso_aperture_photometry(datamodel, xcenter, ycenter, radius, radius_inner, radius_outer, centroid_x=None, centroid_y=None, psf_width_x=None, psf_width_y=None, psf_flux=None)[source]
Create a photometric catalog for TSO imaging observations.
- Parameters:
- datamodel
CubeModel The input data model of a TSO imaging observation.
- xcenter, ycenterfloat or ndarray
The
xandycenter of the aperture. If a single value is provided, it will be used for all integrations. If an array is provided, its size must match the number of integrations in the datamodel.- radiusfloat
The radius (in pixels) of the circular aperture.
- radius_inner, radius_outerfloat
The inner and outer radii (in pixels) of the circular-annulus aperture, used for local background estimation.
- centroid_x, centroid_yndarray or None, optional
An array of fit centroid values in the x- and y-direction, one for each integration. If provided, the arrays will be added to the output catalog in the
centroid_xandcentroid_ycolumns.- psf_width_x, psf_width_yndarray or None, optional
An array of fit PSF width values (1-sigma) in the x- and y-direction, one for each integration. If provided, the arrays will be added to the output catalog in the
psf_width_xandpsf_width_ycolumns.- psf_fluxndarray or None, optional
An array of PSF flux values, derived from a Gaussian model, one value for each integration. If provided, the array will be added to the output catalog in the
psf_fluxcolumn.
- datamodel
- Returns:
- catalog
QTable Astropy Quantity Table containing the source photometry.
- catalog