cone_solid_angle

pyirf.utils.cone_solid_angle(angle)[source]

Calculate the solid angle of a view cone.

Parameters:
angle: astropy.units.Quantity or astropy.coordinates.Angle

Opening angle of the view cone.

Returns:
solid_angle: astropy.units.Quantity

Solid angle of a view cone with opening angle angle.