.. DO NOT EDIT. .. THIS FILE WAS AUTOMATICALLY GENERATED BY SPHINX-GALLERY. .. TO MAKE CHANGES, EDIT THE SOURCE PYTHON FILE: .. "tutorial-quick/eg_04_quick_tf.py" .. LINE NUMBERS ARE GIVEN BELOW. .. only:: html .. note:: :class: sphx-glr-download-link-note Click :ref:`here ` to download the full example code .. rst-class:: sphx-glr-example-title .. _sphx_glr_tutorial-quick_eg_04_quick_tf.py: Transfer functions ^^^^^^^^^^^^^^^^^^ When doing field work, it can be useful to quickly estimate the transfer function from a single continuous recording. This example shows estimation of the transfer function using all default settings. The default transfer function is the impedance tensor and this will be calculated. Later, the data will be re-processed using an alternative configuration. The dataset in this example has been provided for use by the SAMTEX consortium. For more information, please refer to [Jones2009]_. Additional details about the dataset can be found at https://www.mtnet.info/data/kap03/kap03.html. .. GENERATED FROM PYTHON SOURCE LINES 15-21 .. code-block:: default from pathlib import Path import seedir as sd import plotly import resistics.letsgo as letsgo .. GENERATED FROM PYTHON SOURCE LINES 22-23 Define the data path. This is dependent on where the data is stored. .. GENERATED FROM PYTHON SOURCE LINES 23-26 .. code-block:: default time_data_path = Path("..", "..", "data", "time", "quick", "kap123") sd.seedir(str(time_data_path), style="emoji") .. rst-class:: sphx-glr-script-out Out: .. code-block:: none 📁 kap123/ ├─📄 data.npy └─📄 metadata.json .. GENERATED FROM PYTHON SOURCE LINES 27-28 Now calculate the transfer function, in this case the impedance tensor .. GENERATED FROM PYTHON SOURCE LINES 28-40 .. code-block:: default soln = letsgo.quick_tf(time_data_path) fig = soln.tf.plot( soln.freqs, soln.components, to_plot=["ExHy", "EyHx"], x_lim=[1, 5], res_lim=[0, 4], legend="128", symbol="circle", ) fig.update_layout(height=900) plotly.io.show(fig) .. raw:: html :file: images/sphx_glr_eg_04_quick_tf_001.html .. rst-class:: sphx-glr-script-out Out: .. code-block:: none 0%| | 0/20 [00:00` .. container:: sphx-glr-download sphx-glr-download-jupyter :download:`Download Jupyter notebook: eg_04_quick_tf.ipynb ` .. only:: html .. rst-class:: sphx-glr-signature `Gallery generated by Sphinx-Gallery `_