API Reference¶
The API for petrelpy is split by format between Petrel file formats such as
ev, vol, and prn, the gslib format, Eclipse’s wcf format, and the CLI section.
Petrelpy by file format¶
Getting data into Petrel¶
|
Export production volumes to Petrel-readable .vol format file. |
|
Export injection volumes to Petrel-readable .vol format file. |
|
Export perforations in ev (event file) format. |
|
Export perforations in prn (fixed) format. |
|
Write header information to a Petrel-readable header file. |
|
Read headers from a file. |
|
Write top picks to Petrel-readable file. |
|
Group perforations by well. |
|
Get raw data from infile (even if infile is several files). |
|
Ingest excel, prn, or csv file. |
Using Petrel exports¶
|
Make Midland basin Petrel gslib file Arc-readable. |
|
Read Petrel tops file. |
|
Load GSLIB geomodel file. |
|
Find cell columns where UWI-index exists in the geomodel. |
|
Load in petrel tops file and return pandas dataframe. |
|
Give each well in df_wells the i,j,k index of the nearest cell in df_cells. |
|
Merge geomodel with wells to assign properties to wells. |
|
Find average geocellular properties about well midpoint. |
|
Get aggregated statistics for different facies and zones. |
|
Calculate histogram of original oil in place for geomodel by zone, facies, properties. |
|
Get average properties along the laterals for a well connection file. |
|
Get average properties along the well lateral from the geomodel. |
|
Get all the well names from a well connection file. |
|
Get columns used for well trajectory. |
|
Get trajectory for a well from the well connection file. |
|
Get section of well connection file for well. |
|
Get well's name from string. |
Command Line Interface¶
Some documentation for the CLI tools are here (but you’re better off checking Getting started):