Skip to main content

PySPDE is a Python library for performing simulations and kriging of non-stationary spatial gaussian random fields with Matérn covariance, by solving the following Stochastic Partial Differential Equations (SPDEs)

Project description

PySPDE

PySPDE is a Python library for performing simulations and kriging of non-stationary spatial gaussian random fields with Matérn covariance, by solving the following Stochastic Partial Differential Equations (SPDEs):

$$ ({\kappa}^2 - {\nabla} {\cdot} H(x) {\nabla} )Z(x) = {\tau}W(x) \quad x \in \mathbb{R}^2 $$

The theory is proposed in Fuglstad (2014).

Instalation

pip install pyspde

Basic Usage

Imports:

from pyspde import anisotropy, Grid, Spde

Define the anisotropy and the grid:

atrp = anisotropy_from_svg(r'assets/anicline.svg', beta=10, gamma=0.1)
grid = Grid(nx=200, ny=100, anisotropy=atrp)

Define SPDE and Simulate:

sp = Spde(grid, sigma=1, a=25)
Z_M = sp.simulate()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pyspde-0.0.3.tar.gz (11.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyspde-0.0.3-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

Details for the file pyspde-0.0.3.tar.gz.

File metadata

  • Download URL: pyspde-0.0.3.tar.gz
  • Upload date:
  • Size: 11.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for pyspde-0.0.3.tar.gz
Algorithm Hash digest
SHA256 a3dea20d425364e46cef513ee2808d3cfd1ec1ba613ff6ccbf03a4fbbacd1b60
MD5 1252ca6e00a6fca4cfa2d3d7bc205ef6
BLAKE2b-256 19cbdcc1d8bfaa4cc7ed6eff55af5de4e587d006e2467c92996b798667a089f2

See more details on using hashes here.

File details

Details for the file pyspde-0.0.3-py3-none-any.whl.

File metadata

  • Download URL: pyspde-0.0.3-py3-none-any.whl
  • Upload date:
  • Size: 12.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.0.0 CPython/3.11.0

File hashes

Hashes for pyspde-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 58e5f9d806e59205290305efaa94b1288ee86b532e145c5523d65e82028e5f8d
MD5 ca004b8622e889d14229e009205fbf71
BLAKE2b-256 5ad1c3247e4cfe6b1a5b70c09e55a35fa2201d1c3241852a608c37447131c6e6

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page