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.2.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.2-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyspde-0.0.2.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.2.tar.gz
Algorithm Hash digest
SHA256 ede4a4e3ac03a115c016a7376f5fed2dac3ac884379a32546b2b2ef24cb103d8
MD5 a9bd69d0799e82750f3d03297c5087a8
BLAKE2b-256 787ca826830da47f3f056b11016ace7966aa6cd1eea9f2eaed4c591657155a22

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspde-0.0.2-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.2-py3-none-any.whl
Algorithm Hash digest
SHA256 dce8f3f29f7fb9f48ae17a832895ecccf38435e17ac4c413db3ce8c0927529b0
MD5 7a64caa9573e5b39d4edd65251b3534a
BLAKE2b-256 3898e4bb9ff29e0cf24a11368025118dd1dcd6032a2721739bd9ac1be688533a

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