nectarchain.data.container.flatfield_container.FlatFieldContainer#

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

Bases: NectarCAMContainer

Container that holds flat field coefficients and other useful information

Fields:

run_number (np.uint16): Number of the run npixels (np.uint16): Number of pixels pixels_id (np.ndarray): Array of pixel’s ID ucts_timestamp (np.ndarray) : Array of time stamps of each event (UTC) event_type (np.ndarray): Array of trigger event types (should be all flat field events) event_id (np.ndarray): Array of the IDs of each event amp_int_per_pix_per_event (np.ndarray): Array of integrated amplitude of each pulse t_peak_per_pix_per_event (np.ndarray): Array of samples containing the pulse maximum FF_coef (np.ndarray): Array of flat field coefficients bad_pixels (List): List of pixel identified as outliers

Attributes:
run_numberField(default=None, type=uint16)

run number associated to the waveforms

npixelsField(default=None, type=uint16)

number of effective pixels

pixels_idField(default=None, dtype=uint16, ndim=1, type=ndarray)

pixel ids

ucts_timestampField(default=None, dtype=uint64, ndim=1, type=ndarray)

events ucts timestamp

event_typeField(default=None, dtype=uint8, ndim=1, type=ndarray)

trigger event type

event_idField(default=None, dtype=uint32, ndim=1, type=ndarray)

event ids

amp_int_per_pix_per_eventField(default=None, dtype=float32, ndim=3, type=ndarray)

amplitude integrated over the window width, per pixel per event

FF_coefField(default=None, dtype=float32, ndim=3, type=ndarray)

the flat field coefficients, per event

bad_pixelsField(default=None, dtype=uint16, ndim=1, type=ndarray)

pixels considered as bad in at least one gain channels

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

run_number

npixels

pixels_id

ucts_timestamp

event_type

event_id

amp_int_per_pix_per_event

FF_coef

bad_pixels

meta

prefix

default_prefix

fields