Skip to content

Commit

Permalink
Merge pull request #10 from labsaha/master
Browse files Browse the repository at this point in the history
Adding LSTDriveContainer
  • Loading branch information
FrancaCassol authored Aug 2, 2019
2 parents 4f2cb58 + befaa00 commit eb6e720
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions ctapipe_io_lst/containers.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@
Container structures for data that should be read or written to disk
"""
from astropy import units as u

from numpy import nan
from ctapipe.core import Container, Field, Map
from ctapipe.io.containers import DataContainer, MonitoringContainer


__all__ = [
'LSTDriveContainer',
'LSTEventContainer',
'LSTMonitoringContainer',
'LSTServiceContainer',
Expand All @@ -18,6 +19,24 @@
]


class LSTDriveContainer(Container):
"""
Drive report container
"""
date = Field(" ", "observation date")
time_stamp = Field(-1, "timestamp")
epoch = Field(-1, "Epoch")
time = Field(-1, "time",)
Az_avg = Field(nan*u.rad, "Azimuth", unit=u.rad)
Az_min = Field(nan*u.rad, "Azimuth min", unit=u.rad)
Az_max = Field(nan*u.rad, "Azimuth max", unit=u.rad)
Az_rms = Field(nan*u.rad, "Azimuth RMS", unit=u.rad)
El_avg = Field(nan*u.rad, "Elevation", unit=u.rad)
El_min = Field(nan*u.rad, "Elevation min", unit=u.rad)
El_max = Field(nan*u.rad, "Elevation max", unit=u.rad)
El_rms = Field(nan*u.rad, "Elevation RMS", unit=u.rad)


class LSTServiceContainer(Container):
"""
Container for Fields that are specific to each LST camera configuration
Expand Down Expand Up @@ -89,7 +108,8 @@ class LSTMonitoringContainer(Container):
Container for Fields/containers that are specific for the LST monitoring
e.g. the pointing data
"""

drive = Field(LSTDriveContainer(), "container for LST drive reports")


class LSTCameraContainer(Container):
"""
Expand Down Expand Up @@ -118,5 +138,3 @@ class LSTDataContainer(DataContainer):
"""
lst = Field(LSTContainer(), "LST specific Information")
mon = Field(MonitoringContainer(), "container for LST monitoring data (MON)")


0 comments on commit eb6e720

Please sign in to comment.