You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
When using the HillasIntersection algorithm, the direction reconstruction in the nominal frame can lead to reconstructed values of src_fov_lat with an absolute value greater than 90 degrees. This occurs when there are few telescope images (i.e. usually 2) in the reconstruction which have very close values of hillas_psi . The ellipses are then almost parallel and the major axes intersect at great distances from the camera center.
When this results in src_fov_lat with an absolute value greater than 90 degrees, SkyCoord here
throws a corresponding error. In ctapipe-process, the processing will be aborted.
Expected behavior
Since these events are so badly reconstructed that they will be thrown away for any analysis anyway, this case may as well result in an invalid reconstruction for the event. This would allow processing to continue. I'm open to better solutions, that just seems like the easiest.
Additional context
For the HillasReconstructor, this is only a problem if all reconstructed major axes are exactly aligned.
The text was updated successfully, but these errors were encountered:
, this case may as well result in an invalid reconstruction for the event.
Yes, that's the right thing to do. Check the value of src_fov_lat and if it is larger than 90 degrees return the invalid result container.
The actual threshold could probably be even lower than the threshold that triggers the error in astropy and fov_lon and fov_lat aren't really different in this regard.
Describe the bug
When using the
HillasIntersection
algorithm, the direction reconstruction in the nominal frame can lead to reconstructed values ofsrc_fov_lat
with an absolute value greater than 90 degrees. This occurs when there are few telescope images (i.e. usually 2) in the reconstruction which have very close values ofhillas_psi
. The ellipses are then almost parallel and the major axes intersect at great distances from the camera center.When this results in
src_fov_lat
with an absolute value greater than 90 degrees,SkyCoord
herectapipe/ctapipe/reco/hillas_intersection.py
Lines 228 to 230 in 6c4bd9c
throws a corresponding error. In
ctapipe-process
, the processing will be aborted.Expected behavior
Since these events are so badly reconstructed that they will be thrown away for any analysis anyway, this case may as well result in an invalid reconstruction for the event. This would allow processing to continue. I'm open to better solutions, that just seems like the easiest.
Additional context
For the
HillasReconstructor
, this is only a problem if all reconstructed major axes are exactly aligned.The text was updated successfully, but these errors were encountered: