Skip to content

Commit

Permalink
deploy: e8c87b8
Browse files Browse the repository at this point in the history
  • Loading branch information
ecomodeller committed Nov 19, 2024
1 parent f2f592e commit c2754f6
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="818623fc" class="cell" data-execution_count="1">
<div id="1585afa9" 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="4d40c39c" class="cell" data-execution_count="2">
<div id="5ae2455b" 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="257a2814" class="cell" data-execution_count="3">
<div id="c498d1d0" 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="30be1672" class="cell" data-execution_count="4">
<div id="d3611ac9" 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="c30fa21e" class="cell" data-execution_count="5">
<div id="f9a8b866" 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="30b160b2" class="cell" data-execution_count="6">
<div id="12a71944" 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="0fed4db0" class="cell" data-execution_count="7">
<div id="b45e680f" 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="ca6c8787" class="cell" data-execution_count="8">
<div id="ade8a14e" 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="ba520857" class="cell" data-execution_count="9">
<div id="d6a28e83" 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="55bee963" class="cell" data-execution_count="10">
<div id="b8c7846e" 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="881f093b" class="cell" data-execution_count="11">
<div id="939896e2" 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="63f5661f" class="cell" data-execution_count="12">
<div id="80011ae9" 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="ef1d938d" class="cell" data-execution_count="13">
<div id="82390bbb" 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="5af1970e" class="cell" data-execution_count="14">
<div id="eb87dcd9" 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="4bafcb33" class="cell" data-execution_count="15">
<div id="dfba3250" 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="567db36a" class="cell" data-execution_count="16">
<div id="983f7886" 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": "3a031682-06c1-4d4a-a221-2841f0df37c1"
"id": "8b274d2e-c6c1-4dd6-b7f7-7041b6744fff"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -62,7 +62,7 @@
" item=mikeio.ItemInfo(\"Water level\", mikeio.EUMType.Water_Level))\n",
"da"
],
"id": "11fad015"
"id": "95c4cc90"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -206,7 +206,7 @@
"\n",
"#### Examples"
],
"id": "ec9fc47a-95e4-4c17-b081-b0a8b8a5b56f"
"id": "90faeb5b-b7b4-463d-8a87-a98da91da1a5"
},
{
"cell_type": "code",
Expand All @@ -228,7 +228,7 @@
"da2 = mikeio.read(\"../data/HD2D.dfsu\", time=[2,3])[0]\n",
"da1.time"
],
"id": "2da18f46"
"id": "e223d297"
},
{
"cell_type": "code",
Expand All @@ -253,7 +253,7 @@
"da3 = mikeio.DataArray.concat([da1,da2])\n",
"da3"
],
"id": "90c18c24"
"id": "698dea75"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -439,7 +439,7 @@
"\n",
"#### Examples"
],
"id": "eb86586b-a50d-4152-848d-8c3bbbfeb3a9"
"id": "0a5d7cc1-8bfa-4199-a7c4-6efca87c7fa4"
},
{
"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": "60b461c0"
"id": "993fe6f9"
},
{
"cell_type": "code",
Expand All @@ -493,7 +493,7 @@
"source": [
"da.interp_na()"
],
"id": "8a7fd1c1"
"id": "0dcd442b"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -577,7 +577,7 @@
"\n",
"#### Examples"
],
"id": "b7364a9d-b111-4a98-8b43-314c53dde58b"
"id": "b952234d-32f2-47b4-aa17-bbfdcb0238da"
},
{
"cell_type": "code",
Expand All @@ -602,7 +602,7 @@
"da = mikeio.read(\"../data/europe_wind_long_lat.dfs2\")[0]\n",
"da"
],
"id": "2dfc9272"
"id": "84ea1a96"
},
{
"cell_type": "code",
Expand All @@ -626,7 +626,7 @@
"source": [
"da.isel(time=-1)"
],
"id": "daa4847e"
"id": "27c1a836"
},
{
"cell_type": "code",
Expand All @@ -650,7 +650,7 @@
"source": [
"da.isel(x=slice(10,20), y=slice(40,60))"
],
"id": "046a5451"
"id": "342a7020"
},
{
"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": "d46602fd"
"id": "2fd15b5d"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -1002,7 +1002,7 @@
"\n",
"#### Examples"
],
"id": "e592fa30-040f-4b01-82f9-3d84890e4ac3"
"id": "3f1b6c84-428b-40c6-a2c2-1b995187eab3"
},
{
"cell_type": "code",
Expand All @@ -1027,7 +1027,7 @@
"da = mikeio.read(\"../data/random.dfs1\")[0]\n",
"da"
],
"id": "02ba3b85"
"id": "c53c291b"
},
{
"cell_type": "code",
Expand All @@ -1051,7 +1051,7 @@
"source": [
"da.sel(time=slice(None, \"2012-1-1 00:02\"))"
],
"id": "82b5142e"
"id": "449351ef"
},
{
"cell_type": "code",
Expand All @@ -1076,7 +1076,7 @@
"source": [
"da.sel(x=100)"
],
"id": "c8bc78dd"
"id": "f229bf21"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -1106,7 +1106,7 @@
"da = mikeio.read(\"../data/oresund_sigma_z.dfsu\").Temperature\n",
"da"
],
"id": "53f2064f"
"id": "75644d85"
},
{
"cell_type": "code",
Expand Down Expand Up @@ -1136,7 +1136,7 @@
"source": [
"da.sel(time=\"1997-09-15\")"
],
"id": "4323fe4e"
"id": "ea8a181c"
},
{
"cell_type": "code",
Expand All @@ -1161,7 +1161,7 @@
"source": [
"da.sel(x=340000, y=6160000, z=-3)"
],
"id": "0102a563"
"id": "e9e6fe06"
},
{
"cell_type": "code",
Expand All @@ -1185,7 +1185,7 @@
"source": [
"da.sel(layers=\"bottom\")"
],
"id": "3eaf8881"
"id": "46795fa2"
},
{
"cell_type": "markdown",
Expand Down Expand Up @@ -1297,7 +1297,7 @@
"\n",
"Export to xarray.DataArray."
],
"id": "3fcafa42-c687-46c6-a115-47f1ee0746b6"
"id": "fcb6f874-5636-40cb-a2ce-35d8345d9b49"
}
],
"nbformat": 4,
Expand Down
Loading

0 comments on commit c2754f6

Please sign in to comment.