Closes #13.
Alessio Berti (02d6bca7) at 14 Dec 20:55
Use correct CameraFrame (needed to transform to TelescopeFrame for ...
Alessio Berti (61db1a37) at 06 Dec 08:29
Select subarray if allowed_tels is specified.
... and 1 more commit
Just one note: in the first implementation of CameraReadout, I put:
pulse_shape_lo_gain = np.array([])
pulse_shape_hi_gain = np.array([])
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)
)
This unfortunately is not good because when trying to merge the DL1 file with ctapipe-merge
, it says that the subarrays are different, even if I compare the subarray of one file with itself. So I will just put some dummy values for now, so that the comparison works.
Alessio Berti (adc66885) at 05 Dec 10:29
Update astropy requirement in setup.py.
Alessio Berti (11c3f625) at 04 Dec 12:04
Add magnetic field information.
Alessio Berti (a75e4d3c) at 03 Dec 17:37
Add dtype, needed for descriptive_statistics function in ctapipe.
Alessio Berti (2517d80f) at 03 Dec 15:34
Change tels_with_data from set to list.
Alessio Berti (949ab7d8) at 03 Dec 15:04
Convert lists to arrays.
Alessio Berti (b9772ef7) at 02 Dec 21:49
Add LICENSE.
Alessio Berti (0a33abdc) at 02 Dec 21:45
Fixes in setup.py.
Alessio Berti (c2e90c32) at 02 Dec 21:41
Update README with v0.3.0 description.
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")
Alessio Berti (d41f432d) at 02 Dec 17:45
Add CameraReadout with some default values.