.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "glr_examples/utils/plot_erp.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 or to run this example in your browser via Binder .. rst-class:: sphx-glr-example-title .. _sphx_glr_glr_examples_utils_plot_erp.py: ================================================ Plot electrical resistivity profiling (ERP) ================================================ shows the ERP and selected conductive zone. .. GENERATED FROM PYTHON SOURCE LINES 8-11 .. code-block:: Python # Author: L.Kouadio # Licence: BSD-3-clause .. GENERATED FROM PYTHON SOURCE LINES 12-15 Generate synthetic data and plot the without any selected conductive zone. The synthetic ERP data can be generated using the function :func:`~watex.datasets.make_erp` .. GENERATED FROM PYTHON SOURCE LINES 15-22 .. code-block:: Python from watex.datasets import make_erp from watex.utils.coreutils import plotAnomaly, defineConductiveZone test_array = make_erp (stations = 30, seed = 0).frame.resistivity # test_array = np.abs (np.random.randn (10) ) *1e2 plotAnomaly(test_array, style ="dark_background") .. image-sg:: /glr_examples/utils/images/sphx_glr_plot_erp_001.png :alt: Plot ERP :srcset: /glr_examples/utils/images/sphx_glr_plot_erp_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none .. GENERATED FROM PYTHON SOURCE LINES 23-26 The conductive zone can be supplied mannualy as a subset of the `erp` or by specifying the station expected for drilling location. .. GENERATED FROM PYTHON SOURCE LINES 26-29 .. code-block:: Python selected_cz ,*_ = defineConductiveZone(test_array, station=7) plotAnomaly(test_array, selected_cz , style ='dark_background') .. image-sg:: /glr_examples/utils/images/sphx_glr_plot_erp_002.png :alt: Plot ERP :srcset: /glr_examples/utils/images/sphx_glr_plot_erp_002.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none .. GENERATED FROM PYTHON SOURCE LINES 30-32 Automatic detect the position for making a drill by setting the `station` parameter to `auto`. .. GENERATED FROM PYTHON SOURCE LINES 32-44 .. code-block:: Python plotAnomaly(test_array, station= 'auto', style ='dark_background') # Note # ------ # The auto-detection can be used when users need to propose a place to # make a drill. Commonly for a real case study, it is recommended to # specify the station where the drilling operation was performed through # the parameter `station`. For instance, automatic drilling location detection # can predict a station located in a marsh area that is not a suitable place # for making a drill. Therefore, to avoid any misinterpretation due to the # complexity of the geological area, it is useful to provide the station # position. .. image-sg:: /glr_examples/utils/images/sphx_glr_plot_erp_003.png :alt: Plot ERP: SVES = S41 :srcset: /glr_examples/utils/images/sphx_glr_plot_erp_003.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none .. rst-class:: sphx-glr-timing **Total running time of the script:** (0 minutes 0.688 seconds) .. _sphx_glr_download_glr_examples_utils_plot_erp.py: .. only:: html .. container:: sphx-glr-footer sphx-glr-footer-example .. container:: binder-badge .. image:: images/binder_badge_logo.svg :target: https://mybinder.org/v2/gh/watex/watex/0.3.X?urlpath=lab/tree/notebooks/glr_examples/utils/plot_erp.ipynb :alt: Launch binder :width: 150 px .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: plot_erp.ipynb ` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_erp.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_