Product (‘stixpy.product’)#
Overview#
One of core classes in stixpy is a Product. A stixpy Product object is a container for STIX data. In order to make it easy to work with STIX data in stixpy, the Product object provides a number of methods for commonly performed operations.
Products are subclasses of GenericProduct and these objects are
created using the Product factory Product.
Creating Product Objects#
stixpy Product objects are constructed using the special factory
class Product:
>>> x = stixpy.product.Product('file.fits')
The result of a call to Product will be either a GenericProduct object,
or a subclass of GenericProduct which either deals with a specific type of STIX data,
e.g. QLLightCurve or Spectrogram
(see Product Classes to see a list of all of them), or if no
product matches, GenericProduct.
- class stixpy.product.product_factory.ProductFactory(default_widget_type=None, additional_validation_functions=[], registry=None)[source]#
A factory for generating stix data products
- Parameters:
*inputs – Inputs to parse for map objects. See the examples section for a detailed list of accepted inputs.
- Returns:
stixpy.product.Product– If the input results in a singular product, then that is returned.listofProduct– If multiple inputs a list ofProductobjects will be returned.
Examples
stixpy.product Package#
All stixpy Products are derived from stixpy.product.GenericProduct, all the methods and attributes are documented in that class.
stixpy.product Package#
Variables#
A factory for generating stix data products |
Product Classes#
Defined in stixpy.product.sources are a set of GenericProduct subclasses
which convert the specific metadata and other differences in each data type a standard GenericProduct interface.
These subclasses also provide a method, which describes to the Product factory
which inputs match its product.
stixpy.product.sources Package#
Classes#
|
Compressed count data from selected pixels, detectors and energies. |
|
Detector Index Masks |
|
Energy Edges Mask |
|
HK “maxi” report with is reported in all modes of the Application SW. |
|
HK “mini” report only generated during the Start-up SW. |
|
Basic HouseKeeping |
|
Index mask class to store masked indices. |
Provides pretty printing for index masks. |
|
|
Pixel Index Masks |
Pixel plot mixin providing pixel plotting for pixel data. |
|
|
Quicklook Background nominal in 5 energy bins every 8s |
|
Quicklook Flare flag and location |
|
Quicklook Lightcurves nominal in 5 energy bins every 4s |
|
Quicklook variance nominally in 5 energy bins every 8s |
|
Basic science data class |
|
Uncompressed or raw count data from selected pixels, detectors and energies. |
|
Basic science data class |
|
Spectrogram from selected pixels, detectors and energies. |
Spectrogram plot mixin providing spectrogram plotting for pixel data. |
|
|
Compressed and Summed count data from selected pixels, detectors and energies. |
TimesSeries plot mixin providing timeseries plotting for pixel data. |
|
|
Compressed visibilities from selected pixels, detectors and energies. |