Skip to content

Commit

Permalink
compatibility with newer pyrocko version
Browse files Browse the repository at this point in the history
  • Loading branch information
emolch committed Dec 5, 2023
1 parent 92838a9 commit 3540493
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion kite/scene.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit 3540493

Please sign in to comment.