nectarchain.data.container.pedestal_container.NectarCAMPedestalContainer#

class NectarCAMPedestalContainer(prefix=None, **fields)[source]#

Bases: NectarCAMContainer

A 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 pedestal_charge_mean_hg (np.ndarray): An array of high gain mean pedestal charges. pedestal_charge_mean_lg (np.ndarray): An array of low gain mean pedestal charges. pedestal_charge_std_hg (np.ndarray): An array of standard deviations of high gain pedestal charges. pedestal_charge_std_lg (np.ndarray): An array of standard deviations of low gain pedestal charges.

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

pedestal_charge_mean_hgField(default=None, dtype=float64, ndim=1, type=ndarray)

high gain mean pedestal charges

pedestal_charge_mean_lgField(default=None, dtype=float64, ndim=1, type=ndarray)

low gain mean pedestal charges

pedestal_charge_std_hgField(default=None, dtype=float64, ndim=1, type=ndarray)

high gain pedestal charges standard deviations

pedestal_charge_std_lgField(default=None, dtype=float64, ndim=1, type=ndarray)

low gain pedestal charges 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_dict

Convert the Container into a dictionary

from_hdf5

Reads a container from an HDF5 file.

items

Generator over (key, value) pairs for the items

keys

Get the keys of the container

reset

Reset all values back to their default values

update

update more than one parameter at once (e.g. update(x=3,y=4) or update(**dict_of_values)).

validate

Check that all fields in the Container have the expected characteristics (as defined by the Field metadata).

values

Get the keys of the container

Attributes

nsamples

nevents

pixels_id

ucts_timestamp_min

ucts_timestamp_max

pedestal_mean_hg

pedestal_mean_lg

pedestal_std_hg

pedestal_std_lg

pedestal_charge_mean_hg

pedestal_charge_mean_lg

pedestal_charge_std_hg

pedestal_charge_std_lg

pixel_mask

meta

prefix

default_prefix

fields