Missing CameraReadout in CameraDescription
In the passage to ctapipe v0.12 (see #13), CameraDescription has an attribute which is a CameraReadout object. This class is filled from a file fits.gz, which is read whenever the CameraDescription is created with the method from_name (e.g. CameraDescription.from_name("MAGICCam") gives the MAGIC camera description). This file is not produced for MAGIC (the CameraReadout is a new class), so we should produce it and upload it to the CTA server where all this kind of data is stored.
An example for such fits.gz file is the one for LSTCam.
See also https://github.com/cta-observatory/ctapipe/blob/v0.12.0/ctapipe/instrument/camera/readout.py.
To create the needed file, in principle one could do also:
from ctapipe.instrument import CameraReadout
import numpy as np
from astropy.table import Table
pulse_shape_lo_gain = np.array([...]) #fill with some pulse shape
pulse_shape_hi_gain = np.array([...]) #fill with some pulse shape
pulse_shape = np.vstack((pulse_shape_lo_gain, pulse_shape_lo_gain))
camera_readout = CameraReadout(
camera_name='MAGICCam',
sampling_rate=u.Quantity(1.64, u.GHz),
reference_pulse_shape=pulse_shape,
reference_pulse_sample_width=u.Quantity(0.5, u.ns)
)
camera_readout_table = camera_readout.to_table()
camera_readout_table.write("MAGICCam.camreadout.fits.gz")