ImageModel

class ctapipe.image.toymodel.ImageModel[source]

Bases: object

Methods Summary

expected_signal(camera, intensity)

Expected signal in each pixel for the given camera and total intensity.

generate_image(camera[, intensity, …])

Generate a randomized DL1 shower image.

pdf(x, y)

Probability density function.

Methods Documentation

expected_signal(camera, intensity)[source]

Expected signal in each pixel for the given camera and total intensity.

Parameters
camera: `ctapipe.instrument.CameraGeometry`

camera geometry object

intensity: int

Total number of expected photo electrons

Returns
image: array with length n_pixels containing the image
generate_image(camera, intensity=50, nsb_level_pe=20, rng=None)[source]

Generate a randomized DL1 shower image. For the signal, poisson random numbers are drawn from the expected signal distribution for each pixel. For the background, for each pixel a poisson random number if drawn with mean nsb_level_pe.

Parameters
cameractapipe.instrument.CameraGeometry

camera geometry object

intensityint

Total number of photo electrons to generate

nsb_level_petype

level of NSB/pedestal in photo-electrons

Returns
image: array with length n_pixels containing the image
signal: only the signal part of image
noise: only the noise part of image
abstract pdf(x, y)[source]

Probability density function.