FitsLBProcessor#

class stixcore.io.product_processors.fits.processors.FitsLBProcessor(archive_path)[source]#

Bases: FitsProcessor

Class representing a FITS processor for LevelB products.

Methods Summary

generate_filename(product, *, version[, status])

Generate fits file name with SOLO conventions.

generate_primary_header(filename, product, *)

Generate primary header cards.

write_fits(product, *[, version])

Write or merge the product data into a FITS file.

Methods Documentation

classmethod generate_filename(product, *, version, status='')[source]#

Generate fits file name with SOLO conventions.

Parameters:
  • product (BaseProduct) – QLProduct

  • version (int) – the version modifier for the filename default 0 = detect from codebase.

  • status (str) – Status of the packets

Returns:

str – The filename

classmethod generate_primary_header(filename, product, *, version=0)[source]#

Generate primary header cards.

Parameters:
  • filename (str) – the filename of the FITS file.

  • product (BaseProduct) – the product the FITS will contain.

Returns:

tuple – List of header cards as tuples (name, value, comment)

write_fits(product, *, version=0)[source]#

Write or merge the product data into a FITS file.

Parameters:
  • product (LevelB) – The data product to write.

  • version (int) – the version modifier for the filename default 0 = detect from codebase.

Raises:

ValueError – If the data length in the header and actual data length differ