run_pipeline¶
- msaexp.pipeline_extended.run_pipeline(file, slit_index=0, all_slits=True, write_output=True, set_log=True, skip_existing_log=False, undo_flat=True, preprocess_kwargs={}, ranges={'CLEAR_PRISM': [0.5, 5.6], 'F070LP_G140H': [0.6, 3.3], 'F070LP_G140M': [0.6, 3.3], 'F100LP_G140H': [0.9, 3.3], 'F100LP_G140M': [0.9, 3.3], 'F170LP_G235H': [1.5, 5.3], 'F170LP_G235M': [1.5, 5.3], 'F290LP_G395H': [2.6, 5.6], 'F290LP_G395M': [2.6, 5.6]}, make_trace_figures=False, run_pathloss=True, run_barshadow=True, mask_zeroth_kwargs={}, **kwargs)[source]¶
Pipeline for extending reference files
- Parameters
- filestr
Exposure (rate.fits) filename
- slit_indexint
Index of a single slit to extract
- all_slitsbool
Extract all slits of the final
jwst.datamodles.MultiSlitmodel- write_outputbool
Write output extracted
jwst.datamodels.SlitModelobjects to separate files- set_logbool
Set log file based on the input
file- skip_existing_logbool
Skip subsequent processing if the log file from
set_logis found in the working directory.- undo_flatbool
Main switch for using dummy monochromatic flat reference files. This needs to be True for the extracted spectra to not be masked with NaN beyond where the current reference files are defined
- preprocess_kwargsdict
Keyword arguments for
msaexp.pipeline.exposure_detector_effectspreprocessing. Skip ifNone- rangesdict
Full extended wavelength ranges by FILTER / GRATING
- make_trace_figuresbool
Make some diagnostic figures
- run_pathlossbool
Run PathLoss step for MSA exposures
- run_barshadowbool
Run BarShadow step for MSA exposures
- Returns
- resultNone,
jwst.datamodels.MultiSlitModel None if an existing log was found, otherwise the final calibrated product. Also returns
Noneifjwst.assign_wcs.AssignWcsStepraises aNoDataOnDetectorErrorexception.
- resultNone,