wcs_shift¶
- sofia_redux.instruments.forcast.register_datasets.wcs_shift(header, refheader, xy, wcskey=' ')[source]¶
Return the pixel offset of a point on header relative to refheader
- Parameters:
- headerastropy.io.fits.header.Header
- refheaderastropy.io.fits.header. Header
- xyarray_like of float
2-element (x, y) coordinate to shift or (n, (x, y)) coordinates
- Returns:
- numpy.ndarray
(x, y) offset in pixels of xy on header relative to refheader. This is the shift you would need to apply to xy in order for that point to align with that same point on the reference header after transformation.