question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Geographical models

See original GitHub issue

It was shown, that the current approach of plugging in the great-circle distance directly into the covariance/variogram function does not automatically result in a valid covariance model on the sphere.

To overcome this flaw, we should use the so called Yadrenko Covariance Function (See here). Starting with a valid isotropic model in 3D, where the covariance between two points is given as a function of their distance:

cov(x1, x2) = func(dist(x1, x2))

We can construct the related yadrenko model on the sphere, that takes the great-circle distance zeta(x1, x2) with the following modification:

cov_sph(x1, x2) = func(2 * sin(zeta(x1, x2) / 2))

One should not, that 2 * sin(x / 2) is approximately x for small angles, which means, that the current approach in PyKrige is approximately correct for small angles.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:10 (10 by maintainers)

github_iconTop GitHub Comments

2reactions
MuellerSebcommented, Mar 30, 2021

This is now solved in GSTools and will be used in PyKrige in the future:

2reactions
MuellerSebcommented, May 5, 2020

@mjziebarth : I would suggest doing this within the GS-Framework 2.0 project. By increasing the major version of Pykrige and GSTools we can break backward compatibility. We can still keep v1.x of PyKrige alive, but I wouldn’t introduce a deprecation cycle there. Of course, we have to well-document this change and the behavior.

Read more comments on GitHub >

github_iconTop Results From Across the Web

1.3.4: Models in Geography - Geosciences LibreTexts
Geographers construct models to analyze geographic processes because the real object of study may be too large to examine, the processes ...
Read more >
Types of Geographical Models: Natural, Physical, General ...
Types of Models: · 1. Natural Analogue System: (a) Historical Analogue. (b) Spatial Analogue · 2. Physical System: ADVERTISEMENTS: (a) Hardware Model. (i)...
Read more >
30 Models and Theories to Know for AP Human Geography
There are at least 30 models and theories that you must know to get a 5 on the AP Human Geography exam. Here's...
Read more >
Geography - Geographical Models - Science Encyclopedia
Geography. Geographical Models. Before treating computer graphics and geographical information systems (GIS), which purists consider only ...
Read more >
Models and Theories - Geography for Geographers
usefulness of these geographic models. The theories, and those who proposed them, are central to the study of human geography and help establish...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found