angle_to_pixels#
- madcubapy.coordinates.angle_to_pixels(length, fitsmap, axis='y', log=False)[source]#
Convert a length value (or values) in angular units to data pixels.
- Parameters:
- length
Quantity,ndarray,list,tuple,intorfloat Length (or list of lengths) 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.
- length
- Returns:
- pix_length
ndarray Length in pixels.
- pix_length