nectarchain.data.container.gain_container.PhotostatContainer#
- class PhotostatContainer(prefix=None, **fields)[source]#
Bases:
GainContainerClass representing a PhotoStatistic container.
This class inherits from the GainContainer class, providing additional fields needed for Flat Field calibration.
- Attributes:
charge_hg (np.ndarray): Array of high-gain charges values. charge_hg_std (np.ndarray): Array of standard deviations of high-gain charges.
- Attributes:
- is_validField(default=None, dtype=bool, ndim=1, type=ndarray)
is_valid
- high_gainField(default=None, dtype=float64, ndim=2, type=ndarray)
high gain
- low_gainField(default=None, dtype=float64, ndim=2, type=ndarray)
low gain
- pixels_idField(default=None, dtype=uint16, ndim=1, type=ndarray)
pixel ids
- charge_hgField(default=None, dtype=float64, ndim=1, type=ndarray)
high-gain charge
- charge_hg_stdField(default=None, dtype=float64, ndim=1, type=ndarray)
standard deviation of high-gain charge
- metadict
dict of attached metadata
- prefixstr
Prefix attached to column names when saved to a table or file
Methods
as_dictConvert the
Containerinto a dictionaryClass method to read a GainContainer 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
charge_hgcharge_hg_stdmetaprefixdefault_prefixfieldshigh_gainis_validlow_gainpixels_id