Skip to content

Commit

Permalink
Merge pull request #254 from GeoStat-Framework/pykrige_latlon_fix
Browse files Browse the repository at this point in the history
pykrige: fix passed variogram in case of geo-coord
  • Loading branch information
LSchueler authored Aug 12, 2022
2 parents dda2431 + 55f8e2d commit 8122d6b
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/gstools/covmodel/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -321,9 +321,11 @@ def plot(self, func="variogram", **kwargs): # pragma: no cover

# pykrige functions

def pykrige_vario(self, args=None, r=0):
def pykrige_vario(self, args=None, r=0): # pragma: no cover
"""Isotropic variogram of the model for pykrige."""
return self.variogram(r) # pragma: no cover
if self.latlon:
return self.vario_yadrenko(np.deg2rad(r))
return self.variogram(r)

@property
def pykrige_anis(self):
Expand Down

0 comments on commit 8122d6b

Please sign in to comment.