Centroids (photutils.centroids)#

This subpackage contains 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 n-dimensional array as its "center of mass" determined from image moments.

centroid_quadratic(data[, xpeak, ypeak, ...])

Calculate the centroid of an n-dimensional array by fitting a 2D quadratic polynomial.

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

Calculate the centroid of sources at the defined positions.