|
| 1 | + |
| 2 | + |
1 | 3 | <!DOCTYPE html> |
2 | | -<html class="writer-html5" lang="en" > |
| 4 | +<html class="writer-html5" lang="en" data-content_root="../../"> |
3 | 5 | <head> |
4 | 6 | <meta charset="utf-8" /> |
5 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0" /> |
6 | 8 | <title>Hydro_modular.hydro_to_ert — PyHydroGeophysX Documentation</title> |
7 | | - <link rel="stylesheet" href="../../_static/pygments.css" type="text/css" /> |
8 | | - <link rel="stylesheet" href="../../_static/css/theme.css" type="text/css" /> |
9 | | - <link rel="stylesheet" href="../../_static/copybutton.css" type="text/css" /> |
10 | | - <link rel="stylesheet" href="../../_static/sg_gallery.css" type="text/css" /> |
11 | | - <link rel="stylesheet" href="../../_static/sg_gallery-binder.css" type="text/css" /> |
12 | | - <link rel="stylesheet" href="../../_static/sg_gallery-dataframe.css" type="text/css" /> |
13 | | - <link rel="stylesheet" href="../../_static/sg_gallery-rendered-html.css" type="text/css" /> |
14 | | - <link rel="canonical" href="https://geohang.github.io/PyHydroGeophysX/_modules/Hydro_modular/hydro_to_ert.html" /> |
15 | | - <!--[if lt IE 9]> |
16 | | - <script src="../../_static/js/html5shiv.min.js"></script> |
17 | | - <![endif]--> |
| 9 | + <link rel="stylesheet" type="text/css" href="../../_static/pygments.css?v=b86133f3" /> |
| 10 | + <link rel="stylesheet" type="text/css" href="../../_static/css/theme.css?v=e59714d7" /> |
| 11 | + <link rel="stylesheet" type="text/css" href="../../_static/sg_gallery.css?v=d2d258e8" /> |
| 12 | + <link rel="stylesheet" type="text/css" href="../../_static/sg_gallery-binder.css?v=f4aeca0c" /> |
| 13 | + <link rel="stylesheet" type="text/css" href="../../_static/sg_gallery-dataframe.css?v=2082cf3c" /> |
| 14 | + <link rel="stylesheet" type="text/css" href="../../_static/sg_gallery-rendered-html.css?v=1277b6f3" /> |
| 15 | + |
18 | 16 |
|
19 | | - <script src="../../_static/jquery.js?v=5d32c60e"></script> |
20 | | - <script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> |
21 | | - <script data-url_root="../../" id="documentation_options" src="../../_static/documentation_options.js?v=2389946f"></script> |
22 | | - <script src="../../_static/doctools.js?v=888ff710"></script> |
23 | | - <script src="../../_static/sphinx_highlight.js?v=4825356b"></script> |
24 | | - <script src="../../_static/clipboard.min.js?v=a7894cd8"></script> |
25 | | - <script src="../../_static/copybutton.js?v=f281be69"></script> |
26 | | - <script crossorigin="anonymous" integrity="sha256-Ae2Vz/4ePdIu6ZyI/5ZGsYnb+m0JlOmKPjt6XZ9JJkA=" src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.4/require.min.js"></script> |
| 17 | + <link rel="canonical" href="https://geohang.github.io/PyHydroGeophysX/_modules/Hydro_modular/hydro_to_ert.html" /> |
| 18 | + <script src="../../_static/jquery.js?v=5d32c60e"></script> |
| 19 | + <script src="../../_static/_sphinx_javascript_frameworks_compat.js?v=2cd50e6c"></script> |
| 20 | + <script src="../../_static/documentation_options.js?v=01f34227"></script> |
| 21 | + <script src="../../_static/doctools.js?v=9bcbadda"></script> |
| 22 | + <script src="../../_static/sphinx_highlight.js?v=dc90522c"></script> |
27 | 23 | <script src="../../_static/js/theme.js"></script> |
28 | 24 | <link rel="index" title="Index" href="../../genindex.html" /> |
29 | 25 | <link rel="search" title="Search" href="../../search.html" /> |
@@ -90,18 +86,20 @@ <h1>Source code for Hydro_modular.hydro_to_ert</h1><div class="highlight"><pre> |
90 | 86 | <span></span><span class="sd">"""</span> |
91 | 87 | <span class="sd">Module for converting hydrologic model output to ERT apparent resistivity.</span> |
92 | 88 | <span class="sd">"""</span> |
93 | | -<span class="kn">import</span> <span class="nn">os</span> |
94 | | -<span class="kn">import</span> <span class="nn">numpy</span> <span class="k">as</span> <span class="nn">np</span> |
95 | | -<span class="kn">import</span> <span class="nn">pygimli</span> <span class="k">as</span> <span class="nn">pg</span> |
96 | | -<span class="kn">from</span> <span class="nn">pygimli.physics</span> <span class="kn">import</span> <span class="n">ert</span> |
97 | | -<span class="kn">from</span> <span class="nn">typing</span> <span class="kn">import</span> <span class="n">Tuple</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Union</span><span class="p">,</span> <span class="n">List</span> |
| 89 | +<span class="kn">import</span><span class="w"> </span><span class="nn">os</span> |
| 90 | +<span class="kn">import</span><span class="w"> </span><span class="nn">numpy</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">np</span> |
| 91 | +<span class="kn">import</span><span class="w"> </span><span class="nn">pygimli</span><span class="w"> </span><span class="k">as</span><span class="w"> </span><span class="nn">pg</span> |
| 92 | +<span class="kn">from</span><span class="w"> </span><span class="nn">pygimli.physics</span><span class="w"> </span><span class="kn">import</span> <span class="n">ert</span> |
| 93 | +<span class="kn">from</span><span class="w"> </span><span class="nn">typing</span><span class="w"> </span><span class="kn">import</span> <span class="n">Tuple</span><span class="p">,</span> <span class="n">Optional</span><span class="p">,</span> <span class="n">Dict</span><span class="p">,</span> <span class="n">Any</span><span class="p">,</span> <span class="n">Union</span><span class="p">,</span> <span class="n">List</span> |
98 | 94 |
|
99 | | -<span class="kn">from</span> <span class="nn">PyHydroGeophysX.core.interpolation</span> <span class="kn">import</span> <span class="n">ProfileInterpolator</span> |
100 | | -<span class="kn">from</span> <span class="nn">PyHydroGeophysX.petrophysics.resistivity_models</span> <span class="kn">import</span> <span class="n">water_content_to_resistivity</span> |
101 | | -<span class="kn">from</span> <span class="nn">PyHydroGeophysX.forward.ert_forward</span> <span class="kn">import</span> <span class="n">ERTForwardModeling</span> |
| 95 | +<span class="kn">from</span><span class="w"> </span><span class="nn">PyHydroGeophysX.core.interpolation</span><span class="w"> </span><span class="kn">import</span> <span class="n">ProfileInterpolator</span> |
| 96 | +<span class="kn">from</span><span class="w"> </span><span class="nn">PyHydroGeophysX.petrophysics.resistivity_models</span><span class="w"> </span><span class="kn">import</span> <span class="n">water_content_to_resistivity</span> |
| 97 | +<span class="kn">from</span><span class="w"> </span><span class="nn">PyHydroGeophysX.forward.ert_forward</span><span class="w"> </span><span class="kn">import</span> <span class="n">ERTForwardModeling</span> |
102 | 98 |
|
103 | 99 |
|
104 | | -<div class="viewcode-block" id="hydro_to_ert"><a class="viewcode-back" href="../../api/Hydro_modular.html#Hydro_modular.hydro_to_ert.hydro_to_ert">[docs]</a><span class="k">def</span> <span class="nf">hydro_to_ert</span><span class="p">(</span> |
| 100 | +<div class="viewcode-block" id="hydro_to_ert"> |
| 101 | +<a class="viewcode-back" href="../../api/Hydro_modular.html#Hydro_modular.hydro_to_ert.hydro_to_ert">[docs]</a> |
| 102 | +<span class="k">def</span><span class="w"> </span><span class="nf">hydro_to_ert</span><span class="p">(</span> |
105 | 103 | <span class="n">water_content</span><span class="p">:</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">,</span> |
106 | 104 | <span class="n">porosity</span><span class="p">:</span> <span class="n">np</span><span class="o">.</span><span class="n">ndarray</span><span class="p">,</span> |
107 | 105 | <span class="n">mesh</span><span class="p">:</span> <span class="n">pg</span><span class="o">.</span><span class="n">Mesh</span><span class="p">,</span> |
@@ -272,6 +270,7 @@ <h1>Source code for Hydro_modular.hydro_to_ert</h1><div class="highlight"><pre> |
272 | 270 | <span class="n">synth_data</span><span class="p">[</span><span class="s1">'err'</span><span class="p">]</span> <span class="o">=</span> <span class="n">ert_manager</span><span class="o">.</span><span class="n">estimateError</span><span class="p">(</span><span class="n">synth_data</span><span class="p">,</span> <span class="n">absoluteUError</span><span class="o">=</span><span class="mf">0.0</span><span class="p">,</span> <span class="n">relativeError</span><span class="o">=</span><span class="mf">0.05</span><span class="p">)</span> |
273 | 271 |
|
274 | 272 | <span class="k">return</span> <span class="n">synth_data</span><span class="p">,</span> <span class="n">res_model</span></div> |
| 273 | + |
275 | 274 | </pre></div> |
276 | 275 |
|
277 | 276 | </div> |
|
0 commit comments