nanmedian3D
- stcal.outlier_detection.median.nanmedian3D(cube: ndarray, overwrite_input: bool = True) ndarray[source]
Compute the nanmedian of a cube.
This produces identical results to np.nanmedian but is much more memory efficient for large cubes.
RuntimeWarnings reporting “All-Nan slice” will be ignored.
- Parameters:
cube – 3-dimensional array. Will be modified in-place if overwrite_input is True
overwrite_input – Passed to
np.nanmedian, if True the input cube will be modified
- Returns:
2-dimensional computed median array
- Return type:
np.ndarray