wrap_fit_ramps¶
- sofia_redux.instruments.fifi_ls.fit_ramps.wrap_fit_ramps(files, s2n=30, threshold=5, badpix_file=None, outdir=None, remove_first=True, subtract_bias=True, indpos_sigma=3.0, allow_errors=False, write=False, jobs=None, rmplngth=2, pointing_discard=False, pointing_directory=None, pointing_threshold_psf_frac=0.1)[source]¶
Wrapper for fit_ramps over multiple files.
See
fit_rampsfor full description of reduction on a single file.- Parameters:
- filesarray_like of str
- s2nfloat, optional
- thresholdfloat, optional
- badpix_filestr, optional
- outdirstr, optional
- remove_firstbool, optional
- subtract_biasbool, optional
- indpos_sigmafloat, optional
- 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 + jobssuch that -1 would use all cpus, and -2 would use all but one cpu.- rmplngthint, optional
Minimum ramp length
- pointing_discardbool, optional
If true, discard ramps with bad pointing.
- pointing_directorystr, optional
Path to the directory containing the pointing error files used if pointing discard is set to true.
- pointing_threshold_psf_fracfloat, optional
The relative pointing threshold is specified as a fraction of the FWHM of the mean PSF within the respective nod phase. The slopes of ramps with a pointing error greater than the defined threshold are set to NaN.
- Returns:
- tuple of str
output filenames written to disk