filter_output¶
-
sedfitter.
filter_output
(input_fits=None, output_good='auto', output_bad='auto', chi=None, cpd=None)¶ Filter an output file into well and badly fit sources.
The sources in the output file are split into ones where the best fit is good, and those where the best fit is bad, where the distinction between good and bad is made based on the chi^2 value or the chi^2 value per datapoint of the best fit.
Parameters: - input_fits : str or
sedfitter.fit_info.FitInfo
or iterable This should be either a file containing the fit information, a
sedfitter.fit_info.FitInfo
instance, or an iterable containingsedfitter.fit_info.FitInfo
instances.- output_good : str, optional
The name of the file containing information about well-fit sources. If set to ‘auto’, then the output file will be set to the same as the input file but with a
_good
prefix.- output_bad : str, optional
The name of the file containing information about badly-fit sources. If set to ‘auto’, then the output file will be set to the same as the input file but with a
_bad
prefix.- chi : float, optional
If set, the separation between well and badly fit sources is done based on the total chi^2 of the best fit, using this value as a threshold.
- cpd : float, optional
If set, the separation between well and badly fit sources is done based on the chi^2 per datapoint of the best fit, using this value as a threshold.
- input_fits : str or