Hello Thomas,
Thanks for the pointer to the SQL solution. I can see that method as fine for a one-time or infrequent interval conversions. The main part that groups and averages most columns is straightforward but the part that uses trig functions to calculate averages for wind direction and speed was completely unexpected. I'm wondering what is an authoritative source for these calculations?
For a couple of reasons, I'd prefer a solution in Python. First, the driver I'm implementing for the Columbia Weather MicroServer won't initially have the ability to automatically catch up missing data by implementing the genArchiveRecords() method in the driver so I'll have to manually import data from time to time when observations have been missed. Secondly, since I have to load 900 files, the CSV importer won't work for me as-is so it looks like I'll have to write a custom importer anyways. While I'm at it, I may try to implement accumulation logic as part of the import. The classes in bin/weewx/accum.py look like they would be very helpful. After that it would be a matter of figuring out the row grouping logic.
Thanks,
-Bill