SparseOutlierDetectionStep#
snowblind.SparseOutlierDetectionStep, run with strun sparse_outlier_detection. The jwst outlier detection for images, its method unchanged, resampling and
blotting with spizzle.
Guide: Resampling and outlier detection.
- Parameters:
weight_type : one of
'ivm','exptime', default'ivm'- pixfracfloat, 0.0 to 1.0, default
1.0 Pixel shrinkage factor
fillval : string, default
'NAN'maskpt : float, default
0.7snr : string, default
'5.0 4.0'scale : string, default
'1.2 0.7'backg : float, default
0.0save_intermediate_results : boolean, default
False- in_memoryboolean, default
True in_memory flag ignored if run within the pipeline; set at pipeline level instead
- pixmap_stepsizeinteger, at least 1, default
16 Spacing in pixels of the WCS evaluations for the pixel map
- pixmap_orderinteger, default
3 Spline order of the pixel map between them, 1 or 3
- pixfracfloat, 0.0 to 1.0, default
The parameters every stpipe step has (skip, save_results,
output_dir, suffix, pre_hooks, post_hooks and the
others) are described in the stpipe documentation.
- class snowblind.SparseOutlierDetectionStep(name=None, parent=None, config_file=None, _validate_kwds=True, **kws)#
Flag outliers in the DQ array of each input image, as jwst’s OutlierDetectionStep does for images.
The parameters are jwst’s for images, with these differences:
no
kernel: the square kernel only;no
good_bits: the pixels with DO_NOT_USE are left out, as by jwst’s default;no
resample_data: the exposures are always drizzled, which is what this step replaces;the step does not read jwst’s step parameters from CRDS;
pixmap_stepsize16 andpixmap_order3: the pixel map is interpolated with splines between the pixels where the WCS is evaluated, for the drizzling and the blot alike.
Only images are supported: the step raises for spectra, coronagraphy and time series, for which jwst’s step stays. It is not a subclass of jwst’s step, whose parameters stpipe would merge into its own.
- process(input_data)#
Flag outliers in the input images.
- Parameters:
- input_dataasn file or ~jwst.datamodels.library.ModelLibrary
The input association.
- Returns:
- ~jwst.datamodels.library.ModelLibrary
The input images with DQ flags set for the outliers found.