Outlier Detection Utils

stcal.outlier_detection.median Module

Compute median of large datasets in memory- and runtime-efficient ways.

Functions

nanmedian3D(cube[, overwrite_input])

Compute the nanmedian of a cube.

Classes

MedianComputer(full_shape, in_memory[, ...])

Class to efficiently compute a median.

Class Inheritance Diagram

Inheritance diagram of stcal.outlier_detection.median.MedianComputer

stcal.outlier_detection.utils Module

Utility functions for outlier detection routines.

Functions

medfilt(arr, kern_size)

Median filter.

compute_weight_threshold(weight, maskpt)

Compute the weight threshold for a single image or cube.

flag_crs(sci_data, sci_err, blot_data, snr)

Flag outliers.

flag_resampled_crs(sci_data, sci_err, ...)

Detect outliers (CRs) using resampled reference data.

gwcs_blot(median_data, median_wcs, ...[, ...])

Resample the median data to recreate an input image based on the blot wcs.