NSBImageCleaner#
- class ctapipe.image.cleaning.NSBImageCleaner(**kwargs: Any)[source]#
 Bases:
TailcutsImageCleanerClean images based on lstchains image cleaning technique described in [LST23]. See
ctapipe.image.nsb_image_cleaning.Attributes Summary
Fraction parameter for
bright_cleaning.Consider this number of the brightest pixels for calculating the mean charge.
Threshold parameter for
bright_cleaning.Set to true to get only largest island.
Factor for interleaved pedestal cleaning.
Time limit for the
apply_time_delta_cleaning.Used for
apply_time_delta_cleaning.Methods Summary
__call__(tel_id, image[, arrival_times, ...])Apply NSB image cleaning used by lstchain.
Attributes Documentation
- bright_cleaning_fraction#
 Fraction parameter for
bright_cleaning. Pixels below fraction * (mean charge in thebright_cleaning_n_pixelsbrightest pixels) will be removed from the cleaned image. Setbright_cleaning_thresholdto None if nobright_cleaningshould be applied.
- bright_cleaning_n_pixels#
 Consider this number of the brightest pixels for calculating the mean charge. Pixels below fraction * (mean charge in the
bright_cleaning_n_pixelsbrightest pixels) will be removed from the cleaned image. Setbright_cleaning_thresholdto None if nobright_cleaningshould be applied.
- bright_cleaning_threshold#
 Threshold parameter for
bright_cleaning. Minimum mean charge in thebright_cleaning_n_pixelsbrightest pixels to apply the cleaning. Set to None if nobright_cleaningshould be applied.
- largest_island_only#
 Set to true to get only largest island.
- pedestal_factor#
 Factor for interleaved pedestal cleaning. It is multiplied by the pedestal standard deviation for each pixel to calculate pixelwise upper limit picture thresholds and clip them with
picture_thresh_peofTailcutsImageCleanerfortailcuts_cleanconsidering the current background. If no pedestal standard deviation is given, interleaved pedestal cleaning is not applied andpicture_thresh_peofTailcutsImageCleaneris used alone instead.
- time_limit#
 Time limit for the
apply_time_delta_cleaning. Set to None if noapply_time_delta_cleaningshould be applied.
- time_num_neighbors#
 Used for
apply_time_delta_cleaning. A selected pixel needs at least this number of (already selected) neighbors that arrived within a giventime_limitto itself to survive this cleaning.
Methods Documentation
- __call__(tel_id: int, image: ndarray, arrival_times: ndarray | None = None, *, monitoring: CameraMonitoringContainer | None = None) ndarray[source]#
 Apply NSB image cleaning used by lstchain. See
ImageCleaner.__call__()