Rejector
Rejector()Base class for rejection objects.
Methods
| Name | Description |
|---|---|
| apply | Apply this rejection algorithm to an image stack. |
apply
Rejector.apply(arr, mask=None, *, validate=True)Apply this rejection algorithm to an image stack.
Parameters
arr : (ndarray, shape(N, *spatial))-
Image stack. Inputs with more than 3 dimensions are flattened internally; output shapes match the trailing spatial dimensions of the input.
mask : ndarray of bool = None-
Input mask;
Truemeans already masked. Must have the same shape asarrbefore any internal flattening. validate : bool = True-
If
True, validate inputs before calling the kernel.
Returns
: mask_rej, std, low, upp, nit, output_flags : tuple of ndarray-
Rejection mask and diagnostics from this rejection algorithm.
stdis the per-pixel spread used by sigma/CCD clipping andNonefor rejection algorithms without a spread diagnostic.