BackgroundRMSBase¶
- class photutils.background.BackgroundRMSBase(sigma_clip=SigmaClip(sigma=3.0, sigma_lower=3.0, sigma_upper=3.0, maxiters=10, cenfunc='median', stdfunc='std', grow=False))[source]¶
Bases:
object
Base class for classes that estimate scalar background RMS values.
- Parameters:
- sigma_clip
astropy.stats.SigmaClip
object, optional A
SigmaClip
object that defines the sigma clipping parameters. IfNone
then no sigma clipping will be performed. The default is to perform sigma clipping withsigma=3.0
andmaxiters=5
.
- sigma_clip
Methods Summary
__call__
(data[, axis, masked])Call self as a function.
calc_background_rms
(data[, axis, masked])Calculate the background RMS value.
Methods Documentation
- abstract 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 aMaskedArray
is returned. IfFalse
, then andarray
is returned, where masked values have a value of NaN. The default isFalse
.
- dataarray_like or
- Returns:
- resultfloat,
ndarray
, orMaskedArray
The calculated background RMS value. If
masked
isFalse
, then andarray
is returned, otherwise aMaskedArray
is returned. A scalar result is always returned as a float.
- resultfloat,