Skip to content

Commit 7a86236

Browse files
tommyoddafeda
authored andcommitted
Clarified docs a bit
1 parent ab84ff8 commit 7a86236

File tree

1 file changed

+31
-30
lines changed

1 file changed

+31
-30
lines changed

docs/fmudesign.rst

Lines changed: 31 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -6,37 +6,35 @@ FMU design matrix
66
Usage
77
-----
88

9-
fmu-tools is designed for use in several scenarios:
9+
fmu-tools is designed to be used in several scenarios:
1010

11-
* Part of an ERT workflow, typically as a pre or postprocessing
11+
* Part of an ERT workflow, typically as a pre- or postprocessing
1212
workflow used by HOOK_WORKFLOW PRE_SIMULATION (preprocessing) or
1313
POST_SIMULATION (postprocessing)
1414
* Part of other scripts or utilities, either for analysis or
15-
preparations for visualization such as webviz.
15+
preparation for visualization such as webviz.
1616
* It can also be used interactively, e.g. in the (i)python interpreter
1717
or a Jupyter notebook.
1818

19-
The current functionality is:
19+
The functionality is:
2020

2121
\1. Automatic generation of design matrices to be run with DESIGN2PARAMS and
22-
DESIGN_KW in ERT. Generation of a design matrix can be run with a script::
22+
DESIGN_KW in ERT. You may generate a design matrix by running ``fmudesign``::
2323

2424
fmudesign <design_input.xlsx> <output_matrix.xlsx>
2525

26-
where <design_input.xlsx> is the path to the input for generating the design matrix
27-
and <output_matrix.xlsx> is the path to the output design matrix.
28-
Study the examples for how to configure the input for the design matrix
26+
where ``<design_input.xlsx>`` is the path to the input for generating the design matrix
27+
and ``<output_matrix.xlsx>`` is the path to the output design matrix.
2928

30-
2. Post processing of onebyone sensitivities. This can be run from a python script using fmu.tools.sensitivities.
31-
Study the examples to learn how to use it.
29+
To see more verbose information (descriptive statistics, plots, etc), run with ``--verbose``::
3230

31+
fmudesign <design_input.xlsx> <output_matrix.xlsx> --verbose
3332

34-
----------------------
35-
Examples to learn from
36-
----------------------
33+
Use ``fmudesign --help`` to see all available options.
34+
Study the examples for how to configure the input for the design matrix.
3735

38-
.. Notice that YAML files included are also input to testing
39-
and this secures consistency, except excel spreadsheet which are images.
36+
2. Post processing of onebyone sensitivities. This can be run from a python script using fmu.tools.sensitivities.
37+
Study the examples to learn how to use it.
4038

4139
-------------------------------------------------
4240
Create design matrix for one by one sensitivities
@@ -48,36 +46,39 @@ which can be generated from an excel workbook. The excel workbook must
4846
be set up using a specific format. These examples explain how to set
4947
up the workbook.
5048

