sofarocean / spotter-sd-parser

Open source tool for concatenating and parsing SD card data from Spotters
Apache License 2.0
9 stars 5 forks source link

Epoch to milli mapping is inaccurate if version can't be ascertained #9

Open tcj opened 1 year ago

tcj commented 1 year ago

If the parser can't find a SHA in the SYS CSVs, it can't discern a version.

If it can't discern a version, it doesn't process SST lines.

Perhaps this could be adjusted:

                    #
                    # If SST file, map millis onto epochs
                    if Suffix == 'SST':
                        if compatibility_version < 3:
                            lines = process_sst_lines(lines, fqfn)
tcj commented 1 year ago

The net result is that sst.csv may contain dates in the year 2080, etc.