LevelB#

class stixcore.products.levelb.binary.LevelB(*, service_type, service_subtype, ssid, control, data, **kwargs)[source]#

Bases: BaseProduct

Class representing level binary data (TM products).

Attributes Summary

fits_daily_file

parent

List of all parent data files this data product is compiled from.

raw

List of all TM raw files this product is compiled from.

Methods Summary

extract_sequences()

Extract complete and incomplete packet sequences.

from_tm(tmfile)

Process the given SOC file and creates LevelB FITS files.

is_datasource_for(**kwargs)

to_files()

Split the data into a sequence of LevelB objects each containing 1 daysworth of observations for continuous data or by request id in case of BSD.

Attributes Documentation

fits_daily_file#
parent#

List of all parent data files this data product is compiled from.

For level binary this will be always the parent raw TM file.

Returns:

list[str] – the TM file that this data product contains.

raw#

List of all TM raw files this product is compiled from.

Returns:

list[str] – the TM file that this data product contains.

Methods Documentation

extract_sequences()[source]#

Extract complete and incomplete packet sequences. :returns: tuple – LevelB products for the complete and incomplete sequences

classmethod from_tm(tmfile)[source]#

Process the given SOC file and creates LevelB FITS files.

Parameters:

tmfile (SOCPacketFile) – The input data file.

classmethod is_datasource_for(**kwargs)[source]#
to_files()[source]#

Split the data into a sequence of LevelB objects each containing 1 daysworth of observations for continuous data or by request id in case of BSD.

Yields:

LevelB – the next LevelB objects for another day/request.