FitsL0Processor#

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

Bases: object

FITS level 0 processor

Methods Summary

add_optional_energy_table(product, hdul)

Generate and add an energy table extension if energy data is available.

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

Generate fits file name with SOLO conventions.

generate_primary_header(filename, product, *)

Generate primary header cards.

write_fits(product[, path, version])

Write level 0 products into fits files.

Methods Documentation

static add_optional_energy_table(product, hdul)[source]#

Generate and add an energy table extension if energy data is available.

Parameters:
  • product (stix_parser.product.BaseProduct) – the product

  • hdul (list) – list of all extensions the energy to add to

static generate_filename(product, *, version=None, status='', header=True)[source]#

Generate fits file name with SOLO conventions.

Parameters:
  • product (stix_parser.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.

filenamestr

Filename

productstixcore.product.quicklook.QLProduct

QLProduct

Returns:

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

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

Write level 0 products into fits files.

Parameters:
  • product (stixcore.product.level0)

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

Returns:

list – of created file as pathlib.Path