5.39. zero_combine¶
Combines FitsArray to a Fits optimized for zero combining.
- FitsArray.zero_combine(method: str = 'median', clipping: str | None = None, output: str | None = None, override: bool = False) Fits¶
Combines
FitsArrayto aFitsoptimized for zero combining.Parameters
methodstrMethod of combination. Either “average”, “mean”, or “median”.
clippingstr, optionalClipping method (same as rejection in IRAF). Either “sigmaclip” or “minmax”.
outputstr, optionalNew path to save the files.
overridebool, default=FalseIf True, delete the already existing file.
Returns
FitsThe combined
Fits.
Raises
ValueErrorWhen the method is not either “average”, “mean”, “median”, or “sum”.
ValueErrorWhen the clipping is not either “sigmaclip” or “minmax”.
5.39.1. Example:¶
from myraflib import FitsArray
fa = FitsArray.sample()
combined = fa.zero_combine()