15 from dateutil
import parser
16 from datetime
import tzinfo, timedelta, datetime
25 infile = open(odb_file,
"r") 26 nbCols = int(infile.readline()) 28 for i
in range(0, nbCols):
29 columns.append(infile.readline().strip())
30 nbRows = int(infile.readline())
31 for i
in range(0, nbRows):
33 col = infile.readline().split();
34 row[
"stringdate"] = col[1]
35 d = parser.parse(col[1])
36 row[
"date"] = d - timedelta(minutes=1)
38 for j
in range(0, nbCols) :
39 row[columns[j]] = col[j + 3]
40 self.
datas.append(row)
61 obs[
'x'].append(float(o[
"x"]))
62 obs[
'y'].append(o[colName])
69 date = parser.parse(stringdate)
def getXYAt(self, date, colName)
def getAt(self, stringdate)
def __init__(self, odb_file)