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.

CameraReadout#

class ctapipe.instrument.CameraReadout(name, sampling_rate, reference_pulse_shape, reference_pulse_sample_width, n_channels, n_pixels, n_samples, n_samples_long=None)[source]#

Bases: object

Stores properties related to the readout of a Cherenkov Camera.

Attributes Summary

CURRENT_TAB_VERSION

SUPPORTED_TAB_VERSIONS

n_channels

n_pixels

n_samples

n_samples_long

name

reference_pulse_sample_time

Time axis for the reference pulse

reference_pulse_sample_width

reference_pulse_shape

sampling_rate

Methods Summary

from_name([name, version])

Construct a CameraReadout using the name of the camera and array.

from_table(url_or_table, **kwargs)

Load a CameraReadout from an astropy.table.Table instance or a file that is readable by astropy.table.Table.read.

to_table()

Convert this to an astropy.table.Table.

Attributes Documentation

CURRENT_TAB_VERSION = '3.0'#
SUPPORTED_TAB_VERSIONS = {'3.0'}#
n_channels#
n_pixels#
n_samples#
n_samples_long#
name#
reference_pulse_sample_time#

Time axis for the reference pulse

reference_pulse_sample_width#
reference_pulse_shape#
sampling_rate#

Methods Documentation

classmethod from_name(name='NectarCam', version=None)[source]#

Construct a CameraReadout using the name of the camera and array.

This expects that there is a resource accessible ctapipe_resources via get_table_dataset called "[array]-[camera].camreadout.fits.gz" or "[array]-[camera]-[version].camgeom.fits.gz".

Parameters:
name: str

Camera name (e.g. NectarCam, LSTCam, …)

version:

camera version id (currently unused)

Returns:
new CameraReadout
classmethod from_table(url_or_table, **kwargs)[source]#

Load a CameraReadout from an astropy.table.Table instance or a file that is readable by astropy.table.Table.read.

Parameters:
url_or_table: string or astropy.table.Table

either input filename/url or a Table instance

kwargs: extra keyword arguments

extra arguments passed to astropy.table.Table.read, depending on file type (e.g. format, hdu, path)

to_table()[source]#

Convert this to an astropy.table.Table.