From 4615a1dc2d0d8bcba89750dc0b757b903cd3d83d Mon Sep 17 00:00:00 2001 From: ecomodeller Date: Fri, 6 Dec 2024 14:22:42 +0000 Subject: [PATCH] deploy: d75fecc4a65b2f4568b1c7d701b0061aadc51e19 --- api/DataArray.html | 32 +++---- api/DataArray.ipynb | 44 ++++----- api/Dataset.html | 8 +- api/Dataset.ipynb | 14 +-- api/Dfs0.ipynb | 2 +- api/Dfs1.ipynb | 2 +- api/Dfs2.ipynb | 2 +- api/Dfs3.ipynb | 2 +- api/Dfsu.ipynb | 2 +- api/EUMType.html | 4 +- api/EUMType.ipynb | 8 +- api/EUMUnit.html | 2 +- api/EUMUnit.ipynb | 6 +- api/Grid1D.html | 6 +- api/Grid1D.ipynb | 8 +- api/Grid2D.ipynb | 2 +- api/Grid3D.ipynb | 2 +- api/ItemInfo.html | 4 +- api/ItemInfo.ipynb | 8 +- api/Mesh.html | 4 +- api/Mesh.ipynb | 10 +- api/PfsDocument.html | 6 +- api/PfsDocument.ipynb | 12 +-- api/PfsSection.html | 6 +- api/PfsSection.ipynb | 12 +-- ...dataset._data_plot._DataArrayPlotter.ipynb | 2 +- ...ataset._data_plot._DataArrayPlotterFM.html | 12 +-- ...taset._data_plot._DataArrayPlotterFM.ipynb | 24 ++--- ...lot._DataArrayPlotterFMVerticalColumn.html | 8 +- ...ot._DataArrayPlotterFMVerticalColumn.ipynb | 12 +-- ...ot._DataArrayPlotterFMVerticalProfile.html | 4 +- ...t._DataArrayPlotterFMVerticalProfile.ipynb | 8 +- ...t._data_plot._DataArrayPlotterGrid1D.ipynb | 2 +- ...et._data_plot._DataArrayPlotterGrid2D.html | 8 +- ...t._data_plot._DataArrayPlotterGrid2D.ipynb | 16 ++-- api/dataset._data_plot._DatasetPlotter.ipynb | 2 +- api/dfsu.Dfsu2DH.html | 86 ++++++++++------- api/dfsu.Dfsu2DH.ipynb | 78 +++++++++++----- api/dfsu.Dfsu2DV.ipynb | 2 +- api/dfsu.Dfsu3D.ipynb | 2 +- api/dfsu.DfsuSpectral.ipynb | 2 +- api/from_pandas.html | 2 +- api/from_pandas.ipynb | 4 +- api/from_polars.html | 2 +- api/from_polars.ipynb | 4 +- api/generic.ipynb | 2 +- api/index.ipynb | 2 +- api/open.ipynb | 2 +- api/read.ipynb | 2 +- api/read_pfs.ipynb | 2 +- api/spatial.GeometryFM2D.ipynb | 2 +- api/spatial.GeometryFM3D.ipynb | 2 +- api/spatial.GeometryFMAreaSpectrum.ipynb | 2 +- api/spatial.GeometryFMLineSpectrum.ipynb | 2 +- api/spatial.GeometryFMPointSpectrum.ipynb | 2 +- api/spatial.GeometryFMVerticalColumn.ipynb | 2 +- api/spatial.GeometryFMVerticalProfile.ipynb | 2 +- ...tial._FM_geometry._GeometryFMPlotter.ipynb | 2 +- design.ipynb | 2 +- examples/Generic.html | 66 ++++++------- examples/Generic.ipynb | 92 +++++++++---------- examples/Time-interpolation.html | 28 +++--- examples/Time-interpolation.ipynb | 42 ++++----- examples/dfs0/cmems_insitu.html | 44 ++++----- examples/dfs0/cmems_insitu.ipynb | 60 ++++++------ examples/dfs0/index.ipynb | 2 +- examples/dfs2/bathy.html | 44 ++++----- examples/dfs2/bathy.ipynb | 52 +++++------ examples/dfs2/gfs.html | 42 ++++----- examples/dfs2/gfs.ipynb | 54 +++++------ examples/dfs2/index.ipynb | 2 +- examples/dfsu/index.ipynb | 2 +- examples/dfsu/merge_subdomains.html | 22 ++--- examples/dfsu/merge_subdomains.ipynb | 38 ++++---- examples/dfsu/spatial_interpolation.html | 58 ++++++------ examples/dfsu/spatial_interpolation.ipynb | 82 ++++++++--------- examples/index.html | 20 ++-- examples/index.ipynb | 2 +- index.html | 2 +- index.ipynb | 6 +- search.json | 18 ++-- user-guide/data-structures.ipynb | 2 +- user-guide/dataarray.html | 32 +++---- user-guide/dataarray.ipynb | 54 +++++------ user-guide/dataset.html | 22 ++--- user-guide/dataset.ipynb | 44 ++++----- user-guide/dfs0.html | 6 +- user-guide/dfs0.ipynb | 14 +-- user-guide/dfs1.html | 14 +-- user-guide/dfs1.ipynb | 26 +++--- user-guide/dfs2.html | 10 +- user-guide/dfs2.ipynb | 20 ++-- user-guide/dfsu.html | 4 +- user-guide/dfsu.ipynb | 8 +- user-guide/eum.html | 18 ++-- user-guide/eum.ipynb | 28 +++--- user-guide/generic.ipynb | 2 +- user-guide/getting-started.html | 10 +- user-guide/getting-started.ipynb | 20 ++-- user-guide/mesh.html | 32 +++---- user-guide/mesh.ipynb | 52 +++++------ user-guide/pfs.html | 20 ++-- user-guide/pfs.ipynb | 40 ++++---- 103 files changed, 913 insertions(+), 859 deletions(-) diff --git a/api/DataArray.html b/api/DataArray.html index b3e5d3d37..0e50a78b1 100644 --- a/api/DataArray.html +++ b/api/DataArray.html @@ -455,7 +455,7 @@

DataArray

Examples

-
+
import pandas as pd
 import mikeio
 
@@ -870,7 +870,7 @@ 

Examples

-
+
da1 = mikeio.read("../data/HD2D.dfsu", time=[0,1])[0]
 da2 = mikeio.read("../data/HD2D.dfsu", time=[2,3])[0]
 da1.time
@@ -878,7 +878,7 @@

+
da3 = mikeio.DataArray.concat([da1,da2])
 da3
@@ -1236,7 +1236,7 @@

interp_na

Wrapper of xarray.DataArray.interpolate_na

Examples

-
+
import numpy as np
 import pandas as pd
 time = pd.date_range("2000", periods=3, freq="D")
