.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "glr_examples/applications/plot_dc_em_parameters_computing.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_applications_plot_dc_em_parameters_computing.py: ========================================== EM, DC, and Hydro parameters computing ========================================== Real-world examples for showing the computation of EM tensor, DC parameters and how to implement the mixture learning strategy (MXS) from the naive aquifer group (NGA) for the permeability coefficient k prediction. .. GENERATED FROM PYTHON SOURCE LINES 10-13 .. code-block:: Python # Author: L.Kouadio # Licence: BSD-3-clause .. GENERATED FROM PYTHON SOURCE LINES 14-15 Import required modules .. GENERATED FROM PYTHON SOURCE LINES 15-40 .. code-block:: Python import numpy as np import matplotlib.pyplot as plt plt_style ='classic' # Load real data collected during the drinking water supply campaign # occured in 2012-2014 in Cote d'Ivoire. Read more in the dataset # module ( :mod:`~watex.datasets`) from watex.datasets import ( load_edis, load_gbalo, load_semien, load_tankesse, load_boundiali ) # Real logging data collected in Hongliu coal mine, in China, Hunan province from watex.datasets import load_hlogs from watex.methods import( DCProfiling, DCSounding, ResistivityProfiling, VerticalSounding,EMAP , Logging, MXS ) .. GENERATED FROM PYTHON SOURCE LINES 41-65 EM :mod:`~watex.methods.em` ============================ The EM module is related to a few meter exploration in the case of groundwater exploration. The module provides some basic EMAP steps for EMAP data filtering and removing noises. Commonly the method mostly used in groundwater exploration is the audio-magnetotelluric because of the shortest frequency and rapid executions. Furthermore, we can also list some other advantages such as: * is useful for imaging both deep geologic structure and near-surface geology and can provide significant details. * includes a backpack portable system that allows for use in difficult terrain. * the technique requires no high-voltage electrodes, and logistics are relatively easy to support in the field. Stations can be acquired almost anywhere and can be placed any distance apart. This allows for large-scale regional reconnaissance exploration or detailed surveys of local geology and has no environmental impact :note: For deep implementation or exploring a large scale of EM/AMT data EMAP, it is recommended to use the package `pycsamt `_. Create EM object as a collection of EDI-file. Collect edi-files and create an EM object. It sets he properties from audio-magnetotelluric. The two(2) components XY and YX will be set and calculated.Can read MT data instead, however, the full handling transfer function like Tipper and Spectra is not completed. Use other MT software for a long period's data. .. GENERATED FROM PYTHON SOURCE LINES 65-90 .. code-block:: Python from watex.methods.em import EM edi_data = load_edis (return_data =True, samples =7) # object from Edi_collection emObjs = EM().fit(edi_data) ref=emObjs.getfullfrequency () ref emObjs.freqs_ # # however full frequency can just be fetched using the attribute `freqs_` # get the reference frequency rfreq = emObjs.getreferencefrequency () rfreq # Fast process EMAP and AMT data. Tools are used for data sanitizing, # removing noises and filtering. p = EMAP().fit(edi_data) p.window_size =2 p.component ='yx' rc= p.tma() # get the resistivity value of the third frequency at all stations # >>> p.res2d_[3, :] # get the resistivity value corrected at the third frequency # >>> rc [3, :] .. GENERATED FROM PYTHON SOURCE LINES 91-92 Plot 1D raw and corrected tensor .. GENERATED FROM PYTHON SOURCE LINES 92-94 .. code-block:: Python plt.semilogy (np.arange (p.res2d_.shape[1] ), p.res2d_[3, :], '--', np.arange (p.res2d_.shape[1] ), rc[3, :], 'ok--') .. image-sg:: /glr_examples/applications/images/sphx_glr_plot_dc_em_parameters_computing_001.png :alt: plot dc em parameters computing :srcset: /glr_examples/applications/images/sphx_glr_plot_dc_em_parameters_computing_001.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none [, ] .. GENERATED FROM PYTHON SOURCE LINES 95-126 .. code-block:: Python # Compute the skew: The conventional asymmetry parameter based on the Z magnitude. # p = EMAP().fit(edi_data) # sk,_ = p.skew() # sk[0:, ] # restore tensor pObjs= EMAP().fit(edi_data) # One can specify the frequency buffer like the example below, however # it is not necessary at least there is a specific reason to fix the frequencies # buffer = [1.45000e+04,1.11500e+01] zobjs_b = pObjs.zrestore( # buffer = buffer ) zobjs_b # control the quality of the EM data # pobj = EMAP().fit(edi_data) # f = pobj.getfullfrequency () # # len(f) # # ... 55 # 55 frequencies # c, = pobj.qc ( tol = .6 ) # mean 60% to consider the data as # # representatives # c # the representative rate in the whole EDI- collection # # ... 0.95 # the whole data at all stations is safe to 95%. # # now check the interpolated frequency # c, freq_new, = pobj.qc ( tol=.6 , return_freq =True) # # len(freq_new) # # ... 53 # delete two frequencies .. rst-class:: sphx-glr-script-out .. code-block:: none array([, , , , , , ], dtype=object) .. GENERATED FROM PYTHON SOURCE LINES 127-135 DC-method :mod:`~watex.methods.electrical` ================================================ A collection of DC-resistivity profiling and sounding classes. It reads and computes electrical parameters. Each line or site composes a specific object and gathers all the attributes of :class:`~.ResistivityProfiling` or :class:`~watex.methods.electrical.VerticalSounding` for easy use. For instance, the expected drilling location point and its resistivity value for two survey lines ( line1 and line2) can be fetched .. GENERATED FROM PYTHON SOURCE LINES 137-140 DC -Profiling ---------------- * Get DC -resistivity profiling from the individual Resistivity object .. GENERATED FROM PYTHON SOURCE LINES 140-157 .. code-block:: Python robj1= ResistivityProfiling(auto=True) # auto detection robj1.utm_zone = '50N' data = load_tankesse () robj1.fit(load_tankesse ()) print(robj1.sves_ ) robj2= ResistivityProfiling(auto=True, utm_zone='40S') robj2.fit(load_gbalo()) print(robj2.sves_ ) # read the both objects dcobjs = DCProfiling() dcobjs.fit(robj1, robj2) print(dcobjs.sves_ ) print(dcobjs.line1.sves_) print(dcobjs.line2.sves_ ) .. rst-class:: sphx-glr-script-out .. code-block:: none S022 S036 dc-erp : 0%| | 0/2 [00:00 .. GENERATED FROM PYTHON SOURCE LINES 161-162 Plot conductive zones for second lines .. GENERATED FROM PYTHON SOURCE LINES 162-163 .. code-block:: Python robj2.plotAnomaly ( style = plt_style ) .. image-sg:: /glr_examples/applications/images/sphx_glr_plot_dc_em_parameters_computing_003.png :alt: Plot ERP: SVES = S36 :srcset: /glr_examples/applications/images/sphx_glr_plot_dc_em_parameters_computing_003.png :class: sphx-glr-single-img .. rst-class:: sphx-glr-script-out .. code-block:: none .. GENERATED FROM PYTHON SOURCE LINES 164-165 * Get parameters .. GENERATED FROM PYTHON SOURCE LINES 165-167 .. code-block:: Python robj1.summary(return_table=True ) .. raw:: html
dipole longitude latitude easting northing sves_resistivity power magnitude shape type sfi
station
S022 10 109 -81 382775 896164 34 60 53 C PC 0.31221


.. GENERATED FROM PYTHON SOURCE LINES 168-171 DC Sounding ------------- * Read single sounding site .. GENERATED FROM PYTHON SOURCE LINES 171-177 .. code-block:: Python dsobj = DCSounding () dsobj.search = 30. # start detecting the fracture zone from 30m depth. dsobj.fit(load_gbalo(kind ='ves')) print(dsobj.ohmic_areas_) print(dsobj.site1.fractured_zone_ ) .. rst-class:: sphx-glr-script-out .. code-block:: none dc-ves : 0%| | 0/1 [00:00` .. container:: sphx-glr-download sphx-glr-download-python :download:`Download Python source code: plot_dc_em_parameters_computing.py ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_