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 \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.1.tar.gz (11.8 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.1-py3-none-any.whl (12.6 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyspde-0.0.1.tar.gz
  • Upload date:
  • Size: 11.8 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.1.tar.gz
Algorithm Hash digest
SHA256 6db5756e3898c83836d070f8481e8b1db87be4eb50ecaa9b74086a7b4e1d9061
MD5 ed1b3ffc55f76fb1d4a8585f71335014
BLAKE2b-256 d89406a250902cebd9aed38e2d0731a705b28b80d02301c7be3ffef62ea532a9

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspde-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 12.6 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 476cf04a06a3f1ab18868466704171f71f04aa992d3f57e7a270a4217e2428a9
MD5 987b3bd282249ed7445b9d9cfcb21993
BLAKE2b-256 a0757294b61a04684b77bb4b9f8d440f3401a45edff38a73915acc150f4afdda

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