Plurigaussian ¶
Plurigaussian simulation: facies from thresholding independent latent Gaussian fields through a truncation rule.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
variograms
|
Variogram or sequence of Variogram
|
Unit-sill variogram of each latent field, in field order. |
required |
proportions
|
sequence of float
|
Facies proportions. Alone, facies |
required |
rule
|
int or tuple
|
Hierarchical rule, with |
required |
regions
|
sequence of (bounds, int)
|
Explicit rule instead of |
required |
fit
method descriptor
¶
fit(coords, categories, *, holes=None, proportions=None)
Takes the conditioning data.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
coords
|
(array_like, shape(n, 2) or (n, 3), PointSet or BlockModel)
|
|
required |
categories
|
array_like, shape (n,), or str
|
Facies |
required |
holes
|
array_like or str
|
Drill-hole ids or names; samples sharing a location keep the first. |
None
|
proportions
|
(array_like, shape(n, k))
|
Local facies proportions at the samples, for a rule built from
proportions; |
None
|
fit_variograms
method descriptor
¶
fit_variograms(experimental)
Rescales the ranges of each latent variogram, keeping its structures and anisotropy, so the indicator semivariograms the rule implies match the experimental ones.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
experimental
|
sequence of ExperimentalVariogram or None
|
Omnidirectional semivariogram of each facies' indicator, in facies order, not standardized; None skips a facies. Lags are weighted by their pair counts. |
required |
Returns:
| Type | Description |
|---|---|
Plurigaussian
|
This simulator, with the fitted variograms. |
from_parquet
staticmethod
¶
from_parquet(path)
Reads to_parquet output; raises InvalidInput on another class's file
or a newer format.
indicator_variograms
method descriptor
¶
indicator_variograms(lags)
Indicator semivariogram of each facies the rule and the latent variograms imply, along the variograms' major axes.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
lags
|
(array_like, shape(m))
|
|
required |
Returns:
| Type | Description |
|---|---|
(ndarray, shape(k, m))
|
|
simulate
method descriptor
¶
simulate(
targets,
*,
n=100,
seed=0,
keep=None,
anisotropy=None,
blocks=None,
proportions=None,
memory=None,
)
Summary of n realizations; same options as SIS.simulate, memory
included, and proportions of shape (targets, k), the local facies
proportions at the targets, when fit had them at the samples.
Without anisotropy, each latent field is a turning-bands simulation
conditioned on a Gibbs sample at the data. With anisotropy, the Gibbs
covariance between data i and j is the average of the covariances
in the anisotropy at i and at j. The average is symmetric. It is
the covariance locally varying anisotropy kriging uses for a pair that
shares one anisotropy, and here each datum is read in the anisotropy
of its nearest node. Each field is then a sequential Gaussian
simulation: the search and the simple kriging at a node use that
node's anisotropy. An anisotropy that repeats the variograms'
anisotropy at every node leaves the Gibbs covariance unchanged. The
field is still sequential, so it differs from turning bands.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
targets
|
(array_like, PointSet or BlockModel)
|
|
required |
n
|
int
|
Number of realizations. |
100
|
seed
|
int
|
|
0
|
keep
|
bool or sequence of int
|
Keep all realizations, or those indices. |
False
|
anisotropy
|
LocalAnisotropy
|
Orientation of each target. A field given on other locations is transferred by nearest neighbor. |
None
|
blocks
|
BlockModel
|
Coarser blocks each realization is summarized at, as in
|
None
|
proportions
|
(array_like, shape(targets, k))
|
Local facies proportions at the targets, when |
None
|
memory
|
int or float
|
Bytes the run may take. The realizations do not depend on it. |
None
|
Returns:
| Type | Description |
|---|---|
CategoricalSummary
|
|
to_parquet
method descriptor
¶
to_parquet(path)
Writes arrays as Parquet columns and parameters as JSON in the file
metadata; from_parquet reads it back.
Used in