Open g7gpr opened 4 months ago
Small change to logging
For 3600 second interval
024/02/18 02:48:28-INFO-ArchiveDetections-line:45 - max_time_between_fits is set to 3600 seconds
2024/02/18 02:48:28-INFO-ArchiveDetections-line:152 - Intervals before / after including extra files 3434 / 3434 seconds
2024/02/18 02:48:28-INFO-ArchiveDetections-line:153 - Original / added / final fits file count 7 / 0 / 7
For 1800 second interval
2024/02/18 02:52:54-INFO-ArchiveDetections-line:45 - max_time_between_fits is set to 1800 seconds
2024/02/18 02:52:54-INFO-ArchiveDetections-line:152 - Intervals before / after including extra files 3434 / 1793 seconds
2024/02/18 02:52:54-INFO-ArchiveDetections-line:153 - Original / added / final fits file count 7 / 5 / 12
This pull request is related to #270.
The purpose of this pull request is to make sure that a maximum interval between archived fits files is preserved, by including additional files if there gap between meteor detections is larger than the maximum interval. This may be helpful for looking for changes in the night sky.
At the end of processing, and just prior to generating the archive, the spacing between the fits files is analysed.
If the gap between any pair of fits files, or the start of capture and the first fits file, or the last fits file and the end of capture is greater than the max_time_between_fits setting given in the .config file
Then the gap is divided into the fewest possible evenly spaced intervals, and then fits files are brought in from night_captured_dir.
The default setting of 3600 seconds, 1 hour produces
Which in this case, did not require any files to be added.
If very low settings are given in the .config file, they are overridden by a hard coded minimum of 900 seconds, or 15 minutes.
for example in the .config file
produces the log output
A less extreme configuration of 1800 seconds, 30 minutes gives the following output