nectarchain.data.container.flatfield_container.FlatFieldContainer#
- class FlatFieldContainer(prefix=None, **fields)[source]#
Bases:
NectarCAMContainerContainer 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_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
run_numbernpixelspixels_iducts_timestampevent_typeevent_idamp_int_per_pix_per_eventFF_coefbad_pixelsmetaprefixdefault_prefixfields