@@ -1251,7 +1251,7 @@ 

+
da.interp_na()
<mikeio.DataArray>
@@ -1446,7 +1446,7 @@ 

Examples

-
+
da = mikeio.read("../data/europe_wind_long_lat.dfs2")[0]
 da
@@ -1457,7 +1457,7 @@

+
da.isel(time=-1)
<mikeio.DataArray>
@@ -1467,7 +1467,7 @@ 

+
da.isel(x=slice(10,20), y=slice(40,60))
<mikeio.DataArray>
@@ -1477,7 +1477,7 @@ 

+
da = mikeio.read("../data/oresund_sigma_z.dfsu").Temperature
 da.isel(element=range(200))
@@ -2234,7 +2234,7 @@

Examples

-
+
da = mikeio.read("../data/random.dfs1")[0]
 da
@@ -2245,7 +2245,7 @@

+
da.sel(time=slice(None, "2012-1-1 00:02"))
<mikeio.DataArray>
@@ -2255,7 +2255,7 @@ 

+
da.sel(x=100)
<mikeio.DataArray>
@@ -2266,7 +2266,7 @@ 

+
da = mikeio.read("../data/oresund_sigma_z.dfsu").Temperature
 da
@@ -2282,7 +2282,7 @@

+
da.sel(time="1997-09-15")
<mikeio.DataArray>
@@ -2298,7 +2298,7 @@ 

+
da.sel(x=340000, y=6160000, z=-3)
<mikeio.DataArray>
@@ -2309,7 +2309,7 @@ 

+
da.sel(layers="bottom")
<mikeio.DataArray>
diff --git a/api/DataArray.ipynb b/api/DataArray.ipynb
index 9fc0cdbcf..c3420e99c 100644
--- a/api/DataArray.ipynb
+++ b/api/DataArray.ipynb
@@ -31,7 +31,7 @@
         "\n",
         "## Examples"
       ],
-      "id": "2cc2fdb4-0bb5-4ad8-b52d-f395bec2c3b9"
+      "id": "99b7526c-9e2e-4f40-9883-8fbaed6a7965"
     },
     {
       "cell_type": "code",
@@ -62,7 +62,7 @@
         "    item=mikeio.ItemInfo(\"Water level\", mikeio.EUMType.Water_Level))\n",
         "da"
       ],
-      "id": "db3320f7"
+      "id": "91c5c8a5"
     },
     {
       "cell_type": "markdown",
@@ -206,7 +206,7 @@
         "\n",
         "#### Examples"
       ],
-      "id": "36e4988e-95d9-45ef-8ea3-ec97433ddf97"
+      "id": "c8206215-79bc-46eb-9d70-4163c7d2674a"
     },
     {
       "cell_type": "code",
@@ -228,7 +228,7 @@
         "da2 = mikeio.read(\"../data/HD2D.dfsu\", time=[2,3])[0]\n",
         "da1.time"
       ],
-      "id": "c83b63da"
+      "id": "3870a2a4"
     },
     {
       "cell_type": "code",
@@ -253,7 +253,7 @@
         "da3 = mikeio.DataArray.concat([da1,da2])\n",
         "da3"
       ],
-      "id": "d0d5069a"
+      "id": "a4d33657"
     },
     {
       "cell_type": "markdown",
@@ -439,7 +439,7 @@
         "\n",
         "#### Examples"
       ],
-      "id": "f9fa6681-a775-46a2-808f-0a7755b5301b"
+      "id": "1ae4601a-3cc2-4149-bd19-53b9e5a52136"
     },
     {
       "cell_type": "code",
@@ -468,7 +468,7 @@
         "da = mikeio.DataArray(data=np.array([0.0, np.nan, 2.0]), time=time)\n",
         "da"
       ],
-      "id": "2df92198"
+      "id": "7e595bc9"
     },
     {
       "cell_type": "code",
@@ -493,7 +493,7 @@
       "source": [
         "da.interp_na()"
       ],
-      "id": "842f5401"
+      "id": "a2d74c92"
     },
     {
       "cell_type": "markdown",
@@ -577,7 +577,7 @@
         "\n",
         "#### Examples"
       ],
-      "id": "86965f90-0820-475a-818a-ae7ebde6ec98"
+      "id": "a227234b-c4d5-430f-baf2-4d500a42d2e4"
     },
     {
       "cell_type": "code",
@@ -602,7 +602,7 @@
         "da = mikeio.read(\"../data/europe_wind_long_lat.dfs2\")[0]\n",
         "da"
       ],
-      "id": "26f2bb96"
+      "id": "7e9c2c3c"
     },
     {
       "cell_type": "code",
@@ -626,7 +626,7 @@
       "source": [
         "da.isel(time=-1)"
       ],
-      "id": "3b097a82"
+      "id": "46bd6e0b"
     },
     {
       "cell_type": "code",
@@ -650,7 +650,7 @@
       "source": [
         "da.isel(x=slice(10,20), y=slice(40,60))"
       ],
-      "id": "d71704fc"
+      "id": "dcb21e15"
     },
     {
       "cell_type": "code",
@@ -680,7 +680,7 @@
         "da = mikeio.read(\"../data/oresund_sigma_z.dfsu\").Temperature\n",
         "da.isel(element=range(200))"
       ],
-      "id": "644ebffb"
+      "id": "700393e3"
     },
     {
       "cell_type": "markdown",
@@ -1002,7 +1002,7 @@
         "\n",
         "#### Examples"
       ],
-      "id": "72282474-9fc0-4849-9916-55f86c68e493"
+      "id": "7b6f27fc-ad3e-4817-9452-0503bc851213"
     },
     {
       "cell_type": "code",
@@ -1027,7 +1027,7 @@
         "da = mikeio.read(\"../data/random.dfs1\")[0]\n",
         "da"
       ],
-      "id": "62cf48cd"
+      "id": "83e7c327"
     },
     {
       "cell_type": "code",
@@ -1051,7 +1051,7 @@
       "source": [
         "da.sel(time=slice(None, \"2012-1-1 00:02\"))"
       ],
-      "id": "96aca949"
+      "id": "55f1464e"
     },
     {
       "cell_type": "code",
@@ -1076,7 +1076,7 @@
       "source": [
         "da.sel(x=100)"
       ],
-      "id": "54a71afe"
+      "id": "8bff8d73"
     },
     {
       "cell_type": "code",
@@ -1106,7 +1106,7 @@
         "da = mikeio.read(\"../data/oresund_sigma_z.dfsu\").Temperature\n",
         "da"
       ],
-      "id": "73224e3e"
+      "id": "615053cd"
     },
     {
       "cell_type": "code",
@@ -1136,7 +1136,7 @@
       "source": [
         "da.sel(time=\"1997-09-15\")"
       ],
-      "id": "587d277d"
+      "id": "57d317d4"
     },
     {
       "cell_type": "code",
@@ -1161,7 +1161,7 @@
       "source": [
         "da.sel(x=340000, y=6160000, z=-3)"
       ],
-      "id": "d0b09a4a"
+      "id": "082b6dbf"
     },
     {
       "cell_type": "code",
@@ -1185,7 +1185,7 @@
       "source": [
         "da.sel(layers=\"bottom\")"
       ],
-      "id": "c5f6bf53"
+      "id": "62dfdf53"
     },
     {
       "cell_type": "markdown",
@@ -1297,7 +1297,7 @@
         "\n",
         "Export to xarray.DataArray."
       ],
-      "id": "86cde2bd-05e4-4cd1-af99-ebd602483acb"
+      "id": "a7cbb254-d8a4-4383-b5b0-3f5696faf155"
     }
   ],
   "nbformat": 4,
diff --git a/api/Dataset.html b/api/Dataset.html
index 8fdbcaa6e..a95b7d561 100644
--- a/api/Dataset.html
+++ b/api/Dataset.html
@@ -472,7 +472,7 @@ 

Examples

-
+
import mikeio
 mikeio.read("../data/europe_wind_long_lat.dfs2")
@@ -1318,7 +1318,7 @@

Examples

-
+
ds = mikeio.read("../data/HD2D.dfsu")
 ds
@@ -1333,7 +1333,7 @@

+
ds.interp_time(dt=1800)
<mikeio.Dataset>
@@ -1347,7 +1347,7 @@ 

+
ds.interp_time(freq='2h')
<mikeio.Dataset>
diff --git a/api/Dataset.ipynb b/api/Dataset.ipynb
index 8673a8c9e..60a0dd162 100644
--- a/api/Dataset.ipynb
+++ b/api/Dataset.ipynb
@@ -48,7 +48,7 @@
         "\n",
         "## Examples"
       ],
-      "id": "b7c2a77d-0ec0-44d7-885a-34d371d73688"
+      "id": "5caf73fb-194d-4cfb-8c0c-b2b1b2f02546"
     },
     {
       "cell_type": "code",
@@ -76,7 +76,7 @@
         "import mikeio\n",
         "mikeio.read(\"../data/europe_wind_long_lat.dfs2\")"
       ],
-      "id": "58ecea3b"
+      "id": "c07c3b37"
     },
     {
       "cell_type": "markdown",
@@ -454,7 +454,7 @@
         "\n",
         "#### Examples"
       ],
-      "id": "68e575a3-be64-49a0-86c6-a2ee60a63e52"
+      "id": "f16d52ea-571c-425a-8f94-8200febadbe9"
     },
     {
       "cell_type": "code",
@@ -483,7 +483,7 @@
         "ds = mikeio.read(\"../data/HD2D.dfsu\")\n",
         "ds"
       ],
-      "id": "969eed6f"
+      "id": "aa2ad0b1"
     },
     {
       "cell_type": "code",
@@ -511,7 +511,7 @@
       "source": [
         "ds.interp_time(dt=1800)"
       ],
-      "id": "e2783fd5"
+      "id": "225d6b6c"
     },
     {
       "cell_type": "code",
@@ -539,7 +539,7 @@
       "source": [
         "ds.interp_time(freq='2h')"
       ],
-      "id": "3f5bc382"
+      "id": "1ba439b2"
     },
     {
       "cell_type": "markdown",
@@ -1083,7 +1083,7 @@
         "\n",
         "Export to xarray.Dataset."
       ],
-      "id": "8120536c-35ba-476f-9f3b-c25fdb07f8d6"
+      "id": "f1af1511-c3de-4d15-9c14-720f64cdb3c3"
     }
   ],
   "nbformat": 4,
diff --git a/api/Dfs0.ipynb b/api/Dfs0.ipynb
index 7d8999368..4019e4bdb 100644
--- a/api/Dfs0.ipynb
+++ b/api/Dfs0.ipynb
@@ -92,7 +92,7 @@
         "|------|--------------|-------------|\n",
         "|      | pd.DataFrame |             |"
       ],
-      "id": "6d31d40b-6c65-4fbc-b4a0-c970dcdc2c6d"
+      "id": "eeaaa5b9-a0a4-461a-b977-eb9af4d1903d"
     }
   ],
   "nbformat": 4,
diff --git a/api/Dfs1.ipynb b/api/Dfs1.ipynb
index 9e3c7d78e..89e40cd6a 100644
--- a/api/Dfs1.ipynb
+++ b/api/Dfs1.ipynb
@@ -62,7 +62,7 @@
         "|------|---------|-------------|\n",
         "|      | Dataset |             |"
       ],
-      "id": "446b2e38-d637-470c-aecd-c64f09b98c6a"
+      "id": "805f0b8f-d316-4f33-a310-6909a88b172f"
     }
   ],
   "nbformat": 4,
diff --git a/api/Dfs2.ipynb b/api/Dfs2.ipynb
index 80543af7e..dd1d73b07 100644
--- a/api/Dfs2.ipynb
+++ b/api/Dfs2.ipynb
@@ -87,7 +87,7 @@
         "|------|---------|-------------|\n",
         "|      | Dataset |             |"
       ],
-      "id": "4b0118ca-36d6-4a73-bfd5-096a7345fd4a"
+      "id": "b3911358-268a-4137-9cd5-9a911cbd56aa"
     }
   ],
   "nbformat": 4,
diff --git a/api/Dfs3.ipynb b/api/Dfs3.ipynb
index a9a3ba339..d77e9a72a 100644
--- a/api/Dfs3.ipynb
+++ b/api/Dfs3.ipynb
@@ -90,7 +90,7 @@
         "|------|---------|-------------|\n",
         "|      | Dataset |             |"
       ],
-      "id": "1ab4d4d1-baad-4dc8-a384-40ad6dae9eae"
+      "id": "46323540-56f8-43cc-b35e-6144455b641e"
     }
   ],
   "nbformat": 4,
diff --git a/api/Dfsu.ipynb b/api/Dfsu.ipynb
index e1bc7cabe..203826827 100644
--- a/api/Dfsu.ipynb
+++ b/api/Dfsu.ipynb
@@ -12,7 +12,7 @@
         "Dfsu()\n",
         "```"
       ],
-      "id": "a7d5d40f-cac3-485d-8a13-1d01bfdac017"
+      "id": "4c0d77e7-c253-46d4-96c4-90b8f482357a"
     }
   ],
   "nbformat": 4,
diff --git a/api/EUMType.html b/api/EUMType.html
index 8d87f892f..e2e7be42d 100644
--- a/api/EUMType.html
+++ b/api/EUMType.html
@@ -404,14 +404,14 @@ 