51-
What are the types of sensitivities that can be set up
52-
""""""""""""""""""""""""""""""""""""""""""""""""""""""
49+
What types of sensitivities can be set up
50+
"""""""""""""""""""""""""""""""""""""""""
5351
The functionallity so far is covering set-ups for running single sensitivities (one by one sensitivities), but with some options for more advanced set-ups.
5452
The types of sensitivities that are covered are:
5553

5654
seed
57-
This is normally the reference sensitivity to which all the others are compared to. All the parameters will be at their default values taken from the defaultvalues sheet. Only the RMS_SEED will be varying.
55+
This is normally the reference sensitivity other sensitivities are compared to. All parameters will be at their default values taken from the defaultvalues sheet. Only the RMS_SEED will vary.
5856

5957
Some additional possibilities:
6058

6159
* possible to have several sensitivities of type 'seed' in a set up, for instance looking at how RMS_SEED variation affects structure, how it affects facies or how it affects petrophysical modelling, see examples.
6260
* possible to set one or several parameters to another constant value than the default value by filling in parameter names, dist_name = const and dist_param1 = <value> in addition, see examples
6361

6462
scenario
65-
This is a sensitivity where the parameter(s) are set to a constant values (high/low values). One or two scenario cases can exist for each sensitivity. Each of the two cases must be given a name.
63+
This is a sensitivity where parameter(s) are set to a constant values (high/low values). One or two scenario cases can exist for each sensitivity. Each of the two cases must be given a name.
6664

6765
dist
68-
This is a monte carlo sensitivity where one or several parameters are sampled from the specified distribution(s). The distribution name and distribution parameters are given as input. Currently these distributions are implemented:
69-
70-
* **normal (mean, std dev)**
71-
* **normal (mean, std dev, min, max)** which is a truncated gaussian distribution
72-
* **uniform (min,max)**
73-
* **loguniform (min,max)** A stochastic variable is log uniformly distributed if its natural logarithm is uniformly distributed. Arguments are the minimum and maximum of the *output* variable
74-
* **triangular (min, mode, max)**
75-
* **pert (min, mode, max)**
76-
* **discrete ((value1, value2, .. value_n),(weight1, weight2, .. weight_n))** which is a discrete distribution with weights. If no weights are given a discrete uniform distribution will be used.
66+
A monte carlo sensitivity where parameters are sampled from specified distribution. The distribution name and distribution parameters are given as input. These distributions are implemented:
67+
68+
* **normal (mean, stddev)** A normal (Gaussian) distribution.
69+
* **normal (mean, stddev, min, max)** A truncated Gaussian distribution.
70+
* **uniform (min, max)** A uniform distribution.
71+
* **loguniform (min, max)** A stochastic variable is log uniformly distributed if its natural logarithm is uniformly distributed. Arguments are the minimum and maximum of the *output* variable.
72+
* **triangular (min, mode, max)** A triangular distribution parametrized by minimum value, mode and maximum value.
73+
* **pert (min, mode, max, scale=4)** A PERT distribution, which is a re-parametrized Beta distribution. If a fourth parameter is given, it is the scale parameter (default is 4).
74+
* **discrete ((value1, value2, ..., value_n), (weight1, weight2, ..., weight_n))** which is a discrete distribution with weights. If no weights are given, a discrete uniform distribution will be used (all weights are equal).
7775
* **lognormal (mu, sigma)** A stochastic variable is log normally distributed if the natural logarithm of the variable is normally distributed. If a variable X is normally distributed, then Y = exp(X) is log normally distributed. Note that the arguments are mu (mean) and sigma (standard deviation) of the *logarithm* of the variable.
7876
* **const (value)** Can be used to set a parameter to a constant value to override the default value. This can be used also for sensitivities of type *seed*.
79-
80-
Use the whole name for the distributions in the *dist_name* column, or alternatively the short version names: norm, unif, logunif, triang, pert, disc, logn, const. Distribution parameters are filled in into the dist_param1, dist_param2 .. columns in the same order as above.
77+
78+
The names are matched on case-insensitive prefixes ``norm``, ``unif``, ``logunif``, ``triang``, ``pert``, ``disc``, ``logn`` and ``const``.
79+
For instance, ``norm``, ``normal``, ``normal``, and ``NORMAL_DISTRIBUTION`` will all match to a normal distribution.
80+
Use the whole name for the distributions in the *dist_name* column, or alternatively the short version names above.
81+
Distribution parameters are filled in into the dist_param1, dist_param2 .. columns in the same order as above.
8182

8283
ref
8384
This creates a **single** realisation with parameter values set to default values. Typically used if no seed variation or background distributions are used, but a realisation with default values is needed as a reference for tornado calculations. Note that this realisation will **not** itself be plotted as a sensitivity in the tornadoplot. This is flagged by SENSCASE set to 'ref' in the output design matrix.

0 commit comments

Comments
 (0)