wrap_subtract_chops

sofia_redux.instruments.fifi_ls.subtract_chops.wrap_subtract_chops(files, outdir=None, add_only=False, write=False, allow_errors=False, jobs=None)[source]

Wrapper for subtract_chops over multiple files.

See subtract_chops for full description of reduction on a single file.

Parameters:
filesarray_like of str

paths to chop 0 RP0 files

outdirstr, optional

Directory path to write output. If None, output files will be written to the same directory as the input files.

add_onlybool, optional

If True, chop files will be added rather than subtracted. This is intended to be used for flat files only.

writebool, optional

If True, write the output to disk and return the filename instead of the HDU.

allow_errorsbool, optional

If True, return all created files on error. Otherwise, return None jobs : int, 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.

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