reproject¶
-
jwst.assign_wcs.util.reproject(wcs1, wcs2, origin=0)[source]¶ Given two WCSs return a function which takes pixel coordinates in the first WCS and computes their location in the second one.
It performs the forward transformation of
wcs1followed by the inverse ofwcs2.Parameters: wcs2 (wcs1,) – WCS objects. Returns: _reproject – Function to compute the transformations. It takes x, y positions in wcs1and returns x, y positions inwcs2.Return type: func