world_to_pixel#

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

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

Parameters:
pointsQuantity or numpy.ndarray or 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:
pixel_pointsndarray

Points converted to pixel coordinates.