wrap_split_grating_and_chop

sofia_redux.instruments.fifi_ls.split_grating_and_chop.wrap_split_grating_and_chop(files, outdir=None, allow_errors=False, write=False, jobs=None)[source]

Wrapper for split_grating_and_chop over multiple files.

Parameters:
filesarray_like of str

list of filepaths to FIFI-LS FITS files

outdirstr, optional

name of the output path. If None, will be saved to the same directory as the input file used to generate the split files.

allow_errorsbool, optional

If True, return all created files on error. Otherwise, return None

writebool, optional

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

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