-
Notifications
You must be signed in to change notification settings - Fork 272
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
PSF model #2643
Conversation
Quick question: are these models applicable for both gamma-ray and optical PSF? If not, maybe call it OpticalPSFModel to be more clear where it should be used. |
I think this is purely optical, not IRF. Also, I think the appropriate place would be in |
The model accounts for coma abbarations and the default parameters i have would be for photons in the optical range. With different parameters this should work with gamma photons, but i am not sure. I could call the ComeModel OpticalComaModel and keep the parent class as is. Then later models specifically for gamma photons can be added. |
Makes sense. I will move it to optics. |
Side note: we should check with what is used in SimPipe's instrument model, to ensure what is output here is compatible with what the simulations expect. |
I don't think there is a model like this in SimPipe, but @orelgueta or @GernotMaier can confirm. Rather coma is naturally resulting from the definition of the mirror facets. |
The Edit: to be more clear, I would expect something like this to work: psf : Optional[PSFModel] = subarray.tel[tel_id].optics.psf
if psf:
plot_psf(psf) # some general function that plots any PSFModel |
if it is okay then i will open an issue for this |
Here it is: #2647 |
@maxnoe , continuing the discussion started in #2689 : The parametrization in polar coordinates works well under assumption that the radial and polar components are independent, i.e. |
When evaluating at 0,0 I got a warning:
otherwise looks good |
This comment has been minimized.
This comment has been minimized.
The math does not render properly: https://ctapipe--2643.org.readthedocs.build/en/2643/api/ctapipe.instrument.ComaPSFModel.html#ctapipe.instrument.ComaPSFModel |
This comment has been minimized.
This comment has been minimized.
this is fixed now. The only thing, is that there's an autosummary for the attributes, so the documentation for them is basically repeated twice. Also, the init docstring is ignored. Any suggestion on what to do with this? Shall I remove the Attributes summary from the class-level docstring and add there what's in the init's one? |
This comment has been minimized.
This comment has been minimized.
Yes, documentation should be in the class docstring, not |
This comment has been minimized.
This comment has been minimized.
@kosack can you please take a look? I shouldn't participate in the review any further as I've contributed to the code. |
This comment has been minimized.
This comment has been minimized.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mexanick Could you please fix the sonarqube complaints:
Analysis Details0 IssuesCoverage and DuplicationsProject ID: cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs |
I am adding PSF models to ctapipe.image.psf_model. I made a parent class called PSFModel and a PSF model based on pure coma abberation called ComaModel.
This will be used in the pointing calculation using star tracking and PSF fitting using stars.