reproject¶
- stcal.alignment.reproject(wcs1, wcs2)[source]¶
Given two WCSs or transforms return a function which takes pixel coordinates in the first WCS or transform and computes them in pixel coordinates in the second one. It performs the forward transformation of
wcs1
followed by the inverse ofwcs2
.- Parameters:
wcs1 (astropy.wcs.WCS or gwcs.wcs.WCS) – Input WCS objects or transforms.
wcs2 (astropy.wcs.WCS or gwcs.wcs.WCS) – Output WCS objects or transforms.
- Returns:
Function to compute the transformations. It takes x, y
positions in
wcs1
and returns x, y positions inwcs2
.