cylammarco / ASPIRED

Automated SpectroPhotometric Image REDuction (ASPIRED)
https://aspired.readthedocs.io/en/latest/
BSD 3-Clause "New" or "Revised" License
30 stars 4 forks source link

ap_trace fails to fit the profile of saturated traces #43

Closed cylammarco closed 3 years ago

cylammarco commented 3 years ago

ap_trace() can trace a saturated spectrum, however, the LSF is not usable.

cylammarco commented 3 years ago

Tracing is now working it seems, however, extraction is still a problem. Should employ a robust polynomial fit instead of using gaussian for optimal extraction in the case of Horne86 (and in general). Should consider using: https://www.statsmodels.org/dev/generated/statsmodels.nonparametric.smoothers_lowess.lowess.html

cylammarco commented 3 years ago

Saturated sources can be extracted to give finite values, we are masking the saturated pixels and weighting the extraction by the tails of the LSF only. This is different from attempting to reconstructing the LSF profile which may produce a more usable spectrum, that would be out of the scoop of this software at the moment.