calculate_theta

pyirf.utils.calculate_theta(events, assumed_source_az, assumed_source_alt)[source]

Calculate sky separation between assumed and reconstructed positions.

Parameters:
eventsastropy.QTable

Astropy Table object containing the reconstructed events information.

assumed_source_az: astropy.units.Quantity

Assumed Azimuth angle of the source.

assumed_source_alt: astropy.units.Quantity

Assumed Altitude angle of the source.

Returns:
theta: astropy.units.Quantity

Angular separation between the assumed and reconstructed positions in the sky.