ScienceProduct#

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

Bases: GenericProduct, EnergyChannelsMixin, FitsHeaderMixin

Generic science data product class composed of control and data.

Attributes Summary

fits_daily_file

parent

raw

Methods Summary

from_levelb(levelb, *[, parent])

Converts level binary science packets to a L1 product.

split_to_files()

Splits the entire data into data products separated be the unique request ID.

Attributes Documentation

fits_daily_file#
parent#
raw#

Methods Documentation

classmethod from_levelb(levelb, *, parent='')[source]#

Converts level binary science packets to a L1 product.

Parameters:
  • levelb (stixcore.products.levelb.binary.LevelB) – The binary level product.

  • parent (str, optional) – The parent data file name the binary packed comes from, by default ‘’

  • NIX00405_offset (int, optional) – [description], by default 0

Returns:

tuple (packets, idb_versions, control) – the converted packets all used IDB versions and time periods initialized control table

split_to_files()[source]#

Splits the entire data into data products separated be the unique request ID.

Yields:

ScienceProduct – the next ScienceProduct defined by the unique request ID