cta-observatory / ctapipe

Low-level data processing pipeline software for CTAO or similar arrays of Imaging Atmospheric Cherenkov Telescopes
https://ctapipe.readthedocs.org
BSD 3-Clause "New" or "Revised" License
63 stars 267 forks source link

Interpolate pointing in TableLoader and HDF5EventSource #2409

Closed maxnoe closed 5 months ago

maxnoe commented 10 months ago

This adds the possibility to interpolate pointing information from a not yet used by ctapipe itself /dl0/monitoring/telescope/pointing/<tel_id> group.

This is critical for analysis of e.g. LST observations.

At the moment, I add this table to the DL1 files output by ctapipe-process with a custom script, but eventually we should also add APIs for the datawriter / ctapipe-process / event sources to read this from monitoring files and put it into the outputs.

kosack commented 10 months ago

Great! this can also be used eventually to fill in the event-wise monitoring info in the event loop as well not just in TableLoader.

And just to note, this eventually must also interpolate other mis-pointing parameters like camera-z-axis rotation and any other deformation that needs to be applied during the DL1 step. LST doesn't compute those yet I guess, but it's good not to forget they will be necessary eventually!

codecov[bot] commented 9 months ago

Codecov Report

Attention: Patch coverage is 98.00000% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 92.64%. Comparing base (f8d1049) to head (0d55e6e).

Files Patch % Lines
src/ctapipe/io/pointing.py 96.36% 2 Missing :warning:
src/ctapipe/reco/sklearn.py 60.00% 2 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #2409 +/- ## ========================================== + Coverage 92.59% 92.64% +0.04% ========================================== Files 232 234 +2 Lines 20034 20223 +189 ========================================== + Hits 18551 18736 +185 - Misses 1483 1487 +4 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.

ctao-dpps-sonarqube[bot] commented 5 months ago

Passed

Analysis Details

3 Issues

Coverage and Duplications

Project ID: cta-observatory_ctapipe_AY52EYhuvuGcMFidNyUs

View in SonarQube