Dataframe - Plotting well log data#

Import Pandas

[1]:
import pandas as pd

Create a dataframe from a csv file containing well log data

[2]:
df = pd.read_csv("welllogs.csv")

Print the head of the dataframe

[3]:
df.head()
[3]:
CALIPER NG True vertical thickness 1 True stratigraphic thickness 1 Time 1 NetGross Porosity Gamma Perm DEPTH TWT (Vo) Facies Fluvial facies Zone log linked to 'Well Tops' Zones (hierarchy) MD TWT TVD
0 NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN NaN UNDEF UNDEF UNDEF UNDEF -1690.643701 -0.072525 -0.075489
1 NaN NaN NaN NaN 0.079441 NaN NaN NaN NaN NaN NaN UNDEF UNDEF UNDEF UNDEF -1690.143701 0.153068 0.159324
2 NaN NaN NaN NaN 0.196519 NaN NaN NaN NaN NaN NaN UNDEF UNDEF UNDEF UNDEF -1689.643701 0.378660 0.394136
3 NaN NaN NaN NaN 0.313596 NaN NaN NaN NaN NaN NaN UNDEF UNDEF UNDEF UNDEF -1689.143701 0.604253 0.628949
4 NaN NaN NaN NaN 0.430672 NaN NaN NaN NaN NaN NaN UNDEF UNDEF UNDEF UNDEF -1688.643701 0.829846 0.863762

Import CegalPrizm Investigator and connect to Investigator

[4]:
import cegalprizm.investigator as investigator
from cegalprizm.investigator import InvestigatorConnection
from cegalprizm.investigator.views import *

invconnection = InvestigatorConnection(use_licensed_features=True)

Create a new investigation from the dataframe containing the well log data

[5]:
inv = invconnection.investigation_from_dataframe(df)

Create a log tracks view from the investigation and plot it

[6]:
view = LogTracksView(inv)
investigator.plot(view)
[6]:
../../../../../_images/products_Investigator_Workbooks_Tutorials_Dataframes_WellLogs_12_0.png
[ ]: