simple gauge doing catch angle
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user