Skip to content

Commit

Permalink
deploy: 789ab24
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomodeller committed Nov 21, 2024
1 parent f04e5d3 commit 2223614
Show file tree
Hide file tree
Showing 102 changed files with 803 additions and 803 deletions.
32 changes: 16 additions & 16 deletions api/DataArray.html
Original file line number Diff line number Diff line change
Expand Up @@ -455,7 +455,7 @@ <h1 class="title d-none d-lg-block">DataArray</h1>
</ul>
<section id="examples" class="level2 doc-section doc-section-examples">
<h2 class="doc-section doc-section-examples anchored" data-anchor-id="examples">Examples</h2>
<div id="d739c8df" class="cell" data-execution_count="1">
<div id="7f1b7c72" class="cell" data-execution_count="1">
<div class="sourceCode cell-code" id="cb2"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> pandas <span class="im">as</span> pd</span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> mikeio</span>
<span id="cb2-3"><a href="#cb2-3" aria-hidden="true" tabindex="-1"></a></span>
Expand Down Expand Up @@ -870,15 +870,15 @@ <h4 class="doc-section doc-section-returns anchored" data-anchor-id="returns-2">
</section>
<section id="examples-2" class="level4 doc-section doc-section-examples">
<h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-2">Examples</h4>
<div id="6f0c4fee" class="cell" data-execution_count="2">
<div id="0e099c8f" class="cell" data-execution_count="2">
<div class="sourceCode cell-code" id="cb10"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb10-1"><a href="#cb10-1" aria-hidden="true" tabindex="-1"></a>da1 <span class="op">=</span> mikeio.read(<span class="st">"../data/HD2D.dfsu"</span>, time<span class="op">=</span>[<span class="dv">0</span>,<span class="dv">1</span>])[<span class="dv">0</span>]</span>
<span id="cb10-2"><a href="#cb10-2" aria-hidden="true" tabindex="-1"></a>da2 <span class="op">=</span> mikeio.read(<span class="st">"../data/HD2D.dfsu"</span>, time<span class="op">=</span>[<span class="dv">2</span>,<span class="dv">3</span>])[<span class="dv">0</span>]</span>
<span id="cb10-3"><a href="#cb10-3" aria-hidden="true" tabindex="-1"></a>da1.time</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="2">
<pre><code>DatetimeIndex(['1985-08-06 07:00:00', '1985-08-06 09:30:00'], dtype='datetime64[ns]', freq=None)</code></pre>
</div>
</div>
<div id="938c7f64" class="cell" data-execution_count="3">
<div id="7b4c3303" class="cell" data-execution_count="3">
<div class="sourceCode cell-code" id="cb12"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb12-1"><a href="#cb12-1" aria-hidden="true" tabindex="-1"></a>da3 <span class="op">=</span> mikeio.DataArray.concat([da1,da2])</span>
<span id="cb12-2"><a href="#cb12-2" aria-hidden="true" tabindex="-1"></a>da3</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="3">
Expand Down Expand Up @@ -1236,7 +1236,7 @@ <h3 class="anchored" data-anchor-id="mikeio.DataArray.interp_na">interp_na</h3>
<p>Wrapper of <a href="https://xarray.pydata.org/en/stable/generated/xarray.DataArray.interpolate_na.html#xarray.DataArray.interpolate_na"><code>xarray.DataArray.interpolate_na</code></a></p>
<section id="examples-5" class="level4 doc-section doc-section-examples">
<h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-5">Examples</h4>
<div id="675d6a09" class="cell" data-execution_count="4">
<div id="82c812e6" class="cell" data-execution_count="4">
<div class="sourceCode cell-code" id="cb25"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb25-1"><a href="#cb25-1" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> numpy <span class="im">as</span> np</span>
<span id="cb25-2"><a href="#cb25-2" aria-hidden="true" tabindex="-1"></a><span class="im">import</span> pandas <span class="im">as</span> pd</span>
<span id="cb25-3"><a href="#cb25-3" aria-hidden="true" tabindex="-1"></a>time <span class="op">=</span> pd.date_range(<span class="st">"2000"</span>, periods<span class="op">=</span><span class="dv">3</span>, freq<span class="op">=</span><span class="st">"D"</span>)</span>
Expand All @@ -1251,7 +1251,7 @@ <h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-5
values: [0, nan, 2]</code></pre>
</div>
</div>
<div id="95900eb3" class="cell" data-execution_count="5">
<div id="bd7fa33c" class="cell" data-execution_count="5">
<div class="sourceCode cell-code" id="cb27"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb27-1"><a href="#cb27-1" aria-hidden="true" tabindex="-1"></a>da.interp_na()</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="5">
<pre><code>&lt;mikeio.DataArray&gt;
Expand Down Expand Up @@ -1446,7 +1446,7 @@ <h4 class="doc-section doc-section-see-also anchored" data-anchor-id="see-also-3
</section>
<section id="examples-6" class="level4 doc-section doc-section-examples">
<h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-6">Examples</h4>
<div id="3d6153fa" class="cell" data-execution_count="6">
<div id="f6b24bbe" class="cell" data-execution_count="6">
<div class="sourceCode cell-code" id="cb31"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb31-1"><a href="#cb31-1" aria-hidden="true" tabindex="-1"></a>da <span class="op">=</span> mikeio.read(<span class="st">"../data/europe_wind_long_lat.dfs2"</span>)[<span class="dv">0</span>]</span>
<span id="cb31-2"><a href="#cb31-2" aria-hidden="true" tabindex="-1"></a>da</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="6">
Expand All @@ -1457,7 +1457,7 @@ <h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-6
geometry: Grid2D (ny=101, nx=221)</code></pre>
</div>
</div>
<div id="99d6810e" class="cell" data-execution_count="7">
<div id="b6a4cb5b" class="cell" data-execution_count="7">
<div class="sourceCode cell-code" id="cb33"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb33-1"><a href="#cb33-1" aria-hidden="true" tabindex="-1"></a>da.isel(time<span class="op">=-</span><span class="dv">1</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="7">
<pre><code>&lt;mikeio.DataArray&gt;
Expand All @@ -1467,7 +1467,7 @@ <h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-6
geometry: Grid2D (ny=101, nx=221)</code></pre>
</div>
</div>
<div id="77026f1f" class="cell" data-execution_count="8">
<div id="16aa9d91" class="cell" data-execution_count="8">
<div class="sourceCode cell-code" id="cb35"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb35-1"><a href="#cb35-1" aria-hidden="true" tabindex="-1"></a>da.isel(x<span class="op">=</span><span class="bu">slice</span>(<span class="dv">10</span>,<span class="dv">20</span>), y<span class="op">=</span><span class="bu">slice</span>(<span class="dv">40</span>,<span class="dv">60</span>))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="8">
<pre><code>&lt;mikeio.DataArray&gt;
Expand All @@ -1477,7 +1477,7 @@ <h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-6
geometry: Grid2D (ny=20, nx=10)</code></pre>
</div>
</div>
<div id="ddeb4435" class="cell" data-execution_count="9">
<div id="466520ea" class="cell" data-execution_count="9">
<div class="sourceCode cell-code" id="cb37"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb37-1"><a href="#cb37-1" aria-hidden="true" tabindex="-1"></a>da <span class="op">=</span> mikeio.read(<span class="st">"../data/oresund_sigma_z.dfsu"</span>).Temperature</span>
<span id="cb37-2"><a href="#cb37-2" aria-hidden="true" tabindex="-1"></a>da.isel(element<span class="op">=</span><span class="bu">range</span>(<span class="dv">200</span>))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="9">
Expand Down Expand Up @@ -2234,7 +2234,7 @@ <h4 class="doc-section doc-section-see-also anchored" data-anchor-id="see-also-1
</section>
<section id="examples-9" class="level4 doc-section doc-section-examples">
<h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-9">Examples</h4>
<div id="bb978410" class="cell" data-execution_count="10">
<div id="75a6ab55" class="cell" data-execution_count="10">
<div class="sourceCode cell-code" id="cb59"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb59-1"><a href="#cb59-1" aria-hidden="true" tabindex="-1"></a>da <span class="op">=</span> mikeio.read(<span class="st">"../data/random.dfs1"</span>)[<span class="dv">0</span>]</span>
<span id="cb59-2"><a href="#cb59-2" aria-hidden="true" tabindex="-1"></a>da</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="10">
Expand All @@ -2245,7 +2245,7 @@ <h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-9
geometry: Grid1D (n=3, dx=100)</code></pre>
</div>
</div>
<div id="da34a62b" class="cell" data-execution_count="11">
<div id="5e8f8d4e" class="cell" data-execution_count="11">
<div class="sourceCode cell-code" id="cb61"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb61-1"><a href="#cb61-1" aria-hidden="true" tabindex="-1"></a>da.sel(time<span class="op">=</span><span class="bu">slice</span>(<span class="va">None</span>, <span class="st">"2012-1-1 00:02"</span>))</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="11">
<pre><code>&lt;mikeio.DataArray&gt;
Expand All @@ -2255,7 +2255,7 @@ <h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-9
geometry: Grid1D (n=3, dx=100)</code></pre>
</div>
</div>
<div id="25c6a1dc" class="cell" data-execution_count="12">
<div id="e55e2f4d" class="cell" data-execution_count="12">
<div class="sourceCode cell-code" id="cb63"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb63-1"><a href="#cb63-1" aria-hidden="true" tabindex="-1"></a>da.sel(x<span class="op">=</span><span class="dv">100</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="12">
<pre><code>&lt;mikeio.DataArray&gt;
Expand All @@ -2266,7 +2266,7 @@ <h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-9
values: [0.3231, 0.6315, ..., 0.7506]</code></pre>
</div>
</div>
<div id="753728a8" class="cell" data-execution_count="13">
<div id="0d92bf9f" class="cell" data-execution_count="13">
<div class="sourceCode cell-code" id="cb65"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb65-1"><a href="#cb65-1" aria-hidden="true" tabindex="-1"></a>da <span class="op">=</span> mikeio.read(<span class="st">"../data/oresund_sigma_z.dfsu"</span>).Temperature</span>
<span id="cb65-2"><a href="#cb65-2" aria-hidden="true" tabindex="-1"></a>da</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="13">
Expand All @@ -2282,7 +2282,7 @@ <h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-9
projection: UTM-33</code></pre>
</div>
</div>
<div id="33ccffed" class="cell" data-execution_count="14">
<div id="0dad1d82" class="cell" data-execution_count="14">
<div class="sourceCode cell-code" id="cb67"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb67-1"><a href="#cb67-1" aria-hidden="true" tabindex="-1"></a>da.sel(time<span class="op">=</span><span class="st">"1997-09-15"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="14">
<pre><code>&lt;mikeio.DataArray&gt;
Expand All @@ -2298,7 +2298,7 @@ <h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-9
values: [16.31, 16.43, ..., 16.69]</code></pre>
</div>
</div>
<div id="4549d4e0" class="cell" data-execution_count="15">
<div id="4e531cb1" class="cell" data-execution_count="15">
<div class="sourceCode cell-code" id="cb69"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb69-1"><a href="#cb69-1" aria-hidden="true" tabindex="-1"></a>da.sel(x<span class="op">=</span><span class="dv">340000</span>, y<span class="op">=</span><span class="dv">6160000</span>, z<span class="op">=-</span><span class="dv">3</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="15">
<pre><code>&lt;mikeio.DataArray&gt;
Expand All @@ -2309,7 +2309,7 @@ <h4 class="doc-section doc-section-examples anchored" data-anchor-id="examples-9
values: [17.54, 17.31, 17.08]</code></pre>
</div>
</div>
<div id="1f677574" class="cell" data-execution_count="16">
<div id="5388c6bd" class="cell" data-execution_count="16">
<div class="sourceCode cell-code" id="cb71"><pre class="sourceCode python code-with-copy"><code class="sourceCode python"><span id="cb71-1"><a href="#cb71-1" aria-hidden="true" tabindex="-1"></a>da.sel(layers<span class="op">=</span><span class="st">"bottom"</span>)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div>
<div class="cell-output cell-output-display" data-execution_count="16">
<pre><code>&lt;mikeio.DataArray&gt;
Expand Down
44 changes: 22 additions & 22 deletions api/DataArray.ipynb
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
"\n",
"## Examples"
],
"id": "bc567f6a-b9e9-41a5-801c-5cea237c9fe7"
"id": "2e3cb54e-998a-424c-98a0-b08c0067fbf8"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -62,7 +62,7 @@
" item=mikeio.ItemInfo(\"Water level\", mikeio.EUMType.Water_Level))\n",
"da"
],
"id": "aadcb8fe"
"id": "3cb9d6cf"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -206,7 +206,7 @@
"\n",
"#### Examples"
],
"id": "fe1258ee-6775-49ff-97a9-d24c95eb97c3"
"id": "f021aafd-8804-4d29-9972-a448625089e5"
},
{
"cell_type": "code",
Expand All @@ -228,7 +228,7 @@
"da2 = mikeio.read(\"../data/HD2D.dfsu\", time=[2,3])[0]\n",
"da1.time"
],
"id": "02b00033"
"id": "f1b6e978"
},
{
"cell_type": "code",
Expand All @@ -253,7 +253,7 @@
"da3 = mikeio.DataArray.concat([da1,da2])\n",
"da3"
],
"id": "bd1fed7d"
"id": "2bd30a76"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -439,7 +439,7 @@
"\n",
"#### Examples"
],
"id": "08f6028e-e355-40b0-8b32-1e6031f1862c"
"id": "469c371a-45e4-45ee-988f-aa353667720e"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -468,7 +468,7 @@
"da = mikeio.DataArray(data=np.array([0.0, np.nan, 2.0]), time=time)\n",
"da"
],
"id": "55049f7e"
"id": "720bf89b"
},
{
"cell_type": "code",
Expand All @@ -493,7 +493,7 @@
"source": [
"da.interp_na()"
],
"id": "0fadbeb5"
"id": "2dbfd23d"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -577,7 +577,7 @@
"\n",
"#### Examples"
],
"id": "1176518b-76ca-4cbd-b717-bdb87d6563b9"
"id": "57eb7598-52fd-4fce-831e-b6d282e8fc49"
},
{
"cell_type": "code",
Expand All @@ -602,7 +602,7 @@
"da = mikeio.read(\"../data/europe_wind_long_lat.dfs2\")[0]\n",
"da"
],
"id": "82b1ace7"
"id": "c570b051"
},
{
"cell_type": "code",
Expand All @@ -626,7 +626,7 @@
"source": [
"da.isel(time=-1)"
],
"id": "ee980552"
"id": "45f4d113"
},
{
"cell_type": "code",
Expand All @@ -650,7 +650,7 @@
"source": [
"da.isel(x=slice(10,20), y=slice(40,60))"
],
"id": "6bb95f07"
"id": "ff51e225"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -680,7 +680,7 @@
"da = mikeio.read(\"../data/oresund_sigma_z.dfsu\").Temperature\n",
"da.isel(element=range(200))"
],
"id": "929dafc4"
"id": "ada451b1"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -1002,7 +1002,7 @@
"\n",
"#### Examples"
],
"id": "0d25bd72-7ea1-4176-b3c1-5b6a7153c9cd"
"id": "6914abf1-b9e8-43be-baee-2cdc7bfbfb2d"
},
{
"cell_type": "code",
Expand All @@ -1027,7 +1027,7 @@
"da = mikeio.read(\"../data/random.dfs1\")[0]\n",
"da"
],
"id": "7383b2bd"
"id": "6e6f8e44"
},
{
"cell_type": "code",
Expand All @@ -1051,7 +1051,7 @@
"source": [
"da.sel(time=slice(None, \"2012-1-1 00:02\"))"
],
"id": "6afb7ec0"
"id": "cc5d03c7"
},
{
"cell_type": "code",
Expand All @@ -1076,7 +1076,7 @@
"source": [
"da.sel(x=100)"
],
"id": "67e382a5"
"id": "7850de57"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -1106,7 +1106,7 @@
"da = mikeio.read(\"../data/oresund_sigma_z.dfsu\").Temperature\n",
"da"
],
"id": "d0da8719"
"id": "f3145294"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -1136,7 +1136,7 @@
"source": [
"da.sel(time=\"1997-09-15\")"
],
"id": "785ba853"
"id": "2bfbf5a2"
},
{
"cell_type": "code",
Expand All @@ -1161,7 +1161,7 @@
"source": [
"da.sel(x=340000, y=6160000, z=-3)"
],
"id": "c02179e9"
"id": "9078392a"
},
{
"cell_type": "code",
Expand All @@ -1185,7 +1185,7 @@
"source": [
"da.sel(layers=\"bottom\")"
],
"id": "9c03377c"
"id": "ccf8eb99"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -1297,7 +1297,7 @@
"\n",
"Export to xarray.DataArray."
],
"id": "5d7e74b8-9cc5-47a9-8089-ffa61858e7fe"
"id": "e5cb0392-ed26-4004-a2fd-977ed50198a1"
}
],
"nbformat": 4,
Expand Down
Loading

0 comments on commit 2223614

Please sign in to comment.