-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
24 changed files
with
868 additions
and
561 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{% extends "!layout.html" %} | ||
|
||
{% block menu %} | ||
{{ super() }} | ||
<a href="py-modindex.html">Python Module Index</a> | ||
<a href="genindex.html">Index</a> | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
field | ||
----- | ||
|
||
.. automodule:: gstools.field | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
.. only:: html | ||
|
||
.. toctree:: | ||
:maxdepth: 1 | ||
|
||
rng.rst | ||
srf.rst | ||
|
||
Details | ||
------- |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,68 @@ | ||
Table of Content | ||
---------------- | ||
======================= | ||
Welcome to GeoStatTools | ||
======================= | ||
|
||
.. image:: gstools.png | ||
:width: 200px | ||
:align: center | ||
|
||
About | ||
----- | ||
GeoStatTools is a library providing geostatistical tools. | ||
|
||
Dependencies | ||
------------ | ||
- `Numpy <http://www.numpy.org>`_ | ||
- `SciPy <http://www.scipy.org>`_ | ||
|
||
Installation | ||
------------ | ||
``pip install gstools`` | ||
|
||
Generation example | ||
------------------ | ||
This is an example of how to generate a 2 dimensional spatial random field with a Gaussian covariance structure. | ||
|
||
.. code-block:: python | ||
import numpy as np | ||
from gstools.field import SRF | ||
x = np.linspace(0, 10, 120) | ||
y = np.linspace(-5, 5, 100) | ||
cov_model = {'dim': 2, 'var': 1.6, 'len_scale': 4.5, 'model': 'gau', 'mode_no': 1000} | ||
srf = SRF(**cov_model) | ||
field = srf(x, y, seed=19970221, mesh_type='structured') | ||
Variogram example | ||
----------------- | ||
The spatial structure of a field can be analyzed with the variogram, which contains the same information as the covariance function. | ||
|
||
This is an example of how to estimate the variogram of a 2 dimensional unstructured field. | ||
|
||
.. code-block:: python | ||
import numpy as np | ||
from gstools.field import SRF | ||
from gstools import variogram | ||
#random samples between 0 <= x, y < 100 | ||
x = np.random.rand(1000) * 100. | ||
y = np.random.rand(1000) * 100. | ||
srf = SRF(dim=2, var=2, len_scale=30) | ||
field = srf(x, y, seed=20011012) | ||
bins = np.arange(0, 50) | ||
gamma = variogram.estimate_unstructured(field, bins, x, y) | ||
Modules | ||
------- | ||
.. toctree:: | ||
:maxdepth: 4 | ||
:maxdepth: 2 | ||
|
||
gstools | ||
main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
.. automodule:: gstools | ||
|
||
.. toctree:: | ||
:maxdepth: 2 | ||
|
||
field.rst | ||
variogram.rst |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
rng | ||
--- | ||
|
||
.. automodule:: gstools.field.rng | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
srf | ||
--- | ||
|
||
.. automodule:: gstools.field.srf | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
variogram | ||
--------- | ||
|
||
.. automodule:: gstools.variogram | ||
:members: | ||
:undoc-members: | ||
:show-inheritance: | ||
|
||
Details | ||
------- |
Oops, something went wrong.