SpotExtractorLED
- class ctapointing.imagesolver.SpotExtractorLED(**kwargs: Any)
Bases:
SpotExtractorSpotExtractor for the camera LEDs
Methods Summary
generate_led_mask(exposure, science_camera)Construct a mask that is suited for extracting the LED positions from an exposure image.
Methods Documentation
- generate_led_mask(exposure, science_camera, circle_radius=100)
Construct a mask that is suited for extracting the LED positions from an exposure image.
The algorithm calculates, based on the hardware position of the LEDs in the science camera, the expected position of the LED spots in the exposure (taking into account the pointing camera parameters from the exposure object). It then constructs a circular mask around the LED positions.
- Parameters:
exposure (ctapointing.exposure.Exposure) – exposure for which the mask shall be constructed
science_camera (ctapointing.camera.ScienceCamera) – science camera object, the LED positions of which are used to create the LED mask
circle_radius (int) – radius of circle around LED positions (pixels)
- __init__(config=None, parent=None, **kwargs)
- Parameters:
config (traitlets.loader.Config) – Configuration specified by config file or cmdline arguments. Used to set traitlet values.
parent (Tool or Component) – If a Component is created by another Component or Tool, you need to pass the creating Component as parent, e.g. parent=self. This makes sure the config is correctly handed down to the child components. Do not pass config in this case.
kwargs – Traitlets to be overridden. TraitError is raised if kwargs contains a key that does not correspond to a traitlet.
- generate_led_mask(exposure, science_camera, circle_radius=100)
Construct a mask that is suited for extracting the LED positions from an exposure image.
The algorithm calculates, based on the hardware position of the LEDs in the science camera, the expected position of the LED spots in the exposure (taking into account the pointing camera parameters from the exposure object). It then constructs a circular mask around the LED positions.
- Parameters:
exposure (ctapointing.exposure.Exposure) – exposure for which the mask shall be constructed
science_camera (ctapointing.camera.ScienceCamera) – science camera object, the LED positions of which are used to create the LED mask
circle_radius (int) – radius of circle around LED positions (pixels)