Plotting API - Log tracks (Geo-technical)#

This notebook provides the user a guide to how log tracks can be shown using a Blueback Investigation. Check out the API documentation to view all the functions available for the log tracks view:

Import dependencies :

[1]:
import cegalprizm.investigator as investigator
from cegalprizm.investigator import InvestigatorConnection
from cegalprizm.investigator.views import LogTracksView

Connect to investigator and assign the investigation to a variable :

[2]:
invconnection = InvestigatorConnection(use_licensed_features=True)
inv = invconnection.investigation_from_file("Wells.invpy")

To create a log tracks view of the investigation use the LogTracksView() function with the investigation(inv) as the input parameter. To plot the view, use the .plot() function which takes as input parameters the specific view, in this case the log tracks view. You can also provide the width (defaults to 900) and the height (defaults to 600) of the figure.

[3]:
logtracks_view=LogTracksView(inv)
investigator.plot(logtracks_view)
[3]:
../../../../_images/products_Investigator_Workbooks_UserGuide_Plotting-LogTracks_7_0.png

You can fill the continous tracks using the .show_continuous_fill function:

[4]:
logtracks_view=LogTracksView(inv)

logtracks_view.show_continuous_fill(True)

investigator.plot(logtracks_view)
[4]:
../../../../_images/products_Investigator_Workbooks_UserGuide_Plotting-LogTracks_9_0.png

By default, LogTracksView will plot all the logs in the investigation. You can select the data you want to plot using the .set_properties function:

[5]:
logtracks_view=LogTracksView(inv)

logtracks_view.show_continuous_fill(True)

logtracks_view.set_properties(['Porosity','Perm','Facies'])

investigator.plot(logtracks_view)
[5]:
../../../../_images/products_Investigator_Workbooks_UserGuide_Plotting-LogTracks_11_0.png

By default, the LogTracksView will plot all the logs coming from all the wells in the investigation. You can choose the wells you want to use in your plot with the .set_boreholes() function:

[6]:
logtracks_view=LogTracksView(inv)

logtracks_view.show_continuous_fill(True)

logtracks_view.set_properties(['Porosity','Perm','Facies'])

logtracks_view.set_boreholes(['B9'])

investigator.plot(logtracks_view)
[6]:
../../../../_images/products_Investigator_Workbooks_UserGuide_Plotting-LogTracks_13_0.png

By default, the LogTracksView will group all tracks by wells. You can change this using the .group_tracks_by() function:

[7]:
logtracks_view=LogTracksView(inv)
logtracks_view.show_continuous_fill(True)
logtracks_view.set_properties(['Porosity','Perm'])

logtracks_view.group_tracks_by('property')

investigator.plot(logtracks_view)
[7]:
../../../../_images/products_Investigator_Workbooks_UserGuide_Plotting-LogTracks_15_0.png

The .copy() function returns a copy of the log tracks view. This can be used to ensure that a common view setup can be the applied to multiple related views.