@@ -186,9 +199,28 @@ class PythonWinADCPReader(VTKPythonAlgorithmBase):
else:
else:
print("Unexpected bin name: "+str(name))
print("Unexpected bin name: "+str(name))
displacement=np.zeros((self._bins,3))
tdiff=0
ifdata_timeinself._timesteps:
time_index=self._timesteps.index(data_time)
iftime_index>0:
tdiff=(data_time-self._timesteps[time_index-1])#Timesteps are in seconds
foriinrange(self._bins):
prev=self._displacement_vectors[i]
offset=(directions[i][0]*((magnitudes[i]/1000)*tdiff),directions[i][1]*((magnitudes[i]/1000)*tdiff))# Magnitude needs to divided by 1000 because it's in mm/s not m/s