Skip to content

Commit

Permalink
GSTools: latlon models not supported for uk
Browse files Browse the repository at this point in the history
  • Loading branch information
MuellerSeb committed Aug 17, 2022
1 parent 349e35e commit 8eee6aa
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/pykrige/uk.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = []
Expand Down Expand Up @@ -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 = []
Expand Down

0 comments on commit 8eee6aa

Please # to comment.