exp_to_source

jwst.exp_to_source.exp_to_source(inputs)[source]

Reformat exposure-based MSA data to source-based.

Parameters:

inputs ([MultiSlitModel, ...]) – List of MultiSlitModel instances to reformat.

Returns:

multiexposures – Returns a dict of MultiExposureModel instances wherein each instance contains slits belonging to the same source. The key is the ID of each source, i.e. source_id.

Return type:

dict