Private
Public Access
1
0

simple gauge doing catch angle

This commit is contained in:
Sander Roosendaal
2019-11-10 15:19:23 +01:00
parent 1bc3638a96
commit 1c87210a57
2 changed files with 35 additions and 3 deletions

View File

@@ -47,7 +47,7 @@ def get_video_id(url):
raise ValueError
def get_video_data(w):
df = getsmallrowdata_db(['time','velo','spm'],ids=[w.id],
df = getsmallrowdata_db(['time','velo','spm','catch'],ids=[w.id],
workstrokesonly=False,doclean=False,compute=False)
df['time'] = (df['time']-df['time'].min())/1000.
df.sort_values(by='time',inplace=True)
@@ -63,6 +63,7 @@ def get_video_data(w):
boatspeed = (100*df2['velo']).astype(int)/100.
spm = (10*df2['spm']).astype(int)/10.
catch = (10*df2['catch']).astype(int)/10.
coordinates = dataprep.get_latlon_time(w.id)
@@ -83,7 +84,8 @@ def get_video_data(w):
'boatspeed':[ v for v in boatspeed.values],
'latitude':[ l for l in latitude.values],
'longitude':[ l for l in longitude.values],
'spm':[ s for s in spm.values ]
'spm':[ s for s in spm.values ],
'catch': [c for c in catch.values]
}
maxtime = coordinates['time'].max()