MeteorDemod icon indicating copy to clipboard operation
MeteorDemod copied to clipboard

Composite file selection use date / time in filename, not image age

Open KiwiInNZ opened this issue 3 years ago • 1 comments

In main.cpp, searchForImages, the code looks for which data sets to use for creating composite images based on the file creation date being within 6 hours (21,600 seconds) of the current time: if(entry.path().extension() == ".gcp" && fileCreatedSec < 21600) { //6h

This works well when images are created just after each pass has been created when the file creation time for the .gcp file is accurate. However when processing pass .wav files in a batch mode, i.e. some time after the passes, when several .gcp files will have been created in the last few minutes or so, this will inaccurately match file data sets to be included in the composite data selection.

What I'd suggest is to parse the filenames for the gcp files to get the age of the passes as this directly reflects the pass date time and not when the pass data was processed: 2022-12-1-18-27-38.gcp

KiwiInNZ avatar Dec 03 '22 21:12 KiwiInNZ

Source file for settings.ini and the .s and .tle files - https://kiwiweather.com/downloads/meteordemod.zip (339MB - let me know when you've downloaded this so I can remove it). I can supply the .wav files, but that is about twice as much space!

Commands used to generate the images: meteordemod -i 2022-12-01-16-41-42-METEOR-M_2.s -t 2022-12-01-16-41-42-METEOR-M_2weather.tle -f jpg -d 01-12-2022 meteordemod -i 2022-12-01-18-21-57-METEOR-M_2.s -t 2022-12-01-18-21-57-METEOR-M_2weather.tle -f jpg -d 01-12-2022 meteordemod -i 2022-12-02-06-41-13-METEOR-M_2.s -t 2022-12-02-06-41-13-METEOR-M_2weather.tle -f jpg -d 02-12-2022

When generating each of these three data sets sequentially over a few minutes, all get included in the composite. I'd expect only the first two (date = 01-12-2022) to be included and not the last one (date = 02-12-2022) as that pass is about 12 hours later than the first two.

KiwiInNZ avatar Dec 03 '22 21:12 KiwiInNZ