pixels_to_angle#

madcubapy.coordinates.pixels_to_angle(pix_length, fitsmap, axis='y', log=False)[source]#

Convert an angle value (or values) in pixels to an angular quantity.

Parameters:
pix_lengthQuantity, ndarray, list, tuple int, or float

Length (or list of lengths) in pixels separating two points.

fitsmapMadcubaMap or CCDData

Map object used to get CDELT value.

axisstr, optional

Axis in which to calculate angle deviation. Useful for images with non-square pixels. Possible values are 'x' and 'y'.

logbool, optional

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

Returns:
lengthastropy.units.Quantity

Length as an angular quantity.