Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Efficiency of the Spectrograph #23

Open
maddalenabugatti opened this issue Mar 15, 2024 · 2 comments
Open

Efficiency of the Spectrograph #23

maddalenabugatti opened this issue Mar 15, 2024 · 2 comments

Comments

@maddalenabugatti
Copy link

Hello Julien,
I have a little doubt about the efficiency that Pyechelle automatically applies on the spectrum.
In my simulations, I did not set any specific efficiency while running the simulator and I use an input source in photon/s (CSV file). I thought that the efficiency was then automatically set to 1.
However, once I extract the 1D spectrum I do not obtain something of the same order of magnitude as my input: let's say my input spectrum has an average of about 1000 photons/s, I would expect about the same average in the extracted 1D spectrum. But unfortunately I get systematically an average 40-50 times smaller than the input.
I was wondering if an efficiency is automatically computed using the affine matrices, or using the model of the CCD.
I tried the command 'sim.set_no_efficiency()' to avoid any extra efficiency, but it gives error (maybe I am calling it in a wrong way) .
Thank you very much in advance,
Cordially,
Maddalena

@Stuermer
Copy link
Owner

Hi Maddalena,
thanks for your report (next time though, please do it on PyEchelle repo :-) ).
Can you send me your CSV file ? I'm almost done rewriting the whole python module that deals with input spectra - my guess is that your issue has to do with the fact that you specify ph/s, while PyEchelle normally expects ph/s/nm (a spectral flux). I can try my new code and see how it deals with ph/s.
Best,
Julian

@maddalenabugatti
Copy link
Author

maddalenabugatti commented Mar 15, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants