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

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

Define the anisotropy and the grid:

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

Define SPDE and Simulate:

sp = Spde(grid, sigma=1, a=25)
Z = 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.4.tar.gz (12.0 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.4-py3-none-any.whl (12.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyspde-0.0.4.tar.gz
  • Upload date:
  • Size: 12.0 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.4.tar.gz
Algorithm Hash digest
SHA256 456289571c9a016524d20dc4126420e3ccf1d97aa519a3e49f93461bf290ae7b
MD5 8dabfa89af5f4eaa78d02252c44f7c7e
BLAKE2b-256 0d645d5efa10704023e19a21dd70d084ab5f2ecb9f37f5224b3381f3ea38c134

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspde-0.0.4-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.4-py3-none-any.whl
Algorithm Hash digest
SHA256 dd8918347372b11b6992629f23fadb9b8eff704f7636dc073102244d511ddd42
MD5 1f92c40a9cb9009b6c1f043ecc330e9a
BLAKE2b-256 549c40367e6254a2447155067045c205563253ca3f71184f75b7a4bf5a6bcf6c

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