desihub / specsim

Quick simulations of spectrograph response
2 stars 9 forks source link

quick.simulate flux conservation restored after previous commit: beca… #22

Closed julienguy closed 8 years ago

julienguy commented 8 years ago

Because resolution and transmission don't commute, we have to compute the effective transmission of the convolved flux to calculate the calibrated flux and inverse variance per camera. This fixes the flux conservation problem identified for lines in the previous commit. This flux conservation "bug" was actually quite dramatic for a continuous source flux in regions of sharp atmospheric absorption features. Ex: before flux-old after flux-new

also, for the single line at 5800A, the integrated flux is conserved at better than 1e-6.