Replies: 3 comments
-
It is supposed to work with the wavelength and flux calibrated spectra only, in both 0.4 and 0.5 series. Because: without wavelength calibration, flux cannot be calibrated. Without flux calibration, it doesn't make sense to me to calibrate higher-order effects in flux. However, if you wish to force it to work with pre-flux calibrated spectra, you can set
However, if you apply flux application after that, they will overwrite the atmospheric extinction correction... |
Beta Was this translation helpful? Give feedback.
-
typo fixed in b95b2e1 (dev-0.5.X) |
Beta Was this translation helpful? Give feedback.
-
Airmiss issue transferred to #116 |
Beta Was this translation helpful? Give feedback.
-
The docs say current dev version of the atmospheric extinction correction only works when provided a science and a standard together. I looked through the code and I think the algorithm is currently moving the science target to the same airmass as the standard observation. That is as opposed to the alternative strategy of moving both to airmass=1 or 0 or any known value. The standard is not modified, only the target. Is that right?
I presume the idea is that atmospheric corrections are rather poorly defined at the best of times so you want to keep the correction applied as small as possible. I can see sense in that.
What I am getting at is that if I want to apply atmospheric correction on a single spectrum, is there an easy workaround. If I load the same spectrum twice, tell ASPIRED they are science+standard and then apply_atmospheric_extinction_correction(standard_airmass=1), will it run correctly? I then have the target corrected to airmass=1 and I simply ignore and discard the standard.
Obviously it is only a bit of a workaround, but the code looks like it ought to work. Or is that too daft? Maybe better to just do the airmass correction myself until the ASPIRED function is finished. The manual does say it is work in progress.
Second question. Is apply_atmospheric_extinction_correction() supposed to be able to work on ADU before applying a flux calib? So far I have not been able to get it to work. It seems to act sensibly if I call it after apply_flux_calibration() but not if I call it before. Is that expected or should I open a new Issue for it?
By the way, there is a spelling typo in apply_atmospheric_extinction_correction() that actually has no effect on anything numerical: interpoalted_ext instead of interpolated_ext. It is only a temporary variable and never propagates anywhere so the spelloing is largely irrelevent.
Beta Was this translation helpful? Give feedback.
All reactions