read_uncertainty_table¶
petrophys.evaluation.uncertainty.read_uncertainty_table
Also available as petrophys.evaluation.read_uncertainty_table
- read_uncertainty_table(source, *, sheet_name=None)[source]¶
Read input uncertainties from a table (CSV, Excel or DataFrame) for
monte_carlo().One row per input: a
name(orparameter) column, adistribution(dist) column, and the parameter columns that distribution needs:mean/sd(normal),median/sd(lognormal,sdof ln),low/high(uniform),low/mode/high(triangular);low/highon a normal or lognormal row truncate it. Afixed(orconstant) row takes itsvalue(ormean).>>> import pandas as pd >>> read_uncertainty_table(pd.DataFrame({ ... "name": ["rw", "m"], "distribution": ["triangular", "uniform"], ... "low": [0.05, 1.8], "mode": [0.07, None], "high": [0.09, 2.2]}))["m"] ('uniform', 1.8, 2.2)