Source code for jwst.combine_1d.combine_1d_step

#! /usr/bin/env python

from .. import datamodels
from ..stpipe import Step
from . import combine1d


__all__ = ["Combine1dStep"]


[docs]class Combine1dStep(Step): """ Combine1dStep: Combine 1-D spectra """ spec = """ exptime_key = string(default="exposure_time") # use for weight """
[docs] def process(self, input_file): with datamodels.open(input_file) as input_model: result = combine1d.combine_1d_spectra(input_model, self.exptime_key) return result