fipreports

fipreports is a parser for the PRT output file, extracting data from these tables:

  REPORT   0     1 JAN 2000
                                                =================================
                                                : FIPZON  REPORT REGION    2    :
                                                :     PAV =        139.76  BARSA:
                                                :     PORV=     27777509.   RM3 :
                           :--------------- OIL    SM3  ---------------:-- WAT    SM3  -:--------------- GAS    SM3  ---------------:
                           :     LIQUID         VAPOUR         TOTAL   :       TOTAL    :       FREE      DISSOLVED         TOTAL   :
 :-------------------------:-------------------------------------------:----------------:-------------------------------------------:
 :CURRENTLY IN PLACE       :     21091398.                    21091398.:       4590182. :           -0.    483594842.     483594842.
 :-------------------------:-------------------------------------------:----------------:-------------------------------------------:
 :OUTFLOW TO OTHER REGIONS :        76266.                       76266.:         75906. :            0.      1818879.       1818879.
 :OUTFLOW THROUGH WELLS    :                                         0.:             0. :                                         0.
 :MATERIAL BALANCE ERROR.  :                                         0.:             0. :                                         0.
 :-------------------------:-------------------------------------------:----------------:-------------------------------------------:
 :ORIGINALLY IN PLACE      :     21136892.                    21136892.:       4641214. :            0.    484657561.     484657561.
 :-------------------------:-------------------------------------------:----------------:-------------------------------------------:
 :OUTFLOW TO REGION   1    :       143128.                      143128.:       -161400. :            0.      3017075.       3017075.
 :OUTFLOW TO REGION   3    :       -66862.                      -66862.:        198900. :           -0.     -1198195.      -1198195.
 :OUTFLOW TO REGION   8    :            0.                           0.:         38405. :            0.            0.             0.
 ====================================================================================================================================

This table found in a PRT file will be parsed to the following dataframe:

FIPZON table from PRT file

DATE

FIPNAME

REGION

DATATYPE

TO_REGION

STOIIP_OIL

ASSOCIATEDOIL_GAS

STOIIP_TOTAL

WATER_TOTAL

GIIP_GAS

ASSOCIATEDGAS_OIL

GIIP_TOTAL

2000-01-01

FIPZON

2

CURRENTLY IN PLACE

21091398.0

21091398.0

4590182.0

-0.0

483594842.0

483594842.0

2000-01-01

FIPZON

2

OUTFLOW TO OTHER REGIONS

76266.0

76266.0

75906.0

0.0

1818879.0

1818879.0

2000-01-01

FIPZON

2

OUTFLOW THROUGH WELLS

0.0

0.0

0.0

2000-01-01

FIPZON

2

MATERIAL BALANCE ERROR.

0.0

0.0

0.0

2000-01-01

FIPZON

2

ORIGINALLY IN PLACE

21136892.0

21136892.0

4641214.0

0.0

484657561.0

484657561.0

2000-01-01

FIPZON

2

OUTFLOW TO REGION

1.0

143128.0

143128.0

-161400.0

0.0

3017075.0

3017075.0

2000-01-01

FIPZON

2

OUTFLOW TO REGION

3.0

-66862.0

-66862.0

198900.0

-0.0

-1198195.0

-1198195.0

2000-01-01

FIPZON

2

OUTFLOW TO REGION

8.0

0.0

0.0

38405.0

0.0

0.0

0.0

In this particular example, FIPZON was selected explicitly, either using the command line client or the Python API through an option to the res2df.fipreports.df() function.

Using this module is easiest through res2csv fipreports.