Skip to main content

Geostatistical expansion in the scipy style

Project description

This module offers at the current state a scipy-styled Variogram class for performing geostatistical analysis. This class is can be used to derive variograms. Key benefits are a number of semivariance estimators and theoretical variogram functions. The module is planned to be hold in the manner of scikit modules and be based upon numpy and scipy whenever possible. There is also a distance matrix extension available, with a function for calculating n.dimensional distance matrices for the variogram. The estimators include:

  • matheron

  • cressie

  • dowd

  • genton (still buggy)

  • entropy (not tested)

The models include:

  • sperical

  • exponential

  • gaussian

  • cubic

  • stable

  • matérn

with all of them in a nugget and no-nugget variation. All the estimator functions are written numba compatible, therefore you can just download it and include the @jit decorator. This can speed up the calculation for bigger data sets up to 100x. Nevertheless, this is not included in this sckit-gstat version as these functions might be re-implemented using Cython. This is still under evaluation.

At the current stage, the package does not inlcude any kriging. This is planned for a future release.

Installation

You can either install scikit-gstat using pip or you download the latest version from github.

PyPI:

pip install scikit-gstat

GIT:

git clone https://github.com/mmaelicke/scikit-gstat.git
cd scikit-gstat
pip install -r requirements.txt
pip install -e .

Usage

The Variogram class needs at least a list of coordiantes and values. All other attributes are set by default. You can easily set up an example by generating some random data:

import numpy as np
import skgstat as skg

coordinates = np.random.gamma(0.7, 2, (30,2))
values = np.random.gamma(2, 2, 30)

V = skg.Variogram(coordinates=coordinates, values=values)
print(V)
spherical Variogram
-------------------
Estimator:    matheron
Range:        1.64
Sill:         5.35
Nugget:       0.00

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

scikit-gstat-0.1.1.tar.gz (21.7 kB view details)

Uploaded Source

File details

Details for the file scikit-gstat-0.1.1.tar.gz.

File metadata

  • Download URL: scikit-gstat-0.1.1.tar.gz
  • Upload date:
  • Size: 21.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for scikit-gstat-0.1.1.tar.gz
Algorithm Hash digest
SHA256 e4bf4e2fe80ef59155d018af2e2dc9419c73c473f6441a424b9965f3ebfae669
MD5 6fcc3278220682a7bf21df1f7943180b
BLAKE2b-256 fe1cd478c44cf9c05d0f63eec0fbf98dfe141c8d1cd3a4df24696b638dc482ad

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