pixel_to_world#

madcubapy.coordinates.pixel_to_world(points, fitsmap, origin=0, log=False)[source]#

Convert a set of points in pixel coordinates (python or FITS) to world coordinates.

Parameters:
pointsndarray, tuple, or list.

Input points.

fitsmapMadcubaMap or CCDData.

Map object used to get WCS data.

originint, optional, default=0

Starting coordinate for image data: 0 for python pixel coordinates, 1 for FITS coordinates.

logbool, optional

If True, print on screen information messages on how the data is parsed.

Returns:
fits_pointsQuantity

Points converted to world coordinates with units.