gaussian1d_moments

photutils.centroids.gaussian1d_moments(data, mask=None)[source]

Deprecated since version 1.2: The gaussian1d_moments function is deprecated and may be removed in a future version.

Estimate 1D Gaussian parameters from the moments of 1D data.

This function can be useful for providing initial parameter values when fitting a 1D Gaussian to the data.

Parameters
dataarray_like (1D)

The 1D array.

maskarray_like (1D bool), optional

A boolean mask, with the same shape as data, where a True value indicates the corresponding element of data is masked.

Returns
amplitude, mean, stddevfloat

The estimated parameters of a 1D Gaussian.