run_stage1
- breads.jwst_tools.run_stage1(uncal_files, output_dir, overwrite=False, maximum_cores='all', save_plots=True)[source]
Run pipeline stage 1, with some customizations for reductions intended to be used with breads for IFU high contrast
Currently only tested on NIRSpec IFU data
For each input file, before doing any reduction, the expected output filename is inferred, and it checks whether that output file already exists. If so, then it is NOT reduced again by default. Set the overwrite flag to True to re-reduce files
- Parameters:
- uncal_fileslist of strings
Filenames of uncal files to reduce
- output_dirstring
Directory path for where to put the output files
- overwritebool
Re-reduce and overwrite outputs, if these data were already reduced before? Default is to SKIP re-reducing anything already reduced.
- maximum_coresstring
Passed to JWST pipeline functions that use multiprocessing, such as ramp fit