detect_outliers

jwst.outlier_detection.tso.detect_outliers(input_model, save_intermediate_results, good_bits, maskpt, rolling_window_width, snr, make_output_path)[source]

Flag outliers in tso data.

Parameters:
input_modelCubeModel

The input cube model.

save_intermediate_resultsbool

If True, save the rolling median model as a CubeModel.

good_bitsint

DQ flag bit values indicating good pixels.

maskptfloat

The percentage of the mean weight to use as a threshold for masking.

rolling_window_widthint

The width of the rolling median window.

snrfloat

The signal-to-noise ratio threshold for flagging outliers.

make_output_pathcallable

A function that generates a path for saving intermediate results.

Returns:
CubeModel

The input model with outliers flagged.