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}(x)W(x) \quad x \in \mathbb{R}^2 $$

The theory is proposed in Fuglstad (2014).

Instalation

On Debian/Ubuntu systems:

sudo apt-get install libsuitesparse-dev
pip install pyspde

On Windows systems:

conda install -c conda-forge suitesparse
pip install pyspde

Basic Usage

Imports:

from pyspde import anisotropy, Grid, Spde, anisotropy_from_svg

Define the anisotropy and the grid:

atpy = anisotropy_from_svg(r'assets/anticline.svg', beta=50, gamma=0.5)
grid = Grid(nx=400, ny=200, anisotropy=atpy)

Define SPDE and Simulate:

sp = Spde(grid, sigma=1, a=50)
Z = sp.simulate(seed=0)

alt text

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.6.tar.gz (12.4 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.6-py3-none-any.whl (13.2 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for pyspde-0.0.6.tar.gz
Algorithm Hash digest
SHA256 b57299ec01a6d705f36a80462453b03f85018e52499465cb10c6c58e556d190e
MD5 ceb276a9944702ac00fb853604148b6c
BLAKE2b-256 d49806a063debadfd4e6ea29610bdfdc3c18307eab82ca666fbe888068f50f9a

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for pyspde-0.0.6-py3-none-any.whl
Algorithm Hash digest
SHA256 21fbc27f29b5aa3b6a41dad01678428028e354d90f4914fedd3a238ea216e7ff
MD5 be12a4203282a7c005deb88c8d2333c4
BLAKE2b-256 517a7e4903888f63c0874c805ed38f4300dbaf68276db696d696258c71b467ae

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