get_blended_metadata

jwst.model_blender.blendmeta.get_blended_metadata(input_models, verbose=False)[source]

Return a blended metadata instance and table based on the input datamodels. This will serve as the primary interface for blending datamodels.

Parameters:

input_models (list) – Either a single list of filenames from which to extract the metadata to be blended, or a list of datamodels.JwstDataModel objects to be blended. The input models are assumed to have the blending rules defined as an integral part of the schema definition for the model.

Returns:

  • metadata (list) – A list of blended metadata instances, one for each i

  • new_table (object) – Single fits.TableHDU object that contains the combined results from all input headers(extension). Each row will correspond to an image, and each column corresponds to a single keyword listed in the rules.