From 1479077a148200e6abbd5d7dbfe724bc1b2c33bf Mon Sep 17 00:00:00 2001 From: Alexey Pechnikov Date: Mon, 10 Jun 2024 16:23:45 +0700 Subject: [PATCH] Return float32 values from velocity() function --- pygmtsar/pygmtsar/Stack_stl.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pygmtsar/pygmtsar/Stack_stl.py b/pygmtsar/pygmtsar/Stack_stl.py index 97e3bd1..3a8425f 100644 --- a/pygmtsar/pygmtsar/Stack_stl.py +++ b/pygmtsar/pygmtsar/Stack_stl.py @@ -20,7 +20,7 @@ def velocity(self, data): #velocity = nanoseconds*data.polyfit('date', 1).polyfit_coefficients.sel(degree=1)/years nanoseconds_per_year = 365.25*24*60*60*1e9 # calculate slope per year - velocity = nanoseconds_per_year*data.polyfit('date', 1).polyfit_coefficients.sel(degree=1).rename('trend') + velocity = nanoseconds_per_year*data.polyfit('date', 1).polyfit_coefficients.sel(degree=1).astype(np.float32).rename('trend') return velocity def trend(self, data, deg=1):