EUMType

EUM type.

Examples

-
+
import mikeio
 mikeio.EUMType.Temperature
Temperature
-
+
mikeio.EUMType.Temperature.units
[degree Celsius, degree Fahrenheit, degree Kelvin]
diff --git a/api/EUMType.ipynb b/api/EUMType.ipynb index 21ddba706..4a718ffba 100644 --- a/api/EUMType.ipynb +++ b/api/EUMType.ipynb @@ -14,7 +14,7 @@ "\n", "## Examples" ], - "id": "c8abaa0c-0443-4c0b-a289-7b98b8e85de4" + "id": "3db9e84c-e4e4-4fe6-92f6-587912589a6f" }, { "cell_type": "code", @@ -35,7 +35,7 @@ "import mikeio\n", "mikeio.EUMType.Temperature" ], - "id": "4ae87410" + "id": "2f0933b1" }, { "cell_type": "code", @@ -55,7 +55,7 @@ "source": [ "mikeio.EUMType.Temperature.units" ], - "id": "173da230" + "id": "b9d0cd25" }, { "cell_type": "markdown", @@ -68,7 +68,7 @@ "| [display_name](#mikeio.EUMType.display_name) | Display friendly name. |\n", "| [units](#mikeio.EUMType.units) | List valid units for this EUM type. |" ], - "id": "4532ac10-d4cd-46dc-811f-64755b02c638" + "id": "a9386a93-ffcd-43ce-b5a2-6ab545c010d3" } ], "nbformat": 4, diff --git a/api/EUMUnit.html b/api/EUMUnit.html index 2f443bbed..76f5ec116 100644 --- a/api/EUMUnit.html +++ b/api/EUMUnit.html @@ -404,7 +404,7 @@

EUMUnit

EUM unit.

Examples

-
+
import mikeio
 mikeio.EUMUnit.degree_Kelvin
diff --git a/api/EUMUnit.ipynb b/api/EUMUnit.ipynb index 7f4f9a1c9..98742eeaa 100644 --- a/api/EUMUnit.ipynb +++ b/api/EUMUnit.ipynb @@ -14,7 +14,7 @@ "\n", "## Examples" ], - "id": "56c41d2e-616f-47e9-8391-0bed656bd7c6" + "id": "fbd9cf92-f8e7-46c1-8f05-fbe60b0225d9" }, { "cell_type": "code", @@ -35,7 +35,7 @@ "import mikeio\n", "mikeio.EUMUnit.degree_Kelvin" ], - "id": "ab26cd5a" + "id": "f826033c" }, { "cell_type": "markdown", @@ -47,7 +47,7 @@ "|----------------------------------------------|------------------------|\n", "| [display_name](#mikeio.EUMUnit.display_name) | Display friendly name. |" ], - "id": "1cf731a9-af56-4893-adc7-11ec1c7125bf" + "id": "53f667dc-fc5d-41f6-b2ef-914d3d4220b5" } ], "nbformat": 4, diff --git a/api/Grid1D.html b/api/Grid1D.html index b97f00734..5eb4b4b9e 100644 --- a/api/Grid1D.html +++ b/api/Grid1D.html @@ -596,7 +596,7 @@

Examples

-
+
import mikeio
 g = mikeio.Grid1D(nx=3,dx=0.1)
 g
@@ -605,14 +605,14 @@

x: [0, 0.1, 0.2] (nx=3, dx=0.1)

-
+
g.isel([1,2])
<mikeio.Grid1D>
 x: [0.1, 0.2] (nx=2, dx=0.1)
-
+
g.isel(1)
GeometryUndefined()
diff --git a/api/Grid1D.ipynb b/api/Grid1D.ipynb index 43d003170..8aa3c5a54 100644 --- a/api/Grid1D.ipynb +++ b/api/Grid1D.ipynb @@ -89,7 +89,7 @@ "\n", "#### Examples" ], - "id": "7f38c05f-6031-47d5-9590-1ff78c474ba8" + "id": "705cafbb-0168-4685-abe3-5f62ec6307e3" }, { "cell_type": "code", @@ -112,7 +112,7 @@ "g = mikeio.Grid1D(nx=3,dx=0.1)\n", "g" ], - "id": "3ea06f7e" + "id": "fedabec2" }, { "cell_type": "code", @@ -133,7 +133,7 @@ "source": [ "g.isel([1,2])" ], - "id": "50dd6ad9" + "id": "ec940c32" }, { "cell_type": "code", @@ -153,7 +153,7 @@ "source": [ "g.isel(1)" ], - "id": "9a4d74de" + "id": "4c7deab2" } ], "nbformat": 4, diff --git a/api/Grid2D.ipynb b/api/Grid2D.ipynb index 7cc7c8395..5a1f37115 100644 --- a/api/Grid2D.ipynb +++ b/api/Grid2D.ipynb @@ -163,7 +163,7 @@ "| outfilename | str | path of new mesh file | *required* |\n", "| z | float or array(float) | bathymetry values for each node, by default 0 if array: must have length=(nx+1)\\*(ny+1) | `None` |" ], - "id": "dacd6366-ea13-4826-aeec-a1efcea30594" + "id": "52554b50-6741-4a98-973a-1d13cc2147c6" } ], "nbformat": 4, diff --git a/api/Grid3D.ipynb b/api/Grid3D.ipynb index 28d47bbb8..c9fbc362a 100644 --- a/api/Grid3D.ipynb +++ b/api/Grid3D.ipynb @@ -69,7 +69,7 @@ "\n", "Get a subset geometry from this geometry." ], - "id": "9a83141d-71d4-4f02-a4bb-8e41ffe19f88" + "id": "5d8df3f0-e6ba-45e8-843e-22fe21cf15f2" } ], "nbformat": 4, diff --git a/api/ItemInfo.html b/api/ItemInfo.html index 4f9b06183..200374e0d 100644 --- a/api/ItemInfo.html +++ b/api/ItemInfo.html @@ -459,14 +459,14 @@

Examples

-
+
import mikeio
 mikeio.ItemInfo("Viken", mikeio.EUMType.Water_Level)
Viken <Water Level> (meter)
-
+
mikeio.ItemInfo(mikeio.EUMType.Wind_speed)
Wind speed <Wind speed> (meter per sec)
diff --git a/api/ItemInfo.ipynb b/api/ItemInfo.ipynb index 1ccbaf5f9..eb47e3fa4 100644 --- a/api/ItemInfo.ipynb +++ b/api/ItemInfo.ipynb @@ -29,7 +29,7 @@ "\n", "## Examples" ], - "id": "be8cfcab-b978-4274-95b6-43959736101a" + "id": "8f52b0c2-dbc0-42e4-ae37-c606dda5f678" }, { "cell_type": "code", @@ -50,7 +50,7 @@ "import mikeio\n", "mikeio.ItemInfo(\"Viken\", mikeio.EUMType.Water_Level)" ], - "id": "3fb3c260" + "id": "2257c93f" }, { "cell_type": "code", @@ -70,7 +70,7 @@ "source": [ "mikeio.ItemInfo(mikeio.EUMType.Wind_speed)" ], - "id": "69ecd44a" + "id": "47971dbf" }, { "cell_type": "markdown", @@ -90,7 +90,7 @@ "\n", "Create ItemInfo from a mikecore.DfsDynamicItemInfo object." ], - "id": "c0da41ea-d679-4470-a10a-92e8f4f49049" + "id": "4f7ff4a8-00fa-4f94-8e8e-91f106d69974" } ], "nbformat": 4, diff --git a/api/Mesh.html b/api/Mesh.html index 7eaeed775..5deac26b3 100644 --- a/api/Mesh.html +++ b/api/Mesh.html @@ -450,7 +450,7 @@

Examples

-
+
import mikeio
 mikeio.Mesh("../data/odense_rough.mesh")
@@ -506,7 +506,7 @@

Re

Examples

-
+
import mikeio
 msh = mikeio.open("../data/odense_rough.mesh")
 msh.to_shapely()
diff --git a/api/Mesh.ipynb b/api/Mesh.ipynb index f09b8173f..200e3e834 100644 --- a/api/Mesh.ipynb +++ b/api/Mesh.ipynb @@ -26,7 +26,7 @@ "\n", "## Examples" ], - "id": "c84dca2a-1142-4907-b941-dbf0683d83dc" + "id": "5d3164be-f157-452b-a7e5-9d2dab693659" }, { "cell_type": "code", @@ -50,7 +50,7 @@ "import mikeio\n", "mikeio.Mesh(\"../data/odense_rough.mesh\")" ], - "id": "0fcd7eb4" + "id": "2031c518" }, { "cell_type": "markdown", @@ -79,7 +79,7 @@ "\n", "#### Examples" ], - "id": "79223bb8-0e13-427c-ba58-b6f49f46e5b6" + "id": "6ebf0cbb-9874-4f35-8000-90bd15eaac5b" }, { "cell_type": "code", @@ -99,7 +99,7 @@ "msh = mikeio.open(\"../data/odense_rough.mesh\")\n", "msh.to_shapely()" ], - "id": "53b60831" + "id": "5074a59b" }, { "cell_type": "markdown", @@ -119,7 +119,7 @@ "|-------------|------|--------------|------------|\n", "| outfilename | str | path to file | *required* |" ], - "id": "d4e5a881-8a8a-4c0c-8716-92b4b02f704f" + "id": "32f99a96-6977-47ec-8666-439bc1c92bc3" } ], "nbformat": 4, diff --git a/api/PfsDocument.html b/api/PfsDocument.html index 835a7e43d..487a917f4 100644 --- a/api/PfsDocument.html +++ b/api/PfsDocument.html @@ -611,7 +611,7 @@

Examples

-
+
import pandas as pd
 import mikeio
 df = pd.DataFrame(dict(station=["Foo", "Bar"],include=[0,1]), index=[1,2])
@@ -645,7 +645,7 @@ 

-
+
mikeio.PfsSection.from_dataframe(df,"STATION_")
[STATION_1]
@@ -813,7 +813,7 @@ 

Examples

-
+
pfs = mikeio.read_pfs("../data/pfs/lake.sw")
 pfs.SW.OUTPUTS.to_dataframe(prefix="OUTPUT_")
diff --git a/api/PfsDocument.ipynb b/api/PfsDocument.ipynb index 0f6a90eab..89e230317 100644 --- a/api/PfsDocument.ipynb +++ b/api/PfsDocument.ipynb @@ -91,7 +91,7 @@ "\n", "#### Examples" ], - "id": "facd80b7-390a-4a15-a0cc-91dde6542a39" + "id": "6533979f-6bf5-46d9-92a5-814c9aa5e5d7" }, { "cell_type": "code", @@ -115,7 +115,7 @@ "df = pd.DataFrame(dict(station=[\"Foo\", \"Bar\"],include=[0,1]), index=[1,2])\n", "df" ], - "id": "e90e10e8" + "id": "0b321a4c" }, { "cell_type": "code", @@ -142,7 +142,7 @@ "source": [ "mikeio.PfsSection.from_dataframe(df,\"STATION_\")" ], - "id": "7423fd65" + "id": "9dbfd455" }, { "cell_type": "markdown", @@ -240,7 +240,7 @@ "\n", "#### Examples" ], - "id": "ea3aabf0-29aa-487d-ac46-640600047bc2" + "id": "d8dbd02c-6c6e-4421-a5aa-abf820ef1383" }, { "cell_type": "code", @@ -263,7 +263,7 @@ "pfs = mikeio.read_pfs(\"../data/pfs/lake.sw\")\n", "pfs.SW.OUTPUTS.to_dataframe(prefix=\"OUTPUT_\")" ], - "id": "d38215b5" + "id": "065a1740" }, { "cell_type": "markdown", @@ -311,7 +311,7 @@ "\n", "To return the content as a string, use repr()" ], - "id": "285213bc-2816-4a12-94d7-77b6402f2337" + "id": "4e5df8a7-def5-4451-98df-9d0d48142d18" } ], "nbformat": 4, diff --git a/api/PfsSection.html b/api/PfsSection.html index e9a0d6653..ec6985ae4 100644 --- a/api/PfsSection.html +++ b/api/PfsSection.html @@ -530,7 +530,7 @@

Examples

-
+
import pandas as pd
 import mikeio
 df = pd.DataFrame(dict(station=["Foo", "Bar"],include=[0,1]), index=[1,2])
@@ -564,7 +564,7 @@ 

-
+
mikeio.PfsSection.from_dataframe(df,"STATION_")
[STATION_1]
@@ -727,7 +727,7 @@ 

Examples

-
+
pfs = mikeio.read_pfs("../data/pfs/lake.sw")
 pfs.SW.OUTPUTS.to_dataframe(prefix="OUTPUT_")
