-
Notifications
You must be signed in to change notification settings - Fork 19
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
Earth occultation in the image deconvolution (ScAtt binning) #182
Conversation
…nate conversion matrix.
Hi @hirokiyoneda. Thanks for working on this. I'm OK with all the changes you listed, but I'm on the fence about adding the Earth occultation code itself. For this workaround, specific to DC2, we don't need to change the code at all, just change the detector response file. Since this new code is not meant to be definitive, and the same can be achieved with a simpler solution --that doesn't involve people getting a new release-- I thought it was cleaner to leave the code as is and save us from more code that needs to be tested and maintained. What do you think? |
That's a good point. I wanted to merge it into the development branch because:
But I agree that it is cleaner to keep it as it is. One concern is that I made minor changes following the earth occultation function. Actually, my current other works depend on them. I am happy if I can merge them into the develop branch. Should I do PR including these minor changes but without the earth occultation functions? Is it a good way to remove the commit regarding with the earth occultation, probably using |
Depending on your situation, you can use either You can create a branch called |
Thanks a lot. I am closing this PR. I have made a draft PR by removing unrelated changes as #184. |
I added a functionality to consider the earth occultation in the coordinate conversion matrix.
The earth occultation can be included in the analysis of the image deconvolution with the scatt binning + local coordinate.
I want to emphasize that it is limited to the case that the satellite always points to the zenith. So, it is valid for the DC2 but not for general situations.
Also, I changed the codes additionally as follows. All of them are minor changes.
mininum_flux
in deconvolution_algorithm_base in order not to make pixels with minus flux. The default value is 0.I compared the reconstructed spectrum of 3-month Crab data with/without considering the earth occultation effect.
The reconstructed flux becomes more consistent with the injected model, especially in the higher energy band where gamma rays can pass through the bottom BGO shield more easily. For example, the difference changes from -26% to 0.3% at the highest energy band.