From 35404937a2370b9ea706af9292897ddc27a1118a Mon Sep 17 00:00:00 2001 From: Sebastian Heimann Date: Tue, 5 Dec 2023 09:24:25 +0100 Subject: [PATCH] compatibility with newer pyrocko version --- kite/scene.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kite/scene.py b/kite/scene.py index 6c3ba71..4b6d0bb 100644 --- a/kite/scene.py +++ b/kite/scene.py @@ -8,7 +8,7 @@ import numpy as np import utm -from pyrocko.dataset.topo import srtmgl3 +from pyrocko.dataset import topo from pyrocko.guts import Dict, Float, Object, String, StringChoice, Timestamp, load from pyrocko.orthodrome import latlon_to_ne, latlon_to_ne_numpy, ne_to_latlon # noqa from scipy import interpolate @@ -643,6 +643,7 @@ def los_rotation_factors(self): return self._los_factors def get_elevation(self, interpolation="nearest_neighbor"): + srtmgl3 = topo.dem("SRTMGL3") assert interpolation in ("nearest_neighbor", "bivariate") if self._elevation.get(interpolation, None) is None: