gwcs_blot

stcal.outlier_detection.utils.gwcs_blot(median_data, median_wcs, blot_shape, blot_wcs, pix_ratio, fillval=0.0)[source]

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

Parameters:
  • median_data (numpy.ndarray) – The data to blot.

  • median_wcs (gwcs.wcs.WCS) – The wcs for the median data.

  • blot_shape (tuple of int) – The target blot data shape.

  • blot_wcs (gwcs.wcs.WCS) – The target/blotted wcs.

  • pix_ratio (float) – Pixel ratio.

  • fillval (float, optional) – Fill value for missing data.

Returns:

  • blotted (numpy.ndarray) – The blotted median data.

  • blot_img (datamodel) – Datamodel containing header and WCS to define the ‘blotted’ image