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 of wcs2.

Parameters:
Returns:

  • Function to compute the transformations. It takes x, y

  • positions in wcs1 and returns x, y positions in wcs2.