From 8eee6aa933603dfa09cfa331fa9b5743e0a4af20 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20M=C3=BCller?= Date: Wed, 10 Aug 2022 15:34:04 +0200 Subject: [PATCH] GSTools: latlon models not supported for uk --- src/pykrige/uk.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/pykrige/uk.py b/src/pykrige/uk.py index 4863f78..91dbedb 100644 --- a/src/pykrige/uk.py +++ b/src/pykrige/uk.py @@ -269,6 +269,10 @@ def __init__( self.model = self.variogram_model if self.model.field_dim == 3: raise ValueError("GSTools: model dim is not 1 or 2") + if self.model.latlon: + raise ValueError( + "GSTools: latlon models not supported for universal kriging" + ) self.variogram_model = "custom" variogram_function = self.model.pykrige_vario variogram_parameters = [] @@ -675,6 +679,10 @@ def update_variogram_model( self.model = self.variogram_model if self.model.field_dim == 3: raise ValueError("GSTools: model dim is not 1 or 2") + if self.model.latlon: + raise ValueError( + "GSTools: latlon models not supported for universal kriging" + ) self.variogram_model = "custom" variogram_function = self.model.pykrige_vario variogram_parameters = []