GenericProduct#

class stixcore.products.product.GenericProduct(*, service_type, service_subtype, ssid, control, data, idb_versions={}, **kwargs)[source]#

Bases: BaseProduct

Attributes Summary

Methods Summary

find_parent_files(root)

Convenient way to get access to the parent files.

find_parent_products(root)

Convenient way to get access to the parent products.

from_levelb(levelb, *[, parent])

getLeveL0Packets(levelb[, keep_parse_tree])

split_to_files()

Attributes Documentation

bunit#
dmax#
dmin#
exposure#
fits_daily_file#
max_exposure#
parent#
raw#
scet_timerange#

Methods Documentation

find_parent_files(root)[source]#

Convenient way to get access to the parent files.

Performs a (inefficient) file search in the given root dir for files with the parent name. Not recursive the only the direct parent is returned.

Parameters:

root (Path) – The fits root dir in which to find the parent file

Returns:

Path – A list of parent files paths (normally just one).

find_parent_products(root)[source]#

Convenient way to get access to the parent products.

Performs a (inefficient) file search in the given root dir for files with the parent name. Not recursive the only the direct parent is returned.

Parameters:

root (Path) – The fits root dir in which to find the parent file

Returns:

Product – A list of parent Producs (normally just one).

classmethod from_levelb(levelb, *, parent='')[source]#
classmethod getLeveL0Packets(levelb, keep_parse_tree=True)[source]#
split_to_files()[source]#