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.

ImageModifier#

class ctapipe.image.modifications.ImageModifier(**kwargs: Any)[source]#

Bases: TelescopeComponent

Component to tune simulated background to overserved NSB values. A differentiation between bright and dim pixels is taking place because this happens at DL1a level and in general the integration window would change for peak-searching extraction algorithms with different background levels introducing a bias to the charge in dim pixels.

The performed steps include: - Smearing of the image (simulating a worse PSF) - Adding poissonian noise (different for bright and dim pixels) - Adding a bias to dim pixel charges (see above)

Attributes Summary

noise_bias_dim_pixels

extra bias to add in dim pixels.

noise_correct_bias

If True subtract the expected noise from the image.

noise_level_bright_pixels

expected extra noise in bright pixels.

noise_level_dim_pixels

expected extra noise in dim pixels.

noise_transition_charge

separation between dim and bright pixels.

psf_smear_factor

Fraction of light to move to each neighbor.

rng_seed

Seed for the random number generator

Methods Summary

__call__(tel_id, image[, rng])

Call self as a function.

Attributes Documentation

noise_bias_dim_pixels#

extra bias to add in dim pixels.

noise_correct_bias#

If True subtract the expected noise from the image.

noise_level_bright_pixels#

expected extra noise in bright pixels.

noise_level_dim_pixels#

expected extra noise in dim pixels.

noise_transition_charge#

separation between dim and bright pixels.

psf_smear_factor#

Fraction of light to move to each neighbor.

rng_seed#

Seed for the random number generator

Methods Documentation

__call__(tel_id, image, rng=None)[source]#

Call self as a function.