Centroids (photutils.centroids)#

Subpackage containing tools for centroiding sources.

Functions#

centroid_1dg(data[, error, mask])

Calculate the centroid of a 2D array by fitting 1D Gaussians to the marginal x and y distributions of the array.

centroid_2dg(data[, error, mask])

Calculate the centroid of a 2D array by fitting a 2D Gaussian to the array.

centroid_com(data[, mask])

Calculate the centroid of an array as the flux-weighted center of mass derived from image moments.

centroid_quadratic(data[, mask, ...])

Calculate the centroid of a 2D array by fitting a 2D quadratic polynomial.

centroid_sources(data, xpos, ypos[, ...])

Calculate the centroid of sources at the defined positions in a 2D array using a specified centroid function.

Classes#

CentroidQuadratic(*[, fit_boxsize])

Class to calculate the centroid of a 2D array by fitting a 2D quadratic polynomial.

Class Inheritance Diagram#

Inheritance diagram of photutils.centroids.core.CentroidQuadratic

User Guide#

Centroids (photutils.centroids)