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_length
Quantity,ndarray,list,tupleint, orfloat Length (or list of lengths) in pixels separating two points.
- fitsmap
MadcubaMaporCCDData Map object used to get CDELT value.
- axis
str, optional Axis in which to calculate angle deviation. Useful for images with non-square pixels. Possible values are
'x'and'y'.- log
bool, optional If True, print on screen information messages on how the data is parsed.
- pix_length
- Returns:
- length
astropy.units.Quantity Length as an angular quantity.
- length