diff --git a/api/PfsSection.ipynb b/api/PfsSection.ipynb index 81d1b62b0..4467ec3c4 100644 --- a/api/PfsSection.ipynb +++ b/api/PfsSection.ipynb @@ -69,7 +69,7 @@ "\n", "#### Examples" ], - "id": "00e67433-d8fe-4d58-92e2-278644b7a703" + "id": "8ced3476-15ea-467e-8813-8e479a675160" }, { "cell_type": "code", @@ -93,7 +93,7 @@ "df = pd.DataFrame(dict(station=[\"Foo\", \"Bar\"],include=[0,1]), index=[1,2])\n", "df" ], - "id": "476f7b62" + "id": "580fdf34" }, { "cell_type": "code", @@ -120,7 +120,7 @@ "source": [ "mikeio.PfsSection.from_dataframe(df,\"STATION_\")" ], - "id": "cc45aebc" + "id": "e217e78b" }, { "cell_type": "markdown", @@ -210,7 +210,7 @@ "\n", "#### Examples" ], - "id": "6a5bf348-77fb-4edb-a77b-8debb37f2238" + "id": "6a6167ce-6344-4e24-b6ab-9502b52c85e3" }, { "cell_type": "code", @@ -233,7 +233,7 @@ "pfs = mikeio.read_pfs(\"../data/pfs/lake.sw\")\n", "pfs.SW.OUTPUTS.to_dataframe(prefix=\"OUTPUT_\")" ], - "id": "75d4b2c6" + "id": "e67ada97" }, { "cell_type": "markdown", @@ -263,7 +263,7 @@ "\n", "Return a new view of the PfsSection’s values." ], - "id": "18c4ae2b-f229-4da3-863f-02147f210a96" + "id": "2c985b85-ac32-49d3-9c96-01c98653d472" } ], "nbformat": 4, diff --git a/api/dataset._data_plot._DataArrayPlotter.ipynb b/api/dataset._data_plot._DataArrayPlotter.ipynb index 8f608e672..df4f2404b 100644 --- a/api/dataset._data_plot._DataArrayPlotter.ipynb +++ b/api/dataset._data_plot._DataArrayPlotter.ipynb @@ -62,7 +62,7 @@ "\n", "Plot data as lines (timeseries if time is present)." ], - "id": "3c1162dc-126a-4f95-8268-21c827983817" + "id": "42763879-eaef-40b3-b023-a944f3cea43a" } ], "nbformat": 4, diff --git a/api/dataset._data_plot._DataArrayPlotterFM.html b/api/dataset._data_plot._DataArrayPlotterFM.html index 44590ebcb..cef216085 100644 --- a/api/dataset._data_plot._DataArrayPlotterFM.html +++ b/api/dataset._data_plot._DataArrayPlotterFM.html @@ -415,7 +415,7 @@

dataset._data_plot._DataArrayPlotterFM

If DataArray is 3D the surface layer will be plotted.

Examples

-
+
import mikeio
 da = mikeio.read("../data/HD2D.dfsu")["Surface elevation"]
 da.plot()
@@ -474,7 +474,7 @@

Examples

-
+
da = mikeio.read("../data/HD2D.dfsu")["Surface elevation"]
 da.plot.contour()
@@ -493,7 +493,7 @@

Examples

-
+
da = mikeio.read("../data/HD2D.dfsu")["Surface elevation"]
 da.plot.contourf()
@@ -601,7 +601,7 @@

Examples

-
+
da = mikeio.read("../data/HD2D.dfsu")["Surface elevation"]
 da.plot.mesh()
@@ -620,7 +620,7 @@

Examples

-
+
da = mikeio.read("../data/HD2D.dfsu")["Surface elevation"]
 da.plot.outline()
@@ -639,7 +639,7 @@

Examples

-
+
da = mikeio.read("../data/HD2D.dfsu")["Surface elevation"]
 da.plot.patch()
diff --git a/api/dataset._data_plot._DataArrayPlotterFM.ipynb b/api/dataset._data_plot._DataArrayPlotterFM.ipynb index 098033816..2df2d33dd 100644 --- a/api/dataset._data_plot._DataArrayPlotterFM.ipynb +++ b/api/dataset._data_plot._DataArrayPlotterFM.ipynb @@ -18,7 +18,7 @@ "\n", "## Examples" ], - "id": "a57d5f12-43ba-4d92-a445-66c0fd734734" + "id": "b46ef054-c83c-4418-a2e8-2095a4a2cc15" }, { "cell_type": "code", @@ -38,7 +38,7 @@ "da = mikeio.read(\"../data/HD2D.dfsu\")[\"Surface elevation\"]\n", "da.plot()" ], - "id": "7c31e0ec" + "id": "507ce193" }, { "cell_type": "markdown", @@ -66,7 +66,7 @@ "\n", "#### Examples" ], - "id": "d5529945-3a6b-4ee9-84ca-7f7c18f5099e" + "id": "c0c8bba6-31a6-46d0-a682-0df3c1c911d6" }, { "cell_type": "code", @@ -85,7 +85,7 @@ "da = mikeio.read(\"../data/HD2D.dfsu\")[\"Surface elevation\"]\n", "da.plot.contour()" ], - "id": "e9198727" + "id": "ccdc01f1" }, { "cell_type": "markdown", @@ -101,7 +101,7 @@ "\n", "#### Examples" ], - "id": "a3756913-dd2d-4653-ac00-0200361f371b" + "id": "72e7b769-2ebc-4c4b-9ab9-3a88a5197571" }, { "cell_type": "code", @@ -120,7 +120,7 @@ "da = mikeio.read(\"../data/HD2D.dfsu\")[\"Surface elevation\"]\n", "da.plot.contourf()" ], - "id": "e87c2e93" + "id": "2c9092d9" }, { "cell_type": "markdown", @@ -177,7 +177,7 @@ "\n", "#### Examples" ], - "id": "c037329c-57b9-41f9-bb80-fee7f213d5fc" + "id": "8184e9b6-080a-4c72-89b2-3ca4f19b927e" }, { "cell_type": "code", @@ -196,7 +196,7 @@ "da = mikeio.read(\"../data/HD2D.dfsu\")[\"Surface elevation\"]\n", "da.plot.mesh()" ], - "id": "02bb2806" + "id": "806307ee" }, { "cell_type": "markdown", @@ -212,7 +212,7 @@ "\n", "#### Examples" ], - "id": "81c16090-67a1-4a22-adfa-f39e5f54eb31" + "id": "cfab4718-f2b5-45fc-83ff-771e0520b142" }, { "cell_type": "code", @@ -231,7 +231,7 @@ "da = mikeio.read(\"../data/HD2D.dfsu\")[\"Surface elevation\"]\n", "da.plot.outline()" ], - "id": "b90bb4be" + "id": "7e0ee80b" }, { "cell_type": "markdown", @@ -247,7 +247,7 @@ "\n", "#### Examples" ], - "id": "7a647ad1-621a-4a21-b34d-d6a6123aaf18" + "id": "8a3b101f-e2b7-44b9-af66-6f673aba964f" }, { "cell_type": "code", @@ -266,7 +266,7 @@ "da = mikeio.read(\"../data/HD2D.dfsu\")[\"Surface elevation\"]\n", "da.plot.patch()" ], - "id": "e3548ddd" + "id": "b5cd1b43" } ], "nbformat": 4, diff --git a/api/dataset._data_plot._DataArrayPlotterFMVerticalColumn.html b/api/dataset._data_plot._DataArrayPlotterFMVerticalColumn.html index 189fe0b06..55424334a 100644 --- a/api/dataset._data_plot._DataArrayPlotterFMVerticalColumn.html +++ b/api/dataset._data_plot._DataArrayPlotterFMVerticalColumn.html @@ -410,7 +410,7 @@

