FITS_tools.hcongrid.get_pixel_mapping(header1, header2)[source] [edit on github]

Determine the mapping from pixel coordinates in header1 to pixel coordinates in header2


header1 : Header or WCS

The header or WCS corresponding to the image to be transformed

header2 : Header or WCS

The header or WCS to interpolate onto


grid : ndarray

ndarray describing a grid of y,x pixel locations in the input header’s pixel units but the output header’s world units


TypeError :

If either header is not a Header or WCS instance NotImplementedError if the CTYPE in the header is not recognized