stacking_pattern¶
petrophys.evaluation.intervals.stacking_pattern
- stacking_pattern(values, mnemonic=None, min_change=None)[source]¶
Steps and packages of zone values read from base to top.
- Parameters:
values (sequence of float) – One value per zone (e.g. zone-mean GR), base zone first.
mnemonic (str, optional) – The curve, for its smallest counting step (
MIN_STEP).min_change (float, optional) – The smallest change that counts as a step. Default: 10% of the range of the values, at least the curve’s
MIN_STEP.
- Returns:
threshold;changesandstepsper zone (the change from the zone below, and"cleaner","dirtier","no change"or""for the base zone or a missing value);packages, eachstartandend(zone indices, base first) andkind:"cleaning_up","dirtying_up"(two or more steps in one direction),"abrupt_decrease"or"abrupt_increase"(one step).- Return type:
Examples
>>> p = stacking_pattern([90.0, 70.0, 50.0, 52.0, 85.0], "GR") >>> p["steps"], [(q["start"], q["end"], q["kind"]) for q in p["packages"]] (['', 'cleaner', 'cleaner', 'no change', 'dirtier'], [(0, 2, 'cleaning_up'), (3, 4, 'abrupt_increase')])