Utility functions

Reference/API

pyirf.utils Module

Functions

is_scalar(val)

Workaround that also supports astropy quantities

calculate_theta(events, assumed_source_az, ...)

Calculate sky separation between assumed and reconstructed positions.

calculate_source_fov_offset(events[, prefix])

Calculate angular separation between true and pointing positions.

check_histograms(hist1, hist2[, key])

Check if two histogram tables have the same binning

cone_solid_angle(angle)

Calculate the solid angle of a view cone.