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 FitsArray to a Fits optimized for zero combining.

Parameters

methodstr

Method of combination. Either “average”, “mean”, or “median”.

clippingstr, optional

Clipping method (same as rejection in IRAF). Either “sigmaclip” or “minmax”.

outputstr, optional

New path to save the files.

overridebool, default=False

If True, delete the already existing file.

Returns

Fits

The combined Fits.

Raises

ValueError

When the method is not either “average”, “mean”, “median”, or “sum”.

ValueError

When the clipping is not either “sigmaclip” or “minmax”.


5.39.1. Example:

from myraflib import FitsArray

fa = FitsArray.sample()
combined = fa.zero_combine()