petro-python














































petro-python



petro_py:
v1.0.2
A python package created by Ahmed alkhatim for petroleum computations with two sub modules for
Reservoir
Production
Beside :
Oilfied Module: for gitting general and quick information about oilfield data
Installation
pip install petro-python
How it works
import petro_py as ptr
Initializing an Oil Field module
  field = ptr.OilField("path_to_file")
The OilField module instantiate an OilField class and then an_oil_field variable can access all the API of of OilField such as:

field.wells
field.number_of_wells
field.n_production_wells
field.injection_wells
field.n_injection_wells
field.converted_wells
as well as quick_view() method that give a quick view about your field
Exapmle
for Volve dataset the output will be

  volve = ptr.OilField(file)
  
  volve.number_of_wells  # 7

  volve.production_wells
  # array(['15/9-F-1 C', '15/9-F-11', '15/9-F-12', '15/9-F-14', '15/9-F-15 D', '15/9-F-5'], dtype=object)
  
  volve.n_production_wells # 6

  volve.injection_wells
  # array(['15/9-F-4', '15/9-F-5'], dtype=object)

  volve.n_injection_wells # 2

  volve.converted_wells 
  # ['15/9-F-5']

  volve.quick_view()
  # number_of_wells : 7 number_of_columns : 18 number_of_records: 15634
  

Comments