Private
Public Access
1
0

bug fix & interpolation

This commit is contained in:
Sander Roosendaal
2018-05-11 11:22:14 +02:00
parent 74f4854807
commit 88cf7227da
2 changed files with 5 additions and 1 deletions

View File

@@ -287,6 +287,11 @@ def get_time_course(ws,course):
rowdata['time'] = rowdata['time']-rowdata.ix[0,'time']
# we may want to expand the time (interpolate)
rowdata['dt'] = rowdata['time'].apply(
lambda x: timedelta(seconds=x)
)
rowdata = rowdata.resample('100ms',on='dt').mean()
rowdata = rowdata.interpolate()
polygons = GeoPolygon.objects.filter(course=course)
paths = []