petrelpy.cli

Command line tool for working with Petrel input and output formats.

Functions

cli()

Command line tool for working with Petrel input and output formats.

production(input, output, yearly, zip)

Convert IHS production spreadsheet to Petrel vol format.

connection(input, output, heel)

Process well connection file to average geomodel properties.

perforation(input, output, header, date_col, sheetname)

Create petrel perforation file.

gslib(gslib_file, output, output_format)

Process GSLIB geocellular model file to spreadsheet.

Module Contents

petrelpy.cli.cli()

Command line tool for working with Petrel input and output formats.

petrelpy.cli.production(input: click.Path, output: click.Path, yearly: bool, zip: bool)

Convert IHS production spreadsheet to Petrel vol format.

This allows production to be easily imported into Petrel.

petrelpy.cli.connection(input: click.Path, output: click.Path, heel: click.Path)

Process well connection file to average geomodel properties.

This gets well properties from Petrel (in an Eclipse format) into a spreadsheet.

petrelpy.cli.perforation(input: tuple[click.Path], output: click.Path, header: str, date_col: str, sheetname: str | int)

Create petrel perforation file.

Takes csv, excel, or prn files as input. Expected columns include: API, Treatment Start Date, start_depth, stop_depth

Produces .ev (default) or .prn file

petrelpy.cli.gslib(gslib_file: str, output: str | None, output_format: str)

Process GSLIB geocellular model file to spreadsheet.

Defaults to writing a parquet format to ease further manipulation with python, but csv is also supported.