Skip to content

Commit

Permalink
deploy: 24d86a7
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomodeller committed Oct 25, 2024
1 parent 19c031e commit b058534
Show file tree
Hide file tree
Showing 102 changed files with 793 additions and 793 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="3d59d650" class="cell" data-execution_count="1">
<div id="ee1f4cf7" 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="d4ac4f06" class="cell" data-execution_count="2">
<div id="09b1e081" 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="3d6a2d28" class="cell" data-execution_count="3">
<div id="b2dbcb51" 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="a972bdaa" class="cell" data-execution_count="4">
<div id="dfb5688c" 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="243c1bf0" class="cell" data-execution_count="5">
<div id="b9267a95" 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="5a555d0e" class="cell" data-execution_count="6">
<div id="bf5ccab8" 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="b63e8304" class="cell" data-execution_count="7">
<div id="a7aab7bd" 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="d390967b" class="cell" data-execution_count="8">
<div id="b5acb494" 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="325c202c" class="cell" data-execution_count="9">
<div id="7558cacd" 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="71b23ac6" class="cell" data-execution_count="10">
<div id="8c368e56" 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="59ab8f0f" class="cell" data-execution_count="11">
<div id="d02bee6a" 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="28a45396" class="cell" data-execution_count="12">
<div id="40c09d58" 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="84656d66" class="cell" data-execution_count="13">
<div id="4318a846" 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="7d31ec00" class="cell" data-execution_count="14">
<div id="0f1b7990" 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="6e4d0087" class="cell" data-execution_count="15">
<div id="f9a71510" 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="34fbbc93" class="cell" data-execution_count="16">
<div id="0752aca1" 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": "b669842a-2c27-4931-9b4b-8f6b126e0189"
"id": "e750ba12-94b0-44e3-aea3-b59921a0a235"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -62,7 +62,7 @@
" item=mikeio.ItemInfo(\"Water level\", mikeio.EUMType.Water_Level))\n",
"da"
],
"id": "1d650a31"
"id": "bed3f24b"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -206,7 +206,7 @@
"\n",
"#### Examples"
],
"id": "13e6a2ab-28b2-47ed-a006-15d818feeb36"
"id": "a151c2db-b117-4dcb-bd38-20ed59496471"
},
{
"cell_type": "code",
Expand All @@ -228,7 +228,7 @@
"da2 = mikeio.read(\"../data/HD2D.dfsu\", time=[2,3])[0]\n",
"da1.time"
],
"id": "99c234e3"
"id": "d36b97e6"
},
{
"cell_type": "code",
Expand All @@ -253,7 +253,7 @@
"da3 = mikeio.DataArray.concat([da1,da2])\n",
"da3"
],
"id": "9fb4d8d2"
"id": "ec250d60"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -439,7 +439,7 @@
"\n",
"#### Examples"
],
"id": "e502539e-0efb-4bac-91f7-c574aee665b6"
"id": "8a4d0ab1-82cc-4cef-b29c-5d872d96c89e"
},
{
"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": "a00a81fd"
"id": "f6d260a7"
},
{
"cell_type": "code",
Expand All @@ -493,7 +493,7 @@
"source": [
"da.interp_na()"
],
"id": "5cb4de2e"
"id": "06054b4a"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -577,7 +577,7 @@
"\n",
"#### Examples"
],
"id": "0384ccbf-edfa-4ba6-8f10-e6c29371b34f"
"id": "84303079-6c20-407f-b399-b834b89ad36c"
},
{
"cell_type": "code",
Expand All @@ -602,7 +602,7 @@
"da = mikeio.read(\"../data/europe_wind_long_lat.dfs2\")[0]\n",
"da"
],
"id": "31e69fa3"
"id": "3bca6849"
},
{
"cell_type": "code",
Expand All @@ -626,7 +626,7 @@
"source": [
"da.isel(time=-1)"
],
"id": "8803347c"
"id": "4ac6030c"
},
{
"cell_type": "code",
Expand All @@ -650,7 +650,7 @@
"source": [
"da.isel(x=slice(10,20), y=slice(40,60))"
],
"id": "23b79573"
"id": "88c4ff1a"
},
{
"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": "01500398"
"id": "a284e1ac"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -1002,7 +1002,7 @@
"\n",
"#### Examples"
],
"id": "612213c8-2dce-401c-ab17-30b327c71d77"
"id": "7f39261f-e664-4237-89ae-85d241549ab3"
},
{
"cell_type": "code",
Expand All @@ -1027,7 +1027,7 @@
"da = mikeio.read(\"../data/random.dfs1\")[0]\n",
"da"
],
"id": "ce731148"
"id": "974af0ab"
},
{
"cell_type": "code",
Expand All @@ -1051,7 +1051,7 @@
"source": [
"da.sel(time=slice(None, \"2012-1-1 00:02\"))"
],
"id": "6e26c435"
"id": "d1c957c7"
},
{
"cell_type": "code",
Expand All @@ -1076,7 +1076,7 @@
"source": [
"da.sel(x=100)"
],
"id": "1c4b8c7c"
"id": "522f6da9"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -1106,7 +1106,7 @@
"da = mikeio.read(\"../data/oresund_sigma_z.dfsu\").Temperature\n",
"da"
],
"id": "7c71272c"
"id": "e53ed2d4"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -1136,7 +1136,7 @@
"source": [
"da.sel(time=\"1997-09-15\")"
],
"id": "994785e8"
"id": "a1f8b8e2"
},
{
"cell_type": "code",
Expand All @@ -1161,7 +1161,7 @@
"source": [
"da.sel(x=340000, y=6160000, z=-3)"
],
"id": "d0fbbdf4"
"id": "8d95b5e2"
},
{
"cell_type": "code",
Expand All @@ -1185,7 +1185,7 @@
"source": [
"da.sel(layers=\"bottom\")"
],
"id": "5cb01b09"
"id": "8217c24f"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -1297,7 +1297,7 @@
"\n",
"Export to xarray.DataArray."
],
"id": "61f94b8d-8256-45ed-8219-0110045af019"
"id": "6f3a4de3-498c-446b-8700-2810a1b70ce8"
}
],
"nbformat": 4,
Expand Down
2 changes: 1 addition & 1 deletion api/Dataset.html
Original file line number Diff line number Diff line change
Expand Up @@ -472,7 +472,7 @@ <h2 class="doc-section doc-section-selecting-items anchored" data-anchor-id="sel
</section>
<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="8bb62125" class="cell" data-execution_count="1">
<div id="f1060ee7" 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> mikeio</span>
<span id="cb2-2"><a href="#cb2-2" aria-hidden="true" tabindex="-1"></a>mikeio.read(<span class="st">"../data/europe_wind_long_lat.dfs2"</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="1">
Expand Down
Loading

0 comments on commit b058534

Please sign in to comment.