wrap_apply_static_flat¶
- sofia_redux.instruments.fifi_ls.apply_static_flat.wrap_apply_static_flat(files, outdir=None, allow_errors=False, write=False, skip_err=True, jobs=None)[source]¶
Wrapper for apply_static_flat over multiple files.
See
apply_static_flat
for full description of reduction on a single file.- Parameters:
- filesarray_like of str
paths to files to be flat corrected
- outdirstr, optional
Directory path to write output. If None, output files will be written to the same directory as the input files.
- allow_errorsbool, optional
If True, return all created files on error. Otherwise, return None
- writebool, optional
If True, output files will be written to disk.
- skip_errbool, optional
If True, flat errors will not be propagated to the flux errors.
- jobsint, optional
Specifies the maximum number of concurrently running jobs. Values of 0 or 1 will result in serial processing. A negative value sets jobs to
n_cpus + 1 + jobs
such that -1 would use all cpus, and -2 would use all but one cpu.
- Returns:
- tuple of str
output filenames written to disk