IntervalAnalyzer

petrophys.evaluation.intervals.IntervalAnalyzer

class IntervalAnalyzer(
well,
net_pay_curve='NET_PAY',
net_reservoir_curve='NET_RES',
net_rock_curve='NET_ROCK',
)[source]

Compute petrophysical summaries for depth intervals.

Delegates net-pay math to calculate_zone_summary from petrophys.evaluation.summaries and adds whole-interval curve averages, dominant lithology, and data coverage.

Parameters:
  • well (Well) – Well object with computed curves (VCL, PHIE, SW, PERM, NET_PAY, etc.)

  • net_pay_curve (str) – Name of the net pay flag curve

  • net_reservoir_curve (str) – Name of the net reservoir flag curve

  • net_rock_curve (str) – Name of the net rock flag curve

Examples

>>> from petrophys.evaluation.intervals import IntervalAnalyzer, Formation
>>> analyzer = IntervalAnalyzer(well)
>>> summary = analyzer.analyze(Formation("Brent Group", 2841, 2958))
>>> print(summary.zone_summary.net_pay)

Methods

analyze

Compute summary for a single interval.

analyze_all

Analyze all intervals in a collection.

print_report

Print a formatted summary report to stdout.

to_csv

Export results to CSV.

to_dataframe

Convert analysis results to a pandas DataFrame.

analyze(interval, include_bottom=True)[source]

Compute summary for a single interval.

Parameters:
  • interval (Interval) – Depth interval to analyze

  • include_bottom (bool) – Count a sample at the interval’s bottom depth

Return type:

IntervalSummary

analyze_all(tops, clip_to_well=True)[source]

Analyze all intervals in a collection.

Parameters:
Return type:

list of IntervalSummary

static to_dataframe(summaries)[source]

Convert analysis results to a pandas DataFrame.

Parameters:

summaries (list of IntervalSummary)

Return type:

pd.DataFrame

static to_csv(summaries, filepath)[source]

Export results to CSV.

Parameters:
Return type:

None

static print_report(summaries)[source]

Print a formatted summary report to stdout.

Parameters:

summaries (List[IntervalSummary])

Return type:

None