API

Public Datamodels API

jwst.datamodels.container Module

Classes

ModelContainer([init, asn_exptypes, ...])

A list-like container for holding JwstDataModel.

jwst.datamodels.library Module

Classes

ModelLibrary(init[, asn_exptypes, ...])

JWST implementation of the ModelLibrary.

jwst.datamodels.source_container Module

Classes

SourceModelContainer([init])

A container to make MultiExposureModel look like ModelContainer.

Complete Developer API

jwst.datamodels.container.RECOGNIZED_MEMBER_FIELDS = ['tweakreg_catalog', 'group_id']

Special metadata handling by ModelContainer.

jwst.datamodels.utils.flat_multispec Module

Utilities for re-organizing spectral products into a flat structure.

Functions

determine_vector_and_meta_columns(...)

Figure out which columns are vector-like and which are metadata.

make_empty_recarray(n_rows, n_spec, columns, ...)

Create an empty output table with the specified number of rows.

populate_recarray(output_table, input_spec, ...)

Populate the output table in-place with data from the input spectrum.

set_schema_units(model)

Give all columns in the model the units defined in the model schema.

copy_column_units(input_model, output_model)

Copy units from input columns to output columns.

copy_spec_metadata(input_model, output_model)

Copy spectral metadata from the input to the output spectrum.

expand_table(spec)

Expand a table of spectra into a list of SpecModel objects.

expand_flat_spec(input_model)

Create simple spectra from a flat spectral table.

jwst.datamodels.utils.group_id Module

Functions

attrs_to_group_id(obs_meta)

Combine a number of file metadata values into a group_id string.

jwst.datamodels.utils.tso_multispec Module

Functions

make_tso_specmodel(spec_list[, segment])

Make a TSOSpecModel from a list of SpecModel.

jwst.datamodels.utils.wfss_multispec Module

Utilities for manipulating WFSS multi-spectral data.

Functions

make_wfss_multiexposure(input_list)

Compile a list of extracted sources into a single binary table.

wfss_multiexposure_to_multispec(input_model)

Transform a WFSSMultiSpecModel into a list of MultiSpecModel objects.

make_wfss_multicombined(results_list)

Compile a list of exposure-averaged extracted sources into a single binary table.