BackgroundRMSBase#

class photutils.background.BackgroundRMSBase(sigma_clip=<default: SigmaClip(sigma=3.0, maxiters=10)>)[source]#

Bases: _BackgroundCommonBase, ABC

Base class for classes that estimate scalar background RMS values.

Methods Summary

__call__(data[, axis, masked])

Call self as a function.

calc_background_rms(data, *[, axis, masked])

Calculate the background RMS value.

Methods Documentation

__call__(data, axis=None, masked=False)[source]#

Call self as a function.

abstractmethod calc_background_rms(data, *, axis=None, masked=False)[source]#

Calculate the background RMS value.

Parameters:
dataarray_like or MaskedArray

The array for which to calculate the background RMS value.

axisint or None, optional

The array axis along which the background RMS is calculated. If None, then the entire array is used.

maskedbool, optional

If True, then a MaskedArray is returned. If False, then a ndarray is returned, where masked values have a value of NaN. The default is False.

Returns:
resultfloat, ndarray, or MaskedArray

The calculated background RMS value. If masked is False, then a ndarray is returned, otherwise a MaskedArray is returned. A scalar result is always returned as a float.