create_dataset
- jwst.refpix.reference_pixels.create_dataset(input_model, odd_even_columns, use_side_ref_pixels, side_smoothing_length, side_gain, odd_even_rows, conv_kernel_params, siglimit)[source]
Create a dataset object from an input model.
- Parameters:
- input_model
JwstDataModel Science data model to be corrected
- odd_even_columnsbool
Flag that controls whether odd and even-numbered columns are processed separately (NIR only)
- use_side_ref_pixelsbool
Flag that controls whether the side reference pixels are used in the correction (NIR only)
- side_smoothing_lengthint
Smoothing length to use in calculating the running median of the side reference pixels (NIR only)
- side_gainfloat
Gain to use in applying the side reference pixel correction (NIR only)
- odd_even_rowsbool
Flag that controls whether odd and even-numbered rows are handled separately (MIR only)
- conv_kernel_paramsdict
Dictionary containing the parameters needed for the optimized convolution kernel
- siglimitfloat
Sigma clipping limit for outlier rejection
- input_model
- Returns:
- dataset_subclass
Dataset The appropriate subclass of the dataset class
- dataset_subclass