Code Monkey home page Code Monkey logo

pygeostatistics's Introduction

pyGeoStatistics

status Documentation Status

A collection of python routines (accelerated with Numba) and jupyter notebooks for geostatistics, which is immensely inspired by gslib (in Fortran).

Usage

Every routine reads its parameters from a parameter file written in json. All parameters including input/output file path need to be specified in these parameter files.

I've created scripts that assist in creating parameter files, they could be found in \parameters folder.

I tried to adhere to the naming convention of gslib when it comes to parameter names.

Markdown files describing parameters needed for each routine are in \gslib_help.

Example:

from pygeostatistics import Sgsim

sgsimulator = Sgsim("testData/test_sgsim.par")
sgsimulator.simulate()

Routines

  • eda.py: exploratory data anaylysis.

  • nst.py: apply normal score transform to data.

  • gam.py: calculate variogram for regular data.

  • gamv.py: calculate variogram for irregular data.

  • sa.ipynb: interactive structural analysis.

  • krige2d.py: kriging 2d data.

    • Simple Kriging
    • Ordinary Kriging
  • krige3d.py: kriging 3d data.

    • Simple Kriging
    • Ordinary Kriging
    • Universal Kriging (Kriging with a Trend)
    • Kriging the Trend
    • Kriging with External drift
    • SK with non-stationary drift
  • sgsim.py: Sequential Gaussian Simulation.

Other Utilities

  • super_block.py: Class for performing super block search used in kriging.

    • used in krige3d.py
    • used in sgsim.py
  • normal_score_transform.py: Class for NST used in Gaussian Simulation.

    • used in sgsim.py

Documentation

For full documentation, including installation, tutorials and PDF documents, please see http://pygeostatistics.readthedocs.io/.

pygeostatistics's People

Contributors

whimian avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

pygeostatistics's Issues

"missing setup file"

Hi, in the official documentation, it says that we can install using the setup.py after creating a dedicated environment. However, the setup.py file is not residing currently in the git repo.

normal_score_transform.py error

Hey, just a note- I've been playing with your library and am quite impressed. I noticed that you get an error in this file at line 121: ' for sc in up_score:' that a float is not iterable. I changed that to 'for sc in upper_scores:' and it seems to run fine, but I haven't taken the time to verify the results.

I'd be interested in contributing to your code here. I wrote a script to calculate declustering weights with scipy and have been putting together a workflow with data that could be used as an example.

Send me a message if you're interested.

Co-Kriging

How to use this package for coKriging ?

missing modules: variogram_model and gamv_yuhao

Hi Hao,
I tried the structural analysis notebook and it complained about two missing modules.
Any idea what's happening?

>>> import variogram_model as vm
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'variogram_model'
>>> from gamv_yuhao import Gamv
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
ModuleNotFoundError: No module named 'gamv_yuhao'

Cannot run unconditional simulation

Hello. I used sgsim to run an unconditional simulation but it does not work. Have you tried unconditional simulation using the pygeostatistics code before? Thanks.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.