magic-cta-pipe is under active development. Expect large and rapid changes in functionality.

calculate_disp#

magicctapipe.utils.calculate_disp(pointing_alt, pointing_az, shower_alt, shower_az, cog_x, cog_y, camera_frame)[source]#

Calculates the DISP parameter, i.e., the angular distance between the event arrival direction and the Center of Gravity (CoG) of the shower image.

Parameters:
pointing_altastropy.units.quantity.Quantity

Altitude of the telescope pointing direction

pointing_azastropy.units.quantity.Quantity

Azimuth of the telescope pointing direction

shower_altastropy.units.quantity.Quantity

Altitude of the event arrival direction

shower_azastropy.units.quantity.Quantity

Azimuth of the event arrival direction

cog_xastropy.units.quantity.Quantity

Image CoG along the X coordinate of the camera geometry

cog_yastropy.units.quantity.Quantity

Image CoG along the Y coordinate of the camera geometry

camera_framectapipe.coordinates.camera_frame.CameraFrame

Camera frame of the telescope

Returns:
astropy.units.quantity.Quantity

DISP parameter