zone_statistics¶
petrophys.evaluation.summaries.zone_statistics
- zone_statistics(
- well,
- zones,
- curves=None,
- *,
- percentiles=(10, 50, 90),
- rank=None,
- **zone_options,
Statistics of each curve in each zone, as a long table.
- Parameters:
well (Well) – Well with the curves.
zones (DataFrame, path, list or mapping) – Zones as
petrophys.read_formations()reads them: a CSV/Excel file or DataFrame of formation tops, a list of{"name", "top", "bottom"}dicts, or{name: top}. Give bottoms for every zone or for none; without bottoms a zone ends at the next zone’s top (the last at the well’s bottom).curves (iterable of str, optional) – Curves to summarise; by default every numeric curve with data.
percentiles (iterable of float) – Percentiles added to each row (
p10,p50,p90).rank (str, optional) – Keep one level of a hierarchical tops table (
"formation").**zone_options – Passed to
petrophys.read_formations(), e.g.sheet_name,columns={"formation_name": "Surface", "top_depth": "MD"}orwell_namefor a multi-well table.
- Returns:
One row per zone and curve:
zone,top,bottom,thickness,curve,unit,samples(in the zone),coverage(percent with a value) and thecurve_statistics()of the finite samples. A sample at a boundary belongs to the zone below it.- Return type: