PixelStatisticsCalculatorTool#
- class ctapipe.tools.calculate_pixel_stats.PixelStatisticsCalculatorTool(**kwargs: Any)[source]#
 Bases:
ToolPerform statistics calculation for pixel-wise image data
Attributes Summary
List of allowed tel_ids, others will be ignored.
Column name of the pixel-wise image data to calculate statistics
Output filename
Methods Summary
Attributes Documentation
- aliases: StrDict = {('i', 'input_url'): 'TableLoader.input_url', ('o', 'output_path'): 'PixelStatisticsCalculatorTool.output_path'}#
 
- allowed_tels#
 List of allowed tel_ids, others will be ignored. If None, all telescopes in the input stream will be included.
- classes: ClassesType = [<class 'ctapipe.io.tableloader.TableLoader'>, <class 'ctapipe.monitoring.calculator.PixelStatisticsCalculator'>]#
 
- description: str | Unicode[str, str | bytes] = 'Perform statistics calculation for pixel-wise image data'#
 
- examples: str | Unicode[str, str | bytes] = '\n To calculate statistics of pixel-wise image data files:\n\n > ctapipe-calculate-pixel-statistics --TableLoader.input_url input.dl1.h5 --output_path /path/monitoring.h5 --overwrite\n\n '#
 
- flags: StrDict = {'append': ({'HDF5Merger': {'append': True}}, 'Append to existing files'), 'overwrite': ({'HDF5Merger': {'overwrite': True}}, 'Overwrite existing files')}#
 
- input_column_name#
 Column name of the pixel-wise image data to calculate statistics
- output_path#
 Output filename
Methods Documentation
- setup()[source]#
 Set up the tool.
This method runs after the configuration and command line options have been parsed.
Here the tool should construct all
Components, open files, etc.
- start()[source]#
 Main function of the tool.
This is automatically called after
initializewhenrunis called.