ctapipe is not stable yet, so expect large and rapid changes to structure and functionality as we explore various design choices before the 1.0 release.

intensity_ratio_inside_ring#

ctapipe.image.intensity_ratio_inside_ring(pixel_x, pixel_y, weights, radius, center_x, center_y, width)[source]#

Calculate the ratio of the photons inside a given ring with coordinates (center_x, center_y), radius and width.

The ring is assumed to be in [radius - 0.5 * width, radius + 0.5 * width]

Parameters:
pixel_x: array-like

x coordinates of the camera pixels

pixel_y: array-like

y coordinates of the camera pixels

weights: array-like

weights for the camera pixels, will usually be the pe charges

radius: float

radius of the ring

center_x: float

x coordinate of the ring center

center_y: float

y coordinate of the ring center

width: float

width of the ring