ARPA-SIMC / dballe

Fast on-disk database for meteorological observed and forecast data.
Other
19 stars 6 forks source link

wrong datetimemin datetimemax in explorer #242

Closed pat1 closed 3 years ago

pat1 commented 3 years ago
import dballe

with dballe.Explorer("dballe_report_fixed.json") as newexplorer:
    print (newexplorer.stats)
    for cur in newexplorer.query_summary():
        print (cur["datetimemin"],cur["datetimemax"])

output:

python tmp.py|head
ExplorerStats(datetime_min=datetime.datetime(2017, 4, 18, 0, 0), datetime_max=datetime.datetime(2017, 4, 18, 23, 59, 50), count=22755)
2017-01-01 00:00:00 2017-01-01 00:00:00
2017-01-01 00:00:00 2017-01-01 00:00:00
2017-01-01 00:00:00 2017-01-01 00:00:00
2017-01-01 00:00:00 2017-01-01 00:00:00
2017-01-01 00:00:00 2017-01-01 00:00:00
2017-01-01 00:00:00 2017-01-01 00:00:00
2017-01-01 00:00:00 2017-01-01 00:00:00
2017-01-01 00:00:00 2017-01-01 00:00:00
2017-01-01 00:00:00 2017-01-01 00:00:00
...

explorer attached: explorer.zip