fit_streak_profile

acstools.utils_findsat_mrt.fit_streak_profile(yarr, p0, fit_background=True, plot_streak=False, max_width=None, ax=None, bounds=None)

Fits a Gaussian to a 1D cross-section of a trail in an image.

Parameters:
yarrfloat

Values of trail cross-section at each position.

p0list of float or None

Initial guesses for amplitude, mean, and sigma parameters. Each guess is allowed to be None if unknown.

fit_backgroundbool, optional

Set to fit a polynomial to the background. The default is True.

plot_streakbool, optional

Set to plot the resulting fitted profile. The default is False.

max_widthint or None, optional

Maximum allowed width of robust satellite trail. Used to define background regions. The default is None.

axmatplotlib.axes.Axes or None, optional

Matplotlib subplot axis of the plot. The default is None (no plot).

boundsdict or None, optional

Dictionary containing the bounds of fit parameters. Format is {'parameter': (lower, upper)}. The default is None.

Returns:
gGaussian1D

Best-fit 1D Gaussian model.

snrfloat

Derived signal-to-noise ratio of feature.

widthfloat

Derived 3-sigma width of feature, where sigma is from the Gaussian fit.

mean_fluxfloat

The mean flux measured within +/-sigma from the Gaussian fit.