dataset._data_plot._DataArrayPlotterFMVertic

If DataArray has multiple time steps, the first step will be plotted.

Examples

-
+
import mikeio
 ds = mikeio.read("../data/oresund_sigma_z.dfsu")
 dsp = ds.sel(x=333934.1, y=6158101.5)
@@ -424,7 +424,7 @@ 

-
+
da.plot(extrapolate=False, marker='o')
@@ -434,7 +434,7 @@

-
+
da.plot.pcolormesh()
@@ -444,7 +444,7 @@

-
+
da.plot.hist()
(array([1., 0., 0., 1., 1., 0., 1., 4., 1., 3.]),
diff --git a/api/dataset._data_plot._DataArrayPlotterFMVerticalColumn.ipynb b/api/dataset._data_plot._DataArrayPlotterFMVerticalColumn.ipynb
index 6dfd64bf4..4707ab72b 100644
--- a/api/dataset._data_plot._DataArrayPlotterFMVerticalColumn.ipynb
+++ b/api/dataset._data_plot._DataArrayPlotterFMVerticalColumn.ipynb
@@ -16,7 +16,7 @@
         "\n",
         "## Examples"
       ],
-      "id": "e183d8a1-bc99-4a5b-83fb-8dd1e264dac4"
+      "id": "9cfc87cb-5be9-4858-bb3e-eb033038f2b2"
     },
     {
       "cell_type": "code",
@@ -38,7 +38,7 @@
         "da = dsp[\"Temperature\"]\n",
         "da.plot()"
       ],
-      "id": "11201cd1"
+      "id": "dc4d9262"
     },
     {
       "cell_type": "code",
@@ -56,7 +56,7 @@
       "source": [
         "da.plot(extrapolate=False, marker='o')"
       ],
-      "id": "e9fb0c68"
+      "id": "b1ff3986"
     },
     {
       "cell_type": "code",
@@ -74,7 +74,7 @@
       "source": [
         "da.plot.pcolormesh()"
       ],
-      "id": "1f4f1db4"
+      "id": "848151c1"
     },
     {
       "cell_type": "code",
@@ -105,7 +105,7 @@
       "source": [
         "da.plot.hist()"
       ],
-      "id": "d5c482b8"
+      "id": "72247f04"
     },
     {
       "cell_type": "markdown",
@@ -178,7 +178,7 @@
         "\n",
         "Plot data as coloured patches."
       ],
-      "id": "d15f6442-a682-4115-8bd5-b84910c57dff"
+      "id": "78256e04-3848-44bf-a08f-65564569a229"
     }
   ],
   "nbformat": 4,
diff --git a/api/dataset._data_plot._DataArrayPlotterFMVerticalProfile.html b/api/dataset._data_plot._DataArrayPlotterFMVerticalProfile.html
index 9b0532b0e..4e72e78cd 100644
--- a/api/dataset._data_plot._DataArrayPlotterFMVerticalProfile.html
+++ b/api/dataset._data_plot._DataArrayPlotterFMVerticalProfile.html
@@ -409,7 +409,7 @@ 

dataset._data_plot._DataArrayPlotterFMVertic

If DataArray has multiple time steps, the first step will be plotted.

Examples

-
+
import mikeio
 da = mikeio.read("../data/oresund_vertical_slice.dfsu")["Temperature"]
 da.plot()
@@ -421,7 +421,7 @@

-
+
da.plot.hist()
(array([  1.,   2.,  19.,  70., 202., 384., 336., 167., 127.,  15.]),
diff --git a/api/dataset._data_plot._DataArrayPlotterFMVerticalProfile.ipynb b/api/dataset._data_plot._DataArrayPlotterFMVerticalProfile.ipynb
index 835fc9ce7..cb608735a 100644
--- a/api/dataset._data_plot._DataArrayPlotterFMVerticalProfile.ipynb
+++ b/api/dataset._data_plot._DataArrayPlotterFMVerticalProfile.ipynb
@@ -16,7 +16,7 @@
         "\n",
         "## Examples"
       ],
-      "id": "3646e0df-d0f2-4c2b-8e13-43f5fde1bfde"
+      "id": "8e040eda-e2df-4d12-b84a-6d96add52de6"
     },
     {
       "cell_type": "code",
@@ -36,7 +36,7 @@
         "da = mikeio.read(\"../data/oresund_vertical_slice.dfsu\")[\"Temperature\"]\n",
         "da.plot()"
       ],
-      "id": "286c89ea"
+      "id": "38baf003"
     },
     {
       "cell_type": "code",
@@ -67,7 +67,7 @@
       "source": [
         "da.plot.hist()"
       ],
-      "id": "c4243d2e"
+      "id": "2e266e61"
     },
     {
       "cell_type": "markdown",
@@ -125,7 +125,7 @@
         "\n",
         "Plot data as lines (timeseries if time is present)."
       ],
-      "id": "9e03e3cd-2319-4a23-8763-b9c4b4dce49d"
+      "id": "aaa675b3-4ab4-4304-8b11-860e6b46bb43"
     }
   ],
   "nbformat": 4,
diff --git a/api/dataset._data_plot._DataArrayPlotterGrid1D.ipynb b/api/dataset._data_plot._DataArrayPlotterGrid1D.ipynb
index 4504e0abc..2b4f8a32d 100644
--- a/api/dataset._data_plot._DataArrayPlotterGrid1D.ipynb
+++ b/api/dataset._data_plot._DataArrayPlotterGrid1D.ipynb
@@ -114,7 +114,7 @@
         "\n",
         "Plot as timeseries."
       ],
-      "id": "420c718f-3833-4eb8-822c-e11848c49b13"
+      "id": "403d771f-dbec-405c-8b80-dac641af8abc"
     }
   ],
   "nbformat": 4,
diff --git a/api/dataset._data_plot._DataArrayPlotterGrid2D.html b/api/dataset._data_plot._DataArrayPlotterGrid2D.html
index c9f92aa3e..df99f55e7 100644
--- a/api/dataset._data_plot._DataArrayPlotterGrid2D.html
+++ b/api/dataset._data_plot._DataArrayPlotterGrid2D.html
@@ -412,7 +412,7 @@ 

dataset._data_plot._DataArrayPlotterGrid2DIf DataArray has multiple time steps, the first step will be plotted.

Examples

-
+
import mikeio
 da = mikeio.read("../data/gebco_sound.dfs2")["Elevation"]
 da.plot()
@@ -468,7 +468,7 @@

Examples

-
+
da = mikeio.read("../data/gebco_sound.dfs2")["Elevation"]
 da.plot.contour()
@@ -493,7 +493,7 @@

Examples

-
+
da = mikeio.read("../data/gebco_sound.dfs2")["Elevation"]
 da.plot.contourf()
@@ -607,7 +607,7 @@

Examples

-
+
da = mikeio.read("../data/gebco_sound.dfs2")["Elevation"]
 da.plot.pcolormesh()
diff --git a/api/dataset._data_plot._DataArrayPlotterGrid2D.ipynb b/api/dataset._data_plot._DataArrayPlotterGrid2D.ipynb index 6d03a0f7a..941c649ee 100644 --- a/api/dataset._data_plot._DataArrayPlotterGrid2D.ipynb +++ b/api/dataset._data_plot._DataArrayPlotterGrid2D.ipynb @@ -16,7 +16,7 @@ "\n", "## Examples" ], - "id": "09e2f8f1-4a13-4d19-86dd-fd1514fa36bd" + "id": "c3afbb65-7f8d-4532-88f6-eff8b90e85bf" }, { "cell_type": "code", @@ -36,7 +36,7 @@ "da = mikeio.read(\"../data/gebco_sound.dfs2\")[\"Elevation\"]\n", "da.plot()" ], - "id": "e1e854ce" + "id": "bb1a4437" }, { "cell_type": "markdown", @@ -67,7 +67,7 @@ "\n", "#### Examples" ], - "id": "a0c504c8-c1a9-41fb-b349-51598691d8ab" + "id": "ddb5953b-f18d-4f46-a6e0-e0959986b4fb" }, { "cell_type": "code", @@ -86,7 +86,7 @@ "da = mikeio.read(\"../data/gebco_sound.dfs2\")[\"Elevation\"]\n", "da.plot.contour()" ], - "id": "24c97235" + "id": "fea660d0" }, { "cell_type": "markdown", @@ -108,7 +108,7 @@ "\n", "#### Examples" ], - "id": "071204c8-ddb1-4731-9bd3-e018246f1fd0" + "id": "bebd456a-428e-4ae2-9007-2c5a93c3a964" }, { "cell_type": "code", @@ -127,7 +127,7 @@ "da = mikeio.read(\"../data/gebco_sound.dfs2\")[\"Elevation\"]\n", "da.plot.contourf()" ], - "id": "7737a4c9" + "id": "4cdd3933" }, { "cell_type": "markdown", @@ -190,7 +190,7 @@ "\n", "#### Examples" ], - "id": "09c16ec7-00df-426d-975e-f3ca7c109a20" + "id": "621b12f2-6687-4c8f-8065-8c05acf97484" }, { "cell_type": "code", @@ -209,7 +209,7 @@ "da = mikeio.read(\"../data/gebco_sound.dfs2\")[\"Elevation\"]\n", "da.plot.pcolormesh()" ], - "id": "7ca59587" + "id": "f033574c" } ], "nbformat": 4, diff --git a/api/dataset._data_plot._DatasetPlotter.ipynb b/api/dataset._data_plot._DatasetPlotter.ipynb index d51843144..fa482f378 100644 --- a/api/dataset._data_plot._DatasetPlotter.ipynb +++ b/api/dataset._data_plot._DatasetPlotter.ipynb @@ -57,7 +57,7 @@ ">>> ds.plot.scatter(x=0, y=1, figsize=(9,9), marker='*')\n", "```" ], - "id": "91b39bdf-6387-431d-9346-772554be31f4" + "id": "59c5a320-414a-4941-8ea4-a672cb8a2d86" } ], "nbformat": 4, diff --git a/api/dfsu.Dfsu2DH.html b/api/dfsu.Dfsu2DH.html index f9545f9c5..77b1152eb 100644 --- a/api/dfsu.Dfsu2DH.html +++ b/api/dfsu.Dfsu2DH.html @@ -163,7 +163,7 @@
-
+
+ +
+
+

dfsu.Dfsu2DH

+
+
+ + + + +
+ + + +
+ -
-

dfsu.Dfsu2DH

dfsu.Dfsu2DH(self, filename)

Attributes

@@ -589,23 +600,31 @@

Re

Examples

-
>>> dfsu = mikeio.open("tests/testdata/NorthSea_HD_and_windspeed.dfsu")
->>> ds = dfsu.extract_track("tests/testdata/altimetry_NorthSea_20171027.csv")
->>> ds
-<mikeio.Dataset>
-dims: (time:1115)
-time: 2017-10-26 04:37:37 - 2017-10-30 20:54:47 (1115 non-equidistant records)
-geometry: GeometryUndefined()
-items:
-  0:  Longitude <Undefined> (undefined)
-  1:  Latitude <Undefined> (undefined)
-  2:  Surface elevation <Surface Elevation> (meter)
-  3:  Wind speed <Wind speed> (meter per sec)
+
+
import mikeio
+
+ds = (
+    mikeio.open("../data/NorthSea_HD_and_windspeed.dfsu")
+          .extract_track("../data/altimetry_NorthSea_20171027.csv")
+    )
+ds
+
+
<mikeio.Dataset>
+dims: (time:1115)
+time: 2017-10-26 04:37:37 - 2017-10-30 20:54:47 (1115 non-equidistant records)
+geometry: GeometryUndefined()
+items:
+  0:  Longitude <Latitude longitude> (degree)
+  1:  Latitude <Latitude longitude> (degree)
+  2:  Surface elevation <Surface Elevation> (meter)
+  3:  Wind speed <Wind speed> (meter per sec)
+
+

get_overset_grid

-
dfsu.Dfsu2DH.get_overset_grid(dx=None, dy=None, nx=None, ny=None, buffer=0.0)
+
dfsu.Dfsu2DH.get_overset_grid(dx=None, dy=None, nx=None, ny=None, buffer=0.0)

get a 2d grid that covers the domain by specifying spacing or shape.

Parameters

@@ -680,18 +699,18 @@

read

-
dfsu.Dfsu2DH.read(
-    items=None,
-    time=None,
-    elements=None,
-    area=None,
-    x=None,
-    y=None,
-    keepdims=False,
-    dtype=np.float32,
-    error_bad_data=True,
-    fill_bad_data_value=np.nan,
-)
+
dfsu.Dfsu2DH.read(
+    items=None,
+    time=None,
+    elements=None,
+    area=None,
+    x=None,
+    y=None,
+    keepdims=False,
+    dtype=np.float32,
+    error_bad_data=True,
+    fill_bad_data_value=np.nan,
+)

Read data from a dfsu file.

Parameters

@@ -797,7 +816,6 @@

-