modified submin2hourly so that it could be used to
compute hourly timeseries from flat files created from export_sd_to_csv
and separate_circuits