Closed gully closed 3 years ago
Ok, I made a smoothed version of the beta value to use as the estimator for beta:
A point about uncertainty. The median residual around this beta trend is 0.5%
. In some places near the water bands, the residuals are much larger, maybe 30% or greater, so essentially unconstrained. I included the standard deviation of the residuals of the 25 twilight flats as the "uncertainty" around the estimator, so if you want to inspect the uncertainty you may examine the third column of the csv file HPF_sci_to_sky_ratio_beta.csv
. In practice there is additional systematic bias in the bias-variance tradeoff for the GP estimator I used.
A while back @avanderburg and I discussed how to refine the HPF sky subtraction. We discussed some PCA-related ideas among other approaches. @grzeimann recommended that we simply use the twilight flats to estimate the wavelength dependence of the target-to-sky fiber throughput. Here is a pull request to implement the latter approach, as described in the in-progress paper text:
(below reposted and abridged from a Slack conversation)
The format of this Pull Request will be to upload a wavelength dependent template---packaged within muler source code---that serves as a lookup table to scale the sky spectrum. The adopted approach should work whether you install the code via
pip
or the developer version.