From 8ac0fe272b7c15ace8a21eb9d8ed5ae9a5f035b9 Mon Sep 17 00:00:00 2001 From: Alexey Pechnikov Date: Mon, 10 Jun 2024 18:07:32 +0700 Subject: [PATCH] Fix for the previous commit --- pygmtsar/pygmtsar/Stack_stl.py | 1 + 1 file changed, 1 insertion(+) diff --git a/pygmtsar/pygmtsar/Stack_stl.py b/pygmtsar/pygmtsar/Stack_stl.py index 3a8425ff..35a76340 100644 --- a/pygmtsar/pygmtsar/Stack_stl.py +++ b/pygmtsar/pygmtsar/Stack_stl.py @@ -13,6 +13,7 @@ class Stack_stl(Stack_tidal): def velocity(self, data): + import numpy as np print('NOTE: Velocity calculation is changed to use least squares linear fit and can produce different results.') #years = ((data.date.max() - data.date.min()).dt.days/365.25).item() #nanoseconds = (data.date.max().astype(int) - data.date.min().astype(int)).item()