calc_gwcs_pixmap

stcal.outlier_detection.utils.calc_gwcs_pixmap(in_wcs, out_wcs, in_shape)[source]

Return a pixel grid map from input frame to output frame.

Parameters:
  • in_wcs (gwcs.wcs.WCS) – Input/source wcs.

  • out_wcs (gwcs.wcs.WCS) – Output/projected wcs.

  • in_shape (list of int) – Input shape used to compute the input bounding box.

Returns:

pixmap – Computed pixmap.

Return type:

numpy.ndarray