SpectroItem#
- class osekit.core_api.spectro_item.SpectroItem(file: SpectroFile | None = None, begin: Timestamp | None = None, end: Timestamp | None = None)#
SpectroItemcorresponding to a portion of aSpectroFileobject.Initialize a
SpectroItemfrom aSpectroFileand timestamps.Parameters#
- file: osekit.data.spectro_file.SpectroFile
The
SpectroFilein which this Item belongs.- begin: pandas.Timestamp (optional)
The timestamp at which this item begins. It is defaulted to the
SpectroFilebegin.- end: pandas.Timestamp (optional)
The timestamp at which this item ends. It is defaulted to the
SpectroFileend.
- get_value(fft: ShortTimeFFT | None = None, sx_dtype: type[complex] = <class 'complex'>) np.ndarray#
Get the values from the File between the
beginandstoptimestamps.If the Item is empty, return a single
0..
- property time_resolution: Timedelta#
Time resolution of the associated
SpectroFile.