.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "advanced_examples/rock_physics_screening.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note :ref:`Go to the end ` to download the full example code. .. rst-class:: sphx-glr-example-title .. _sphx_glr_advanced_examples_rock_physics_screening.py: Rock physics data screening =========================== .. GENERATED FROM PYTHON SOURCE LINES 7-17 .. code-block:: Python import numpy as np import matplotlib.pyplot as plt import pandas as pd plt.rcParams['font.size']=14 plt.rcParams['font.family']='arial' plt.rcParams['axes.labelpad'] = 10.0 .. GENERATED FROM PYTHON SOURCE LINES 18-26 .. code-block:: Python # import the module from rockphypy import QI .. GENERATED FROM PYTHON SOURCE LINES 27-31 Given tons of petrophysical properties meaured or derived e.g. from well logs, data screening is inevitably required for later intepretation and scenerial modelling. The purpose of data screening is to identify and address any errors, inconsistencies, or missing data in the dataset before any analysis is conducted. Avseth et al. (2020) proposed a rock physics model-based data screening approach. Several contact based elastic models are used to generate elastic bounds for high-porosity sands and sandstones (typical reservoir sandstone). These elastic bounds can tell if data comply with physics. Rock physics diagnostic models used are ``friable sand model``,``contact cement model`` and ``increasing cement model``, ``rockphypy`` provides all the implementations. In addition, ``rockphypy`` has written the code used to plot the elastic bounds as a function ``QI.screening``, ``QI`` stands for Quantitative Intepretation. There are many practically useful functionalities in this submodule. .. GENERATED FROM PYTHON SOURCE LINES 33-54 .. code-block:: Python # parameters Dqz, Kqz, Gqz = 2.65, 36.6, 45 ## grain density, bulk and shear modulus Dsh, Ksh, Gsh = 2.7, 21, 7 # shale/clay density, bulk and shear modulus Dc,Kc, Gc =2.65, 36.6, 45 # cement density, bulk and shear modulus Db, Kb = 1, 2.2 # brine density, bulk modulus Do, Ko = 0.8, 1.5 # oil density, bulk modulus Dg, Kg = 0.2, 0.06 # gas density, bulk modulus phi_c=0.4 # critical porosity sigma=20 # effective pressure scheme=2 Cn=8.6 # could be array vsh=0 # shale volume #phib_p=[0.3,0.36,0.38,0.39] # define cement porosity for Vp phib_p=0.3 f= 0.5 # slip factor .. GENERATED FROM PYTHON SOURCE LINES 55-59 Applied to field data ^^^^^^^^^^^^^^^^^^^^^ Let's import some synthetic well log data and apply the rock physics screening to the well log data .. GENERATED FROM PYTHON SOURCE LINES 61-79 .. code-block:: Python # read data data = pd.read_csv('../../data/well/sandstone.csv',index_col=0) # compute the elastic bounds phi,vp1,vp2,vp3,vs1,vs2,vs3 = QI.screening(Dqz,Kqz,Gqz,Dsh,Ksh,Gsh,Dc,Kc,Gc,Db,Kb,phib_p,phi_c,sigma,vsh,scheme,f, Cn) # create an object with data qi= QI(data.VP,phi=data.PHIT_ND,Vsh= data.VSH_GR) # call the screening plot method fig=qi.screening_plot(phi,vp1,vp2,vp3) plt.ylim([1900,6100]) plt.yticks(np.arange(2000,6200, 1000),[2,3,4,5,6]) plt.ylabel('Vp (Km/s)') plt.xlim(-0.01,0.51) .. image-sg:: /advanced_examples/images/sphx_glr_rock_physics_screening_001.png :alt: rock physics screening :srcset: /advanced_examples/images/sphx_glr_rock_physics_screening_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none (-0.01, 0.51) .. GENERATED FROM PYTHON SOURCE LINES 80-82 **Reference** - Avseth, P., Lehocki, I., Kjøsnes, Ø., & Sandstad, O. (2021). Data‐driven rock physics analysis of North Sea tertiary reservoir sands. Geophysical Prospecting, 69(3), 608-621. .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.092 seconds) .. _sphx_glr_download_advanced_examples_rock_physics_screening.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: rock_physics_screening.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: rock_physics_screening.py ` .. container:: sphx-glr-download sphx-glr-download-zip :download:`Download zipped: rock_physics_screening.zip ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_