You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently if any fluxes in the HARPS data are reported as negative, we set the ivars to zero.. but this has the effect of leaving no data in the deep cores of super strong lines, which makes the template go to continuum in the middle of the line (bc regularization). We should change this to preserve a little information in the line cores. This is relevant especially for doing science with the stellar template!
The text was updated successfully, but these errors were encountered:
Thanks, this is useful info! Currently I take every pixel that has unnormalized flux count < 1 and set it to 1, along with setting the inverse variance on that point to zero so that it's essentially masked out:
I also mask out pixels on either side of the "bad" one, although that may not be the correct thing to do if it's read noise causing the negative fluxes. In the cases I've seen it seems more like the background sky subtraction (which is done in the HARPS pipeline spectral extraction) is overly aggressive.
I do this setting to 1 step because transforming the flux to log space won't work otherwise - so as you say we don't have any issues with unphysical negative fluxes in the template, but the problem is sort of transferred to come earlier in the process when logging the data!
Currently if any fluxes in the HARPS data are reported as negative, we set the ivars to zero.. but this has the effect of leaving no data in the deep cores of super strong lines, which makes the template go to continuum in the middle of the line (bc regularization). We should change this to preserve a little information in the line cores. This is relevant especially for doing science with the stellar template!
The text was updated successfully, but these errors were encountered: