nectarchain.data.container.pedestal_container.NectarCAMPedestalContainer#
- class NectarCAMPedestalContainer(prefix=None, **fields)[source]#
Bases:
NectarCAMContainerA container that holds estimated pedestals.
- Fields:
nsamples (int): The number of samples in the waveforms. nevents (np.ndarray): The number of events used to estimate the pedestals for each pixel. pixels_id (np.ndarray): An array of pixel IDs. ucts_timestamp_min (int): The minimum of the input events UCTS timestamps. ucts_timestamp_max (int): The maximum of the input events UCTS timestamps. pedestal_mean_hg (np.ndarray): An array of high gain mean pedestals. pedestal_mean_lg (np.ndarray): An array of low gain mean pedestals. pedestal_std_hg (np.ndarray): An array of standard deviations of high gain pedestals. pedestal_std_lg (np.ndarray): An array of standard deviations of low gain pedestals.
- Attributes:
- nsamplesField(default=None, type=uint8)
number of samples in the waveforms
- neventsField(default=None, dtype=float64, ndim=1, type=ndarray)
number of events used to estimate the pedestals for each pixel
- pixels_idField(default=None, dtype=uint16, ndim=1, type=ndarray)
pixel ids
- ucts_timestamp_minField(default=None, type=uint64)
minimum of the input events UCTS timestamps
- ucts_timestamp_maxField(default=None, type=uint64)
maximum of the input events UCTS timestamps
- pedestal_mean_hgField(default=None, dtype=float64, ndim=2, type=ndarray)
high gain mean pedestals
- pedestal_mean_lgField(default=None, dtype=float64, ndim=2, type=ndarray)
low gain mean pedestals
- pedestal_std_hgField(default=None, dtype=float64, ndim=2, type=ndarray)
high gain pedestals standard deviations
- pedestal_std_lgField(default=None, dtype=float64, ndim=2, type=ndarray)
low gain pedestals standard deviations
- pixel_maskField(default=None, dtype=int8, ndim=2, type=ndarray)
Flag that identifies bad pixels. The flag is a binary mask. The meaning of the mask bits is defined in the class ~nectarchain.data.container.PedestalFlagBits
- metadict
dict of attached metadata
- prefixstr
Prefix attached to column names when saved to a table or file
Methods
as_dictConvert the
Containerinto a dictionaryfrom_hdf5Reads a container from an HDF5 file.
itemsGenerator over (key, value) pairs for the items
keysGet the keys of the container
resetReset all values back to their default values
updateupdate more than one parameter at once (e.g.
update(x=3,y=4)orupdate(**dict_of_values)).validateCheck that all fields in the Container have the expected characteristics (as defined by the Field metadata).
valuesGet the keys of the container
Attributes
nsamplesneventspixels_iducts_timestamp_minucts_timestamp_maxpedestal_mean_hgpedestal_mean_lgpedestal_std_hgpedestal_std_lgpixel_maskmetaprefixdefault_prefixfields