CroatianMeteorNetwork / RMS

RPi Meteor Station
https://globalmeteornetwork.org/
GNU General Public License v3.0
176 stars 49 forks source link

Improve logging during post-capture recalibration and processing #144

Closed markmac99 closed 1 year ago

markmac99 commented 1 year ago

After the capture run completes, RMS runs a platepar recalibration and check on meteor detections. Currently the output of this is lost as it is only printed to screen and so when the Pi is rebooted or RMS restarts, the log is lost. This can make it difficult to trace any issues with calibration or reprocessing.

This pull request adds logging support in ApplyRecalibrate, CheckFit, FFTalign, DetectStarsAndMeteors and Reprocess,

Its been tested on UK0006 for a week without issues. The log files are larger though the amount depends on the number of detections to be recalibrated. It probably adds 1MB per log.

The change has also been tested in 'standalone' mode by invoking each module directly from the commandline eg python -m RMS.Astrometry.FFTalign dir_path, again without issues.