ogs5py.tools.tools.specialrange

ogs5py.tools.tools.specialrange(val_min, val_max, steps, typ='exp')[source]

Calculation of special point ranges.

Parameters
  • val_min (float) – Starting value.

  • val_max (float) – Ending value

  • steps (int) – Number of steps.

  • typ (str or float, optional) –

    Setting the kind of range-distribution. One can choose between

    • "exp": for exponential behavior

    • "log": for logarithmic behavior

    • "geo": for geometric behavior

    • "lin": for linear behavior

    • "quad": for quadratic behavior

    • "cub": for cubic behavior

    • float: here you can specifi any exponent (“quad” would be equivalent to 2)

    Default: "exp"

Returns

Array containing the special range

Return type

numpy.ndarray

Examples

>>> specialrange(1,10,4)
array([ 1.        ,  2.53034834,  5.23167968, 10.        ])