TiledOutlierStep#
snowblind.TiledOutlierStep, run with strun tiled_outlier. Outlier detection for images against one reference built from the input
pixels of all the exposures on a finer grid, processed in tiles. Finds more
cosmic rays near stars and flags fewer star cores than the jwst step.
Guide: Resampling and outlier detection.
- Parameters:
- snrstring, default
'5.0 4.0' Thresholds in noise of the two passes
- scalestring, default
'0.5 0.3' Factors of the prediction’s largest difference from its neighbors added to them
- in_memoryboolean, default
True in_memory flag ignored if run within the pipeline; set at pipeline level instead
- snrstring, 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.TiledOutlierStep(name=None, parent=None, config_file=None, _validate_kwds=True, **kws)#
Flag outliers in images against one reference built from all their input pixels, in tiles.
The reference, the prediction of each exposure and the flags are those of this module (predict and flag_outliers), on the outlier mosaic’s grid that jwst’s outlier detection uses (the input pixel scale, from
resampled_wcs_from_models) sampled twice as finely, with pixfrac 0.8 and the correction step. The outliers get DO_NOT_USE and OUTLIER indq, and NaN in the data, error and variance arrays, as jwst’s step sets them.The parameters are jwst’s
snrandscale;scaleis 0.5 / 0.3, which the sharper reference allows for every NIRCam, NIRISS and NIRSpec imaging filter simulated. The grid, pixfrac and the correction step are fixed. The step does not read jwst’s step parameters from CRDS, and runs on images only: it raises for spectra, coronagraphy and time series.- process(input_data)#
Flag the outliers of every input image.
- Parameters:
- input_dataasn file or ~jwst.datamodels.library.ModelLibrary
The images.
- Returns:
- ~jwst.datamodels.library.ModelLibrary
The images with their outliers flagged.