Skip to content
Snippets Groups Projects
Commit 560e4228 authored by Raphael Sturgis's avatar Raphael Sturgis
Browse files

set to zero negative speeds

parent 5e01b527
Branches
Tags
2 merge requests!12version 0.2a,!10Resolve "Image creation bugs with 0 size windows"
......@@ -77,8 +77,8 @@ class AISTrajectory(AISPoints):
kind='nearest', axis=0)(t_interp1d).astype(int)
df = new_df
# self.df = df.dropna()
if 'sog' in df.columns:
df.loc[df['sog'] < 0, 'sog'] = 0
AISPoints.__init__(self, df)
def sliding_window(self, size=10, offset=1, fields=None):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment