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

Uploaded Python 3

File details

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

File metadata

  • Download URL: pyspde-0.0.5.tar.gz
  • Upload date:
  • Size: 12.4 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.5.tar.gz
Algorithm Hash digest
SHA256 d597523d709fee5bcb3d1e521c7cddd7b663bd7b95c9f95e3001a71923778d49
MD5 ab53198c792ca24864ac61033ac9ef2e
BLAKE2b-256 7f1d326e2e4cede4f61a7d640c0a0ea13dd2ddec79fd958c6ecaf88583e16931

See more details on using hashes here.

File details

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

File metadata

  • Download URL: pyspde-0.0.5-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.0

File hashes

Hashes for pyspde-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 32a9ab818375ae838f7598f8a1c41661610e4e2280ca70d15fcfddd912ae4a77
MD5 5272dc08b53219321cb1a66fd97f7fcf
BLAKE2b-256 31b6cd9293e47793fc74db5cd0e069f15eb884f99b916122e837a5419add06d2

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