reproject
- stcal.alignment.reproject(wcs1: gwcs.wcs.WCS, wcs2: gwcs.wcs.WCS) Callable[source]
Compute reproection from wcs1 to wcs2.
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
wcs1followed 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
wcs1and returns x, y positions inwcs2.