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:
datamodelCubeModel

The input data model of a TSO imaging observation.

xcenter, ycenterfloat or ndarray

The x and y center 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_x and centroid_y columns.

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_x and psf_width_y columns.

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_flux column.

Returns:
catalogQTable

Astropy Quantity Table containing the source photometry.