Skip to content

Commit

Permalink
deploy: 2492677
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomodeller committed Nov 19, 2024
1 parent ed1bd8d commit f2f592e
Show file tree
Hide file tree
Showing 102 changed files with 800 additions and 800 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="a68592c4" class="cell" data-execution_count="1">
<div id="818623fc" 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="c579f787" class="cell" data-execution_count="2">
<div id="4d40c39c" 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="35b6989a" class="cell" data-execution_count="3">
<div id="257a2814" 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="ec31efad" class="cell" data-execution_count="4">
<div id="30be1672" 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="a34da0a0" class="cell" data-execution_count="5">
<div id="c30fa21e" 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="feafc47c" class="cell" data-execution_count="6">
<div id="30b160b2" 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="1265f963" class="cell" data-execution_count="7">
<div id="0fed4db0" 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="068601f4" class="cell" data-execution_count="8">
<div id="ca6c8787" 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="e190d077" class="cell" data-execution_count="9">
<div id="ba520857" 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="149fb00b" class="cell" data-execution_count="10">
<div id="55bee963" 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="bd934543" class="cell" data-execution_count="11">
<div id="881f093b" 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="729c031c" class="cell" data-execution_count="12">
<div id="63f5661f" 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="43c119f2" class="cell" data-execution_count="13">
<div id="ef1d938d" 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="54e5cc20" class="cell" data-execution_count="14">
<div id="5af1970e" 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="5b23ebd8" class="cell" data-execution_count="15">
<div id="4bafcb33" 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="e87e2049" class="cell" data-execution_count="16">
<div id="567db36a" 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": "3eb25390-bcf5-426e-b97c-bc4a03cd9a2a"
"id": "3a031682-06c1-4d4a-a221-2841f0df37c1"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -62,7 +62,7 @@
" item=mikeio.ItemInfo(\"Water level\", mikeio.EUMType.Water_Level))\n",
"da"
],
"id": "15c6e057"
"id": "11fad015"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -206,7 +206,7 @@
"\n",
"#### Examples"
],
"id": "4e764209-33ec-41eb-8a24-c079b4be4dd1"
"id": "ec9fc47a-95e4-4c17-b081-b0a8b8a5b56f"
},
{
"cell_type": "code",
Expand All @@ -228,7 +228,7 @@
"da2 = mikeio.read(\"../data/HD2D.dfsu\", time=[2,3])[0]\n",
"da1.time"
],
"id": "72197057"
"id": "2da18f46"
},
{
"cell_type": "code",
Expand All @@ -253,7 +253,7 @@
"da3 = mikeio.DataArray.concat([da1,da2])\n",
"da3"
],
"id": "addf1eda"
"id": "90c18c24"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -439,7 +439,7 @@
"\n",
"#### Examples"
],
"id": "8ed75b19-d866-4550-9d7d-067719513bf3"
"id": "eb86586b-a50d-4152-848d-8c3bbbfeb3a9"
},
{
"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": "6134db60"
"id": "60b461c0"
},
{
"cell_type": "code",
Expand All @@ -493,7 +493,7 @@
"source": [
"da.interp_na()"
],
"id": "6c325496"
"id": "8a7fd1c1"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -577,7 +577,7 @@
"\n",
"#### Examples"
],
"id": "a3b5c3e9-512a-49f6-a725-98467f5e45d0"
"id": "b7364a9d-b111-4a98-8b43-314c53dde58b"
},
{
"cell_type": "code",
Expand All @@ -602,7 +602,7 @@
"da = mikeio.read(\"../data/europe_wind_long_lat.dfs2\")[0]\n",
"da"
],
"id": "3d2b2d90"
"id": "2dfc9272"
},
{
"cell_type": "code",
Expand All @@ -626,7 +626,7 @@
"source": [
"da.isel(time=-1)"
],
"id": "8982deb0"
"id": "daa4847e"
},
{
"cell_type": "code",
Expand All @@ -650,7 +650,7 @@
"source": [
"da.isel(x=slice(10,20), y=slice(40,60))"
],
"id": "f74a8025"
"id": "046a5451"
},
{
"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": "df5c1576"
"id": "d46602fd"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -1002,7 +1002,7 @@
"\n",
"#### Examples"
],
"id": "c637c952-b024-4d82-b890-c756e260c125"
"id": "e592fa30-040f-4b01-82f9-3d84890e4ac3"
},
{
"cell_type": "code",
Expand All @@ -1027,7 +1027,7 @@
"da = mikeio.read(\"../data/random.dfs1\")[0]\n",
"da"
],
"id": "5a56da10"
"id": "02ba3b85"
},
{
"cell_type": "code",
Expand All @@ -1051,7 +1051,7 @@
"source": [
"da.sel(time=slice(None, \"2012-1-1 00:02\"))"
],
"id": "19f6743e"
"id": "82b5142e"
},
{
"cell_type": "code",
Expand All @@ -1076,7 +1076,7 @@
"source": [
"da.sel(x=100)"
],
"id": "c8076c31"
"id": "c8bc78dd"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -1106,7 +1106,7 @@
"da = mikeio.read(\"../data/oresund_sigma_z.dfsu\").Temperature\n",
"da"
],
"id": "1e46cdf3"
"id": "53f2064f"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -1136,7 +1136,7 @@
"source": [
"da.sel(time=\"1997-09-15\")"
],
"id": "5a6d5227"
"id": "4323fe4e"
},
{
"cell_type": "code",
Expand All @@ -1161,7 +1161,7 @@
"source": [
"da.sel(x=340000, y=6160000, z=-3)"
],
"id": "182798e4"
"id": "0102a563"
},
{
"cell_type": "code",
Expand All @@ -1185,7 +1185,7 @@
"source": [
"da.sel(layers=\"bottom\")"
],
"id": "14b308bc"
"id": "3eaf8881"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -1297,7 +1297,7 @@
"\n",
"Export to xarray.DataArray."
],
"id": "c790bd29-0dd5-4b63-92cc-a52b26e803b6"
"id": "3fcafa42-c687-46c6-a115-47f1ee0746b6"
}
],
"nbformat": 4,
Expand Down
Loading

0 comments on commit f2f592e

Please sign in to comment.