import pandas as pd
import mikeio
@@ -870,7 +870,7 @@
Examples
-
+
= mikeio.read("../data/HD2D.dfsu", time=[0,1])[0]
da1 = mikeio.read("../data/HD2D.dfsu", time=[2,3])[0]
da2 da1.time
@@ -878,7 +878,7 @@
+
= mikeio.DataArray.concat([da1,da2])
da3 da3
@@ -1236,7 +1236,7 @@ interp_na
Wrapper of xarray.DataArray.interpolate_na
Examples
-
+
import numpy as np
import pandas as pd
= pd.date_range("2000", periods=3, freq="D")
@@ -1251,7 +1251,7 @@ time
+
da.interp_na()
<mikeio.DataArray>
@@ -1446,7 +1446,7 @@
Examples
-
+
= mikeio.read("../data/europe_wind_long_lat.dfs2")[0]
da da
@@ -1457,7 +1457,7 @@
+
=-1) da.isel(time
<mikeio.DataArray>
@@ -1467,7 +1467,7 @@
+
=slice(10,20), y=slice(40,60)) da.isel(x
<mikeio.DataArray>
@@ -1477,7 +1477,7 @@
+
= mikeio.read("../data/oresund_sigma_z.dfsu").Temperature
da =range(200)) da.isel(element
@@ -2234,7 +2234,7 @@
Examples
-
+
= mikeio.read("../data/random.dfs1")[0]
da da
@@ -2245,7 +2245,7 @@
+
=slice(None, "2012-1-1 00:02")) da.sel(time
<mikeio.DataArray>
@@ -2255,7 +2255,7 @@
+
=100) da.sel(x
<mikeio.DataArray>
@@ -2266,7 +2266,7 @@
+
= mikeio.read("../data/oresund_sigma_z.dfsu").Temperature
da da
@@ -2282,7 +2282,7 @@
+
="1997-09-15") da.sel(time
<mikeio.DataArray>
@@ -2298,7 +2298,7 @@
+
=340000, y=6160000, z=-3) da.sel(x
<mikeio.DataArray>
@@ -2309,7 +2309,7 @@
+
="bottom") da.sel(layers
<mikeio.DataArray>
diff --git a/api/DataArray.ipynb b/api/DataArray.ipynb
index cbf352d08..c4cc800f6 100644
--- a/api/DataArray.ipynb
+++ b/api/DataArray.ipynb
@@ -31,7 +31,7 @@
"\n",
"## Examples"
],
- "id": "d7c3b061-9c30-4b63-9e7c-57a24c3186d0"
+ "id": "34f0e98e-3116-44bf-af76-fe3ddec868b0"
},
{
"cell_type": "code",
@@ -62,7 +62,7 @@
" item=mikeio.ItemInfo(\"Water level\", mikeio.EUMType.Water_Level))\n",
"da"
],
- "id": "097aa824"
+ "id": "57e442d2"
},
{
"cell_type": "markdown",
@@ -206,7 +206,7 @@
"\n",
"#### Examples"
],
- "id": "38756cc7-90c9-4f00-b6f7-e671f65745d4"
+ "id": "c25d31fa-a495-4513-b5c7-ef439e8dd9d4"
},
{
"cell_type": "code",
@@ -228,7 +228,7 @@
"da2 = mikeio.read(\"../data/HD2D.dfsu\", time=[2,3])[0]\n",
"da1.time"
],
- "id": "18554014"
+ "id": "72ec8b57"
},
{
"cell_type": "code",
@@ -253,7 +253,7 @@
"da3 = mikeio.DataArray.concat([da1,da2])\n",
"da3"
],
- "id": "083484c8"
+ "id": "e81b07f7"
},
{
"cell_type": "markdown",
@@ -439,7 +439,7 @@
"\n",
"#### Examples"
],
- "id": "de7558a1-a359-4d84-ab6c-cfd08f857b8d"
+ "id": "c51626c3-44f7-40d2-8193-788da7bdb235"
},
{
"cell_type": "code",
@@ -468,7 +468,7 @@
"da = mikeio.DataArray(data=np.array([0.0, np.nan, 2.0]), time=time)\n",
"da"
],
- "id": "81046cdb"
+ "id": "e29806f7"
},
{
"cell_type": "code",
@@ -493,7 +493,7 @@
"source": [
"da.interp_na()"
],
- "id": "14b1379d"
+ "id": "44f2706b"
},
{
"cell_type": "markdown",
@@ -577,7 +577,7 @@
"\n",
"#### Examples"
],
- "id": "868bed3c-efc4-4985-b257-c5b1744db5ef"
+ "id": "07e6c012-aa96-4b58-8a0d-9fcc90a5bc97"
},
{
"cell_type": "code",
@@ -602,7 +602,7 @@
"da = mikeio.read(\"../data/europe_wind_long_lat.dfs2\")[0]\n",
"da"
],
- "id": "f7be3cca"
+ "id": "6f3b614a"
},
{
"cell_type": "code",
@@ -626,7 +626,7 @@
"source": [
"da.isel(time=-1)"
],
- "id": "d8bc35ee"
+ "id": "ae26f3be"
},
{
"cell_type": "code",
@@ -650,7 +650,7 @@
"source": [
"da.isel(x=slice(10,20), y=slice(40,60))"
],
- "id": "8e0a27da"
+ "id": "f250ec4e"
},
{
"cell_type": "code",
@@ -680,7 +680,7 @@
"da = mikeio.read(\"../data/oresund_sigma_z.dfsu\").Temperature\n",
"da.isel(element=range(200))"
],
- "id": "8d103bfa"
+ "id": "b00d129b"
},
{
"cell_type": "markdown",
@@ -1002,7 +1002,7 @@
"\n",
"#### Examples"
],
- "id": "8aa65f22-24e7-48a7-b6b4-c1b59b162f3f"
+ "id": "b1c0eb15-0814-4144-a471-9d5d919cf40b"
},
{
"cell_type": "code",
@@ -1027,7 +1027,7 @@
"da = mikeio.read(\"../data/random.dfs1\")[0]\n",
"da"
],
- "id": "42a4fbe3"
+ "id": "bd250e56"
},
{
"cell_type": "code",
@@ -1051,7 +1051,7 @@
"source": [
"da.sel(time=slice(None, \"2012-1-1 00:02\"))"
],
- "id": "bfbe0b23"
+ "id": "b7b4c800"
},
{
"cell_type": "code",
@@ -1076,7 +1076,7 @@
"source": [
"da.sel(x=100)"
],
- "id": "2e89ae1c"
+ "id": "4f4e0803"
},
{
"cell_type": "code",
@@ -1106,7 +1106,7 @@
"da = mikeio.read(\"../data/oresund_sigma_z.dfsu\").Temperature\n",
"da"
],
- "id": "91683e98"
+ "id": "df1206c4"
},
{
"cell_type": "code",
@@ -1136,7 +1136,7 @@
"source": [
"da.sel(time=\"1997-09-15\")"
],
- "id": "7391c197"
+ "id": "1e3fbbd2"
},
{
"cell_type": "code",
@@ -1161,7 +1161,7 @@
"source": [
"da.sel(x=340000, y=6160000, z=-3)"
],
- "id": "fce5ec6f"
+ "id": "a8a2a6ce"
},
{
"cell_type": "code",
@@ -1185,7 +1185,7 @@
"source": [
"da.sel(layers=\"bottom\")"
],
- "id": "f9272f9f"
+ "id": "4efd2bc8"
},
{
"cell_type": "markdown",
@@ -1297,7 +1297,7 @@
"\n",
"Export to xarray.DataArray."
],
- "id": "827a298e-b115-4ed8-830e-bdcbd6eeea57"
+ "id": "87000e6a-80fe-46a7-8382-74189d253777"
}
],
"nbformat": 4,
diff --git a/api/Dataset.html b/api/Dataset.html
index 0edfd8e5b..b0ee3cac2 100644
--- a/api/Dataset.html
+++ b/api/Dataset.html
@@ -472,7 +472,7 @@
Examples
-
+
import mikeio
"../data/europe_wind_long_lat.dfs2") mikeio.read(
@@ -1318,7 +1318,7 @@
Examples
-
+
= mikeio.read("../data/HD2D.dfsu")
ds ds
@@ -1333,7 +1333,7 @@
+
=1800) ds.interp_time(dt
<mikeio.Dataset>
@@ -1347,7 +1347,7 @@
+
='2h') ds.interp_time(freq
<mikeio.Dataset>
diff --git a/api/Dataset.ipynb b/api/Dataset.ipynb
index 9e92f19fd..2594df70f 100644
--- a/api/Dataset.ipynb
+++ b/api/Dataset.ipynb
@@ -48,7 +48,7 @@
"\n",
"## Examples"
],
- "id": "22cd0ae6-f73f-403a-9d3a-5d07f9917fe9"
+ "id": "d3bdf998-3eaf-42c1-9ca9-3119f580d41f"
},
{
"cell_type": "code",
@@ -76,7 +76,7 @@
"import mikeio\n",
"mikeio.read(\"../data/europe_wind_long_lat.dfs2\")"
],
- "id": "2b79b0ea"
+ "id": "18b9aa69"
},
{
"cell_type": "markdown",
@@ -454,7 +454,7 @@
"\n",
"#### Examples"
],
- "id": "76acfdb3-d6b1-44d4-9a18-cb1592b2b61c"
+ "id": "d9f97eef-912a-45cf-9162-c4c7af840e88"
},
{
"cell_type": "code",
@@ -483,7 +483,7 @@
"ds = mikeio.read(\"../data/HD2D.dfsu\")\n",
"ds"
],
- "id": "437852e4"
+ "id": "c913ca55"
},
{
"cell_type": "code",
@@ -511,7 +511,7 @@
"source": [
"ds.interp_time(dt=1800)"
],
- "id": "3392183b"
+ "id": "ccbadb8c"
},
{
"cell_type": "code",
@@ -539,7 +539,7 @@
"source": [
"ds.interp_time(freq='2h')"
],
- "id": "d7e5c36a"
+ "id": "4edbafe4"
},
{
"cell_type": "markdown",
@@ -1083,7 +1083,7 @@
"\n",
"Export to xarray.Dataset."
],
- "id": "9ddabb4f-da5f-42d3-8b12-491a3aa665e9"
+ "id": "497ee9b7-158b-4290-b1f0-f61201aa6211"
}
],
"nbformat": 4,
diff --git a/api/Dfs0.ipynb b/api/Dfs0.ipynb
index dc2703f3e..5926860e2 100644
--- a/api/Dfs0.ipynb
+++ b/api/Dfs0.ipynb
@@ -92,7 +92,7 @@
"|------|--------------|-------------|\n",
"| | pd.DataFrame | |"
],
- "id": "626bf08a-9d9a-4ea2-95a4-95bdc27546fa"
+ "id": "8b0a79fa-c141-467e-9975-60fde31acc6b"
}
],
"nbformat": 4,
diff --git a/api/Dfs1.ipynb b/api/Dfs1.ipynb
index 58fe07831..25e14ac03 100644
--- a/api/Dfs1.ipynb
+++ b/api/Dfs1.ipynb
@@ -62,7 +62,7 @@
"|------|---------|-------------|\n",
"| | Dataset | |"
],
- "id": "82c1d852-a5de-4cac-9536-298b909edf4f"
+ "id": "1358bb3d-481c-4e95-9298-74fd4bda2720"
}
],
"nbformat": 4,
diff --git a/api/Dfs2.ipynb b/api/Dfs2.ipynb
index bcfb31a3c..0f182d69c 100644
--- a/api/Dfs2.ipynb
+++ b/api/Dfs2.ipynb
@@ -87,7 +87,7 @@
"|------|---------|-------------|\n",
"| | Dataset | |"
],
- "id": "905d5af8-2b85-46e2-ac9a-31dca4282748"
+ "id": "1158afc8-2f25-446a-b5c5-213898c97d61"
}
],
"nbformat": 4,
diff --git a/api/Dfs3.ipynb b/api/Dfs3.ipynb
index 9a2c3b2d4..8e844807e 100644
--- a/api/Dfs3.ipynb
+++ b/api/Dfs3.ipynb
@@ -90,7 +90,7 @@
"|------|---------|-------------|\n",
"| | Dataset | |"
],
- "id": "d81e6477-6045-46bb-811b-2d2cf97da653"
+ "id": "07056054-198b-4557-9010-3e3b0e9f1dbc"
}
],
"nbformat": 4,
diff --git a/api/Dfsu.ipynb b/api/Dfsu.ipynb
index 28560d730..87716571d 100644
--- a/api/Dfsu.ipynb
+++ b/api/Dfsu.ipynb
@@ -12,7 +12,7 @@
"Dfsu()\n",
"```"
],
- "id": "3135c866-d32c-49ae-b597-680cff7dd053"
+ "id": "87a46124-77d5-424b-a596-2d4ecefa1c4e"
}
],
"nbformat": 4,
diff --git a/api/EUMType.html b/api/EUMType.html
index 095a107f0..55a1d647d 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 be42dffb7..b080d9281 100644
--- a/api/EUMType.ipynb
+++ b/api/EUMType.ipynb
@@ -14,7 +14,7 @@
"\n",
"## Examples"
],
- "id": "127f1b56-2b87-4905-a715-6884aa826cda"
+ "id": "46ee024e-6ecc-46ed-a57e-8acf2f8e6bfd"
},
{
"cell_type": "code",
@@ -35,7 +35,7 @@
"import mikeio\n",
"mikeio.EUMType.Temperature"
],
- "id": "b5fc85a6"
+ "id": "8ae6c909"
},
{
"cell_type": "code",
@@ -55,7 +55,7 @@
"source": [
"mikeio.EUMType.Temperature.units"
],
- "id": "590cfb51"
+ "id": "327eb6b2"
},
{
"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": "e6800616-bc52-4fe6-a7b5-1566d3d4481f"
+ "id": "2b731784-3c39-4575-85b4-3f17bd5899d8"
}
],
"nbformat": 4,
diff --git a/api/EUMUnit.html b/api/EUMUnit.html
index a788f8efb..5f26d46fe 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 6b7248299..5989f357e 100644
--- a/api/EUMUnit.ipynb
+++ b/api/EUMUnit.ipynb
@@ -14,7 +14,7 @@
"\n",
"## Examples"
],
- "id": "dc3b4e5e-5673-4a9d-9a64-96d2199ae1b7"
+ "id": "fe8cb62b-dae9-415e-967c-b09fba7bbae6"
},
{
"cell_type": "code",
@@ -35,7 +35,7 @@
"import mikeio\n",
"mikeio.EUMUnit.degree_Kelvin"
],
- "id": "b70a99c1"
+ "id": "9d2d5c91"
},
{
"cell_type": "markdown",
@@ -47,7 +47,7 @@
"|----------------------------------------------|------------------------|\n",
"| [display_name](#mikeio.EUMUnit.display_name) | Display friendly name. |"
],
- "id": "46f1d439-41fd-426c-813d-db4dc4a6eba5"
+ "id": "c3a3b6d5-bec5-4a1c-ac2f-d7e8ae393c27"
}
],
"nbformat": 4,
diff --git a/api/Grid1D.html b/api/Grid1D.html
index e5bc93148..c378c335f 100644
--- a/api/Grid1D.html
+++ b/api/Grid1D.html
@@ -596,7 +596,7 @@
Examples
-
+
import mikeio
= mikeio.Grid1D(nx=3,dx=0.1)
g g
@@ -605,14 +605,14 @@
x: [0, 0.1, 0.2] (nx=3, dx=0.1)
-
+
1,2]) g.isel([
<mikeio.Grid1D>
x: [0.1, 0.2] (nx=2, dx=0.1)
-
+
1) g.isel(
GeometryUndefined()
diff --git a/api/Grid1D.ipynb b/api/Grid1D.ipynb
index ce257810c..29f31c739 100644
--- a/api/Grid1D.ipynb
+++ b/api/Grid1D.ipynb
@@ -89,7 +89,7 @@
"\n",
"#### Examples"
],
- "id": "3dbeda8e-178d-47aa-a0dc-a02c57cb5d8e"
+ "id": "4b5fc908-3f1b-453f-86fa-9e826e034220"
},
{
"cell_type": "code",
@@ -112,7 +112,7 @@
"g = mikeio.Grid1D(nx=3,dx=0.1)\n",
"g"
],
- "id": "f77f2dd1"
+ "id": "045552eb"
},
{
"cell_type": "code",
@@ -133,7 +133,7 @@
"source": [
"g.isel([1,2])"
],
- "id": "d1761f1e"
+ "id": "0aeb0ab9"
},
{
"cell_type": "code",
@@ -153,7 +153,7 @@
"source": [
"g.isel(1)"
],
- "id": "21161957"
+ "id": "275d4050"
}
],
"nbformat": 4,
diff --git a/api/Grid2D.ipynb b/api/Grid2D.ipynb
index 3d568cbe4..a815dee07 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": "71609acf-f769-4d73-b463-5537f8d21b24"
+ "id": "fbfb3c12-737c-40e8-9a70-6c8fa7e44d5b"
}
],
"nbformat": 4,
diff --git a/api/Grid3D.ipynb b/api/Grid3D.ipynb
index 704b064c1..a40ab5812 100644
--- a/api/Grid3D.ipynb
+++ b/api/Grid3D.ipynb
@@ -69,7 +69,7 @@
"\n",
"Get a subset geometry from this geometry."
],
- "id": "bac54336-4be6-4952-96df-0edce4828eb8"
+ "id": "bc16667d-d7e1-4e3c-b5f6-e6affcd6209c"
}
],
"nbformat": 4,
diff --git a/api/ItemInfo.html b/api/ItemInfo.html
index 1758e9d46..f093ebf24 100644
--- a/api/ItemInfo.html
+++ b/api/ItemInfo.html
@@ -459,14 +459,14 @@
Examples
-
+
import mikeio
"Viken", mikeio.EUMType.Water_Level) mikeio.ItemInfo(
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 ad0d73573..e67d9fb9e 100644
--- a/api/ItemInfo.ipynb
+++ b/api/ItemInfo.ipynb
@@ -29,7 +29,7 @@
"\n",
"## Examples"
],
- "id": "872158ce-4ea6-4ad6-b21d-7fed2d19183d"
+ "id": "30685ef7-46cc-4683-849d-4aeb4b44cba3"
},
{
"cell_type": "code",
@@ -50,7 +50,7 @@
"import mikeio\n",
"mikeio.ItemInfo(\"Viken\", mikeio.EUMType.Water_Level)"
],
- "id": "90a3204d"
+ "id": "dc4aee63"
},
{
"cell_type": "code",
@@ -70,7 +70,7 @@
"source": [
"mikeio.ItemInfo(mikeio.EUMType.Wind_speed)"
],
- "id": "1796477d"
+ "id": "22c9582e"
},
{
"cell_type": "markdown",
@@ -90,7 +90,7 @@
"\n",
"Create ItemInfo from a mikecore.DfsDynamicItemInfo object."
],
- "id": "27118809-82f6-4625-ba99-d2873eb38eb7"
+ "id": "78ce0282-8380-4099-b12e-006ffd8e7e30"
}
],
"nbformat": 4,
diff --git a/api/Mesh.html b/api/Mesh.html
index 132bbdd83..d718c00c7 100644
--- a/api/Mesh.html
+++ b/api/Mesh.html
@@ -450,7 +450,7 @@
Examples
-
+
import mikeio
"../data/odense_rough.mesh") mikeio.Mesh(
@@ -506,7 +506,7 @@ Re
Examples
-
+
import mikeio
= mikeio.open("../data/odense_rough.mesh")
msh msh.to_shapely()
diff --git a/api/Mesh.ipynb b/api/Mesh.ipynb
index 076a3af69..c8f10112b 100644
--- a/api/Mesh.ipynb
+++ b/api/Mesh.ipynb
@@ -26,7 +26,7 @@
"\n",
"## Examples"
],
- "id": "51966e5e-5544-4a1b-b85d-f036f3af5405"
+ "id": "bd4d25e1-efe5-428a-a4ce-0a7fe838f4fb"
},
{
"cell_type": "code",
@@ -50,7 +50,7 @@
"import mikeio\n",
"mikeio.Mesh(\"../data/odense_rough.mesh\")"
],
- "id": "6bf7ae42"
+ "id": "eb3f8f33"
},
{
"cell_type": "markdown",
@@ -79,7 +79,7 @@
"\n",
"#### Examples"
],
- "id": "e86685b6-d00f-4e3e-ba09-2b3374f707d0"
+ "id": "f4281774-d186-4ff0-b6e9-8a1a0f809604"
},
{
"cell_type": "code",
@@ -99,7 +99,7 @@
"msh = mikeio.open(\"../data/odense_rough.mesh\")\n",
"msh.to_shapely()"
],
- "id": "c6c6dd91"
+ "id": "01387489"
},
{
"cell_type": "markdown",
@@ -119,7 +119,7 @@
"|-------------|------|--------------|------------|\n",
"| outfilename | str | path to file | *required* |"
],
- "id": "b647b0de-c3e1-47de-94b0-aebfb11f63c3"
+ "id": "b20b0975-9cc3-4c3c-b08d-b96c654645f3"
}
],
"nbformat": 4,
diff --git a/api/PfsDocument.html b/api/PfsDocument.html
index 68b3ea313..d7bc13c73 100644
--- a/api/PfsDocument.html
+++ b/api/PfsDocument.html
@@ -611,7 +611,7 @@
Examples
-
+
import pandas as pd
import mikeio
= pd.DataFrame(dict(station=["Foo", "Bar"],include=[0,1]), index=[1,2])
@@ -645,7 +645,7 @@ df
-
+
"STATION_") mikeio.PfsSection.from_dataframe(df,
[STATION_1]
@@ -813,7 +813,7 @@
Examples
-
+
= mikeio.read_pfs("../data/pfs/lake.sw")
pfs ="OUTPUT_") pfs.SW.OUTPUTS.to_dataframe(prefix
diff --git a/api/PfsDocument.ipynb b/api/PfsDocument.ipynb
index f7ca1ff53..395d1baea 100644
--- a/api/PfsDocument.ipynb
+++ b/api/PfsDocument.ipynb
@@ -91,7 +91,7 @@
"\n",
"#### Examples"
],
- "id": "2a439a74-f25d-434d-aef3-c5b0ff0e0b8d"
+ "id": "6ba09ce4-f2fe-45c2-9790-00bb330937fa"
},
{
"cell_type": "code",
@@ -115,7 +115,7 @@
"df = pd.DataFrame(dict(station=[\"Foo\", \"Bar\"],include=[0,1]), index=[1,2])\n",
"df"
],
- "id": "bd407841"
+ "id": "f056854f"
},
{
"cell_type": "code",
@@ -142,7 +142,7 @@
"source": [
"mikeio.PfsSection.from_dataframe(df,\"STATION_\")"
],
- "id": "2ae3ca95"
+ "id": "121c0619"
},
{
"cell_type": "markdown",
@@ -240,7 +240,7 @@
"\n",
"#### Examples"
],
- "id": "14585d6b-8984-405c-ac37-07a97cb5f45f"
+ "id": "81e11fa1-f1ef-4703-9fff-5a1919cf49aa"
},
{
"cell_type": "code",
@@ -263,7 +263,7 @@
"pfs = mikeio.read_pfs(\"../data/pfs/lake.sw\")\n",
"pfs.SW.OUTPUTS.to_dataframe(prefix=\"OUTPUT_\")"
],
- "id": "a78a5820"
+ "id": "9be1fb1d"
},
{
"cell_type": "markdown",
@@ -311,7 +311,7 @@
"\n",
"To return the content as a string, use repr()"
],
- "id": "3b30a1bf-1f51-4bc8-b8fc-890d71a2e3a0"
+ "id": "f5f0dcce-9412-4e6f-a104-b08916fde965"
}
],
"nbformat": 4,
diff --git a/api/PfsSection.html b/api/PfsSection.html
index 379931dfd..8b9cff272 100644
--- a/api/PfsSection.html
+++ b/api/PfsSection.html
@@ -530,7 +530,7 @@
Examples
-
+
import pandas as pd
import mikeio
= pd.DataFrame(dict(station=["Foo", "Bar"],include=[0,1]), index=[1,2])
@@ -564,7 +564,7 @@ df
-
+
"STATION_") mikeio.PfsSection.from_dataframe(df,
[STATION_1]
@@ -727,7 +727,7 @@
Examples
-
+
= mikeio.read_pfs("../data/pfs/lake.sw")
pfs ="OUTPUT_") pfs.SW.OUTPUTS.to_dataframe(prefix
diff --git a/api/PfsSection.ipynb b/api/PfsSection.ipynb
index 33f1530c9..65a28119e 100644
--- a/api/PfsSection.ipynb
+++ b/api/PfsSection.ipynb
@@ -69,7 +69,7 @@
"\n",
"#### Examples"
],
- "id": "83b97b39-ad47-40ed-b8ff-0acd0c8791dd"
+ "id": "f98e543c-fe25-4ea7-9e13-bc1b31b3dc4b"
},
{
"cell_type": "code",
@@ -93,7 +93,7 @@
"df = pd.DataFrame(dict(station=[\"Foo\", \"Bar\"],include=[0,1]), index=[1,2])\n",
"df"
],
- "id": "7b6cac08"
+ "id": "c0b2f339"
},
{
"cell_type": "code",
@@ -120,7 +120,7 @@
"source": [
"mikeio.PfsSection.from_dataframe(df,\"STATION_\")"
],
- "id": "8e8b29e5"
+ "id": "123a9bfe"
},
{
"cell_type": "markdown",
@@ -210,7 +210,7 @@
"\n",
"#### Examples"
],
- "id": "5270214c-ef42-41b9-91fd-fe6cafda6810"
+ "id": "9f477ac5-6ace-4049-96fd-852fedd31e06"
},
{
"cell_type": "code",
@@ -233,7 +233,7 @@
"pfs = mikeio.read_pfs(\"../data/pfs/lake.sw\")\n",
"pfs.SW.OUTPUTS.to_dataframe(prefix=\"OUTPUT_\")"
],
- "id": "0d43666c"
+ "id": "d794f00c"
},
{
"cell_type": "markdown",
@@ -263,7 +263,7 @@
"\n",
"Return a new view of the PfsSection’s values."
],
- "id": "743492fb-4537-4573-9fc1-21bcf6ee3eb6"
+ "id": "64994e25-5703-4921-83e2-ff44b312eeae"
}
],
"nbformat": 4,
diff --git a/api/dataset._data_plot._DataArrayPlotter.ipynb b/api/dataset._data_plot._DataArrayPlotter.ipynb
index 8492e363a..998763255 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": "71bc6573-81f1-40c1-8504-ad09e16d792f"
+ "id": "e50856d5-2c1a-4786-9012-27ceaa60bbbe"
}
],
"nbformat": 4,
diff --git a/api/dataset._data_plot._DataArrayPlotterFM.html b/api/dataset._data_plot._DataArrayPlotterFM.html
index 7ac7ad334..01afac5c9 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
= mikeio.read("../data/HD2D.dfsu")["Surface elevation"]
da da.plot()
@@ -474,7 +474,7 @@
Examples
-
+
= mikeio.read("../data/HD2D.dfsu")["Surface elevation"]
da da.plot.contour()
@@ -493,7 +493,7 @@
Examples
-
+
= mikeio.read("../data/HD2D.dfsu")["Surface elevation"]
da da.plot.contourf()
@@ -601,7 +601,7 @@
Examples
-
+
= mikeio.read("../data/HD2D.dfsu")["Surface elevation"]
da da.plot.mesh()
@@ -620,7 +620,7 @@
Examples
-
+
= mikeio.read("../data/HD2D.dfsu")["Surface elevation"]
da da.plot.outline()
@@ -639,7 +639,7 @@
Examples
-
+
= mikeio.read("../data/HD2D.dfsu")["Surface elevation"]
da da.plot.patch()
diff --git a/api/dataset._data_plot._DataArrayPlotterFM.ipynb b/api/dataset._data_plot._DataArrayPlotterFM.ipynb
index 37736e266..ef7cc5fc0 100644
--- a/api/dataset._data_plot._DataArrayPlotterFM.ipynb
+++ b/api/dataset._data_plot._DataArrayPlotterFM.ipynb
@@ -18,7 +18,7 @@
"\n",
"## Examples"
],
- "id": "b8f69e03-2cb0-4b7e-8601-17521fe95212"
+ "id": "0b949b04-43c1-443c-adeb-fabc479a56a6"
},
{
"cell_type": "code",
@@ -38,7 +38,7 @@
"da = mikeio.read(\"../data/HD2D.dfsu\")[\"Surface elevation\"]\n",
"da.plot()"
],
- "id": "1bd796bb"
+ "id": "8760e488"
},
{
"cell_type": "markdown",
@@ -66,7 +66,7 @@
"\n",
"#### Examples"
],
- "id": "e3bca5a3-02be-486e-8445-0f14c785b08d"
+ "id": "9433912b-b555-4a59-84c0-06c133be6e97"
},
{
"cell_type": "code",
@@ -85,7 +85,7 @@
"da = mikeio.read(\"../data/HD2D.dfsu\")[\"Surface elevation\"]\n",
"da.plot.contour()"
],
- "id": "9a65bfcc"
+ "id": "33f4627a"
},
{
"cell_type": "markdown",
@@ -101,7 +101,7 @@
"\n",
"#### Examples"
],
- "id": "7d2d736c-b82f-41e9-9a5a-5058a8ce9f8a"
+ "id": "0c7dec36-fa75-40af-8312-7bdccb6b5b81"
},
{
"cell_type": "code",
@@ -120,7 +120,7 @@
"da = mikeio.read(\"../data/HD2D.dfsu\")[\"Surface elevation\"]\n",
"da.plot.contourf()"
],
- "id": "a639fd3e"
+ "id": "c7eca95f"
},
{
"cell_type": "markdown",
@@ -177,7 +177,7 @@
"\n",
"#### Examples"
],
- "id": "02e18520-db5c-4359-8564-0c9b839eec34"
+ "id": "5d439a0b-e36f-47e9-9f04-1c33ab0a9b0d"
},
{
"cell_type": "code",
@@ -196,7 +196,7 @@
"da = mikeio.read(\"../data/HD2D.dfsu\")[\"Surface elevation\"]\n",
"da.plot.mesh()"
],
- "id": "3c277e8a"
+ "id": "d9e4ebf9"
},
{
"cell_type": "markdown",
@@ -212,7 +212,7 @@
"\n",
"#### Examples"
],
- "id": "c6aab2e2-2490-4125-acdf-1860388bed3e"
+ "id": "9ad9609f-0a68-410e-b16a-530613dec635"
},
{
"cell_type": "code",
@@ -231,7 +231,7 @@
"da = mikeio.read(\"../data/HD2D.dfsu\")[\"Surface elevation\"]\n",
"da.plot.outline()"
],
- "id": "aaa37e41"
+ "id": "e5fdb435"
},
{
"cell_type": "markdown",
@@ -247,7 +247,7 @@
"\n",
"#### Examples"
],
- "id": "37f2a7d4-0ddc-4009-bbe8-25e838ec0d55"
+ "id": "e6c79f06-8924-4260-941f-e0963560e02a"
},
{
"cell_type": "code",
@@ -266,7 +266,7 @@
"da = mikeio.read(\"../data/HD2D.dfsu\")[\"Surface elevation\"]\n",
"da.plot.patch()"
],
- "id": "638ecea9"
+ "id": "2cc4146f"
}
],
"nbformat": 4,
diff --git a/api/dataset._data_plot._DataArrayPlotterFMVerticalColumn.html b/api/dataset._data_plot._DataArrayPlotterFMVerticalColumn.html
index cec701feb..6da0486eb 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
= mikeio.read("../data/oresund_sigma_z.dfsu")
ds = ds.sel(x=333934.1, y=6158101.5)
@@ -424,7 +424,7 @@ dsp
-
+
=False, marker='o') da.plot(extrapolate
@@ -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 ba93f35e4..201298b44 100644
--- a/api/dataset._data_plot._DataArrayPlotterFMVerticalColumn.ipynb
+++ b/api/dataset._data_plot._DataArrayPlotterFMVerticalColumn.ipynb
@@ -16,7 +16,7 @@
"\n",
"## Examples"
],
- "id": "cadb5f61-ed81-4774-b3e1-160e9f07c8e0"
+ "id": "5221c0f9-d367-465c-b0b1-a4e21f62f8c5"
},
{
"cell_type": "code",
@@ -38,7 +38,7 @@
"da = dsp[\"Temperature\"]\n",
"da.plot()"
],
- "id": "b3eec4d3"
+ "id": "4b8aceed"
},
{
"cell_type": "code",
@@ -56,7 +56,7 @@
"source": [
"da.plot(extrapolate=False, marker='o')"
],
- "id": "7723946c"
+ "id": "51e1e5ce"
},
{
"cell_type": "code",
@@ -74,7 +74,7 @@
"source": [
"da.plot.pcolormesh()"
],
- "id": "6a0eca95"
+ "id": "4d3f58c9"
},
{
"cell_type": "code",
@@ -105,7 +105,7 @@
"source": [
"da.plot.hist()"
],
- "id": "956b16f3"
+ "id": "adb1f0f4"
},
{
"cell_type": "markdown",
@@ -178,7 +178,7 @@
"\n",
"Plot data as coloured patches."
],
- "id": "7f41b16a-84df-4a81-a64c-c2cba867ba58"
+ "id": "5f3fde5c-cb80-43f8-901b-0fc57351586d"
}
],
"nbformat": 4,
diff --git a/api/dataset._data_plot._DataArrayPlotterFMVerticalProfile.html b/api/dataset._data_plot._DataArrayPlotterFMVerticalProfile.html
index 699efc8fc..0ebc8534b 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
= mikeio.read("../data/oresund_vertical_slice.dfsu")["Temperature"]
da 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 b638fcf6e..b79a156a6 100644
--- a/api/dataset._data_plot._DataArrayPlotterFMVerticalProfile.ipynb
+++ b/api/dataset._data_plot._DataArrayPlotterFMVerticalProfile.ipynb
@@ -16,7 +16,7 @@
"\n",
"## Examples"
],
- "id": "dff556ab-70f6-49e4-b400-cac653717bb9"
+ "id": "21ce4210-8d70-4716-a949-a80ed7dade0a"
},
{
"cell_type": "code",
@@ -36,7 +36,7 @@
"da = mikeio.read(\"../data/oresund_vertical_slice.dfsu\")[\"Temperature\"]\n",
"da.plot()"
],
- "id": "182a1fe1"
+ "id": "a25bddbc"
},
{
"cell_type": "code",
@@ -67,7 +67,7 @@
"source": [
"da.plot.hist()"
],
- "id": "62d4478f"
+ "id": "dc9ebc56"
},
{
"cell_type": "markdown",
@@ -125,7 +125,7 @@
"\n",
"Plot data as lines (timeseries if time is present)."
],
- "id": "ddfb5b61-6c82-4542-b0c0-d12254e1b453"
+ "id": "4bb8f7fb-356a-411d-bca2-6da0d761be45"
}
],
"nbformat": 4,
diff --git a/api/dataset._data_plot._DataArrayPlotterGrid1D.ipynb b/api/dataset._data_plot._DataArrayPlotterGrid1D.ipynb
index b06045813..b56612d7d 100644
--- a/api/dataset._data_plot._DataArrayPlotterGrid1D.ipynb
+++ b/api/dataset._data_plot._DataArrayPlotterGrid1D.ipynb
@@ -114,7 +114,7 @@
"\n",
"Plot as timeseries."
],
- "id": "2204ec4f-3add-47bc-aff8-38aa6c001267"
+ "id": "726db2d8-dbd7-4b87-ba62-a8bf7ff513c3"
}
],
"nbformat": 4,
diff --git a/api/dataset._data_plot._DataArrayPlotterGrid2D.html b/api/dataset._data_plot._DataArrayPlotterGrid2D.html
index 5ed831891..1aed739ba 100644
--- a/api/dataset._data_plot._DataArrayPlotterGrid2D.html
+++ b/api/dataset._data_plot._DataArrayPlotterGrid2D.html
@@ -412,7 +412,7 @@ dataset._data_plot._DataArrayPlotterGrid2D
If DataArray has multiple time steps, the first step will be plotted.
Examples
-
+
import mikeio
= mikeio.read("../data/gebco_sound.dfs2")["Elevation"]
da da.plot()
@@ -468,7 +468,7 @@
Examples
-
+
= mikeio.read("../data/gebco_sound.dfs2")["Elevation"]
da da.plot.contour()
@@ -493,7 +493,7 @@
Examples
-
+
= mikeio.read("../data/gebco_sound.dfs2")["Elevation"]
da da.plot.contourf()
@@ -607,7 +607,7 @@
Examples
-
+
= mikeio.read("../data/gebco_sound.dfs2")["Elevation"]
da da.plot.pcolormesh()
diff --git a/api/dataset._data_plot._DataArrayPlotterGrid2D.ipynb b/api/dataset._data_plot._DataArrayPlotterGrid2D.ipynb
index 6c400dd2c..1eec51768 100644
--- a/api/dataset._data_plot._DataArrayPlotterGrid2D.ipynb
+++ b/api/dataset._data_plot._DataArrayPlotterGrid2D.ipynb
@@ -16,7 +16,7 @@
"\n",
"## Examples"
],
- "id": "2d12c1ed-f18d-40f3-bc6e-0841eb634987"
+ "id": "02381f16-8a10-4535-b039-d8070c58e9fd"
},
{
"cell_type": "code",
@@ -36,7 +36,7 @@
"da = mikeio.read(\"../data/gebco_sound.dfs2\")[\"Elevation\"]\n",
"da.plot()"
],
- "id": "8fcfaf02"
+ "id": "41bfa36d"
},
{
"cell_type": "markdown",
@@ -67,7 +67,7 @@
"\n",
"#### Examples"
],
- "id": "51eac8a3-4b76-4164-bfa4-352c04d606b8"
+ "id": "a6e721f0-2253-4c5c-90c9-4ee216f24722"
},
{
"cell_type": "code",
@@ -86,7 +86,7 @@
"da = mikeio.read(\"../data/gebco_sound.dfs2\")[\"Elevation\"]\n",
"da.plot.contour()"
],
- "id": "7fc9afbb"
+ "id": "a5db406d"
},
{
"cell_type": "markdown",
@@ -108,7 +108,7 @@
"\n",
"#### Examples"
],
- "id": "89486375-c4ca-480f-ba2f-1bf64e60ae8f"
+ "id": "fa6601bc-7948-4889-9ca4-720c6caafe74"
},
{
"cell_type": "code",
@@ -127,7 +127,7 @@
"da = mikeio.read(\"../data/gebco_sound.dfs2\")[\"Elevation\"]\n",
"da.plot.contourf()"
],
- "id": "d66afa02"
+ "id": "1dbc8992"
},
{
"cell_type": "markdown",
@@ -190,7 +190,7 @@
"\n",
"#### Examples"
],
- "id": "8e932542-a091-4fda-a0be-cd9e14296e44"
+ "id": "50a35503-a3ab-4a54-9bc7-4ab3d0734cbc"
},
{
"cell_type": "code",
@@ -209,7 +209,7 @@
"da = mikeio.read(\"../data/gebco_sound.dfs2\")[\"Elevation\"]\n",
"da.plot.pcolormesh()"
],
- "id": "4dbff0f8"
+ "id": "80bacd20"
}
],
"nbformat": 4,
diff --git a/api/dataset._data_plot._DatasetPlotter.ipynb b/api/dataset._data_plot._DatasetPlotter.ipynb
index 74ee24796..f6f0008ef 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": "214c8fb3-d30d-42f1-a89e-852e035dbe96"
+ "id": "dd5af10b-4f76-44b6-a3d1-741ecd9b7b23"
}
],
"nbformat": 4,
diff --git a/api/dfsu.Dfsu2DH.ipynb b/api/dfsu.Dfsu2DH.ipynb
index a3ca5a405..8ee894f70 100644
--- a/api/dfsu.Dfsu2DH.ipynb
+++ b/api/dfsu.Dfsu2DH.ipynb
@@ -158,7 +158,7 @@
"|------|---------|-----------------------------------------------|\n",
"| | Dataset | A Dataset with data dimensions \\[t,elements\\] |"
],
- "id": "d3104ec9-31c5-46b6-b8f2-b4fc47d09b04"
+ "id": "7bdf8dfe-df6d-4f1b-a5ed-6ecb6dea5a84"
}
],
"nbformat": 4,
diff --git a/api/dfsu.Dfsu2DV.ipynb b/api/dfsu.Dfsu2DV.ipynb
index c935d5610..fc2552a3b 100644
--- a/api/dfsu.Dfsu2DV.ipynb
+++ b/api/dfsu.Dfsu2DV.ipynb
@@ -128,7 +128,7 @@
"|------|---------|-----------------------------------------------|\n",
"| | Dataset | A Dataset with data dimensions \\[t,elements\\] |"
],
- "id": "6e1b800f-8eb7-4e08-8256-7e984a116d84"
+ "id": "9eb4eef6-c20f-4f0a-a4fd-6f35123fb02b"
}
],
"nbformat": 4,
diff --git a/api/dfsu.Dfsu3D.ipynb b/api/dfsu.Dfsu3D.ipynb
index c82c75f06..148f765d2 100644
--- a/api/dfsu.Dfsu3D.ipynb
+++ b/api/dfsu.Dfsu3D.ipynb
@@ -110,7 +110,7 @@
"|------|---------|-----------------------------------------------|\n",
"| | Dataset | A Dataset with data dimensions \\[t,elements\\] |"
],
- "id": "490fc59d-65ee-4136-82f1-5b890a813f91"
+ "id": "f4f52c54-30c6-4202-a8f3-764e640ce9e0"
}
],
"nbformat": 4,
diff --git a/api/dfsu.DfsuSpectral.ipynb b/api/dfsu.DfsuSpectral.ipynb
index 9d51a1e7c..ff399c165 100644
--- a/api/dfsu.DfsuSpectral.ipynb
+++ b/api/dfsu.DfsuSpectral.ipynb
@@ -117,7 +117,7 @@
" 0: Energy density (meter pow 2 sec per deg)\n",
"```"
],
- "id": "f49e2201-c152-48be-88f0-f76afe55bfc6"
+ "id": "6c9745f6-f728-4d58-bf72-157b572e1b2c"
}
],
"nbformat": 4,
diff --git a/api/from_pandas.html b/api/from_pandas.html
index 0b253b8b5..5f7bdf1e6 100644
--- a/api/from_pandas.html
+++ b/api/from_pandas.html
@@ -457,7 +457,7 @@ Re
Examples
-
+
import pandas as pd
import mikeio
diff --git a/api/from_pandas.ipynb b/api/from_pandas.ipynb
index 068ff0728..94ae05011 100644
--- a/api/from_pandas.ipynb
+++ b/api/from_pandas.ipynb
@@ -27,7 +27,7 @@
"\n",
"## Examples"
],
- "id": "dfdebee1-8d08-457e-928c-30c77b08fd18"
+ "id": "fc2b6cbd-063b-4d59-b114-69f795f18a69"
},
{
"cell_type": "code",
@@ -65,7 +65,7 @@
" \"B\": mikeio.ItemInfo(mikeio.EUMType.Discharge)})\n",
"ds"
],
- "id": "10a95869"
+ "id": "56fc2b55"
}
],
"nbformat": 4,
diff --git a/api/from_polars.html b/api/from_polars.html
index 9eadf7cec..d88db850c 100644
--- a/api/from_polars.html
+++ b/api/from_polars.html
@@ -463,7 +463,7 @@ Re
Examples
-
+
import polars as pl
import mikeio
from datetime import datetime
diff --git a/api/from_polars.ipynb b/api/from_polars.ipynb
index 555de7ab3..830c5be48 100644
--- a/api/from_polars.ipynb
+++ b/api/from_polars.ipynb
@@ -28,7 +28,7 @@
"\n",
"## Examples"
],
- "id": "152597aa-88a0-48c8-bde5-b38ee72314cd"
+ "id": "9809cdee-ff67-49ec-801d-4f5febc5163a"
},
{
"cell_type": "code",
@@ -73,7 +73,7 @@
")\n",
"ds"
],
- "id": "55904e4d"
+ "id": "45896f44"
}
],
"nbformat": 4,
diff --git a/api/generic.ipynb b/api/generic.ipynb
index 0721d7d24..74350c69a 100644
--- a/api/generic.ipynb
+++ b/api/generic.ipynb
@@ -203,7 +203,7 @@
"| infilename_b | str \\| pathlib.Path | full path to the second input file | *required* |\n",
"| outfilename | str \\| pathlib.Path | full path to the output file | *required* |"
],
- "id": "b63cf9fd-05a2-4f21-b33a-d802c8b7ea86"
+ "id": "6f1cfbdd-c251-49c3-a69e-5deb7df584d8"
}
],
"nbformat": 4,
diff --git a/api/index.ipynb b/api/index.ipynb
index 5eaa9260f..544489ae3 100644
--- a/api/index.ipynb
+++ b/api/index.ipynb
@@ -89,7 +89,7 @@
"| [PfsDocument](PfsDocument.qmd#mikeio.PfsDocument) | Create a PfsDocument object for reading, writing and manipulating pfs files. |\n",
"| [PfsSection](PfsSection.qmd#mikeio.PfsSection) | |"
],
- "id": "f1cac77e-dc3d-4c35-878e-6792c1b018eb"
+ "id": "95a11cba-8897-4692-bd65-bec290457365"
}
],
"nbformat": 4,
diff --git a/api/open.ipynb b/api/open.ipynb
index 696e1d162..da8532c94 100644
--- a/api/open.ipynb
+++ b/api/open.ipynb
@@ -44,7 +44,7 @@
">>> dfs = mikeio.open(\"pt_spectra.dfs2\", type=\"spectral\")\n",
"```"
],
- "id": "66ba7f33-69e5-450b-8aaa-8b15b7b69661"
+ "id": "b1a62e62-156e-4e17-b678-7a603517798d"
}
],
"nbformat": 4,
diff --git a/api/read.ipynb b/api/read.ipynb
index 2ed8effb0..4fae2a067 100644
--- a/api/read.ipynb
+++ b/api/read.ipynb
@@ -76,7 +76,7 @@
">>> ds = mikeio.read(\"HD2D.dfsu\", error_bad_data=False, fill_bad_data_value=0.0) # replace corrupt data with 0.0\n",
"```"
],
- "id": "0818d43e-93f3-4a11-8f4f-0bf64c068c43"
+ "id": "9f421dd8-b1fb-4ca9-aa6e-581eb5a0a120"
}
],
"nbformat": 4,
diff --git a/api/read_pfs.ipynb b/api/read_pfs.ipynb
index e8262980d..a7f10f897 100644
--- a/api/read_pfs.ipynb
+++ b/api/read_pfs.ipynb
@@ -28,7 +28,7 @@
"|------|-------------|----------------------|\n",
"| | PfsDocument | A PfsDocument object |"
],
- "id": "5f199cdb-4d06-41a9-be49-55aefa31c226"
+ "id": "ef2c366d-6048-4bca-9549-43b530f73b01"
}
],
"nbformat": 4,
diff --git a/api/spatial.GeometryFM2D.ipynb b/api/spatial.GeometryFM2D.ipynb
index 49b0f985c..9a51d68f1 100644
--- a/api/spatial.GeometryFM2D.ipynb
+++ b/api/spatial.GeometryFM2D.ipynb
@@ -358,7 +358,7 @@
"|------|-------------------------------|-----------------------------|\n",
"| | shapely.geometry.MultiPolygon | polygons with mesh elements |"
],
- "id": "a342af13-bd31-4c86-b2a3-cf77c1f1ab34"
+ "id": "4dddb183-5f31-4f81-80d5-a8e936af3597"
}
],
"nbformat": 4,
diff --git a/api/spatial.GeometryFM3D.ipynb b/api/spatial.GeometryFM3D.ipynb
index e294b7fa7..cd2badad1 100644
--- a/api/spatial.GeometryFM3D.ipynb
+++ b/api/spatial.GeometryFM3D.ipynb
@@ -90,7 +90,7 @@
"|------|----------------------|----------------------------|\n",
"| | UnstructuredGeometry | 2d geometry (bottom nodes) |"
],
- "id": "5c45eb1b-d72f-4445-ba94-cc9a319712f0"
+ "id": "42af3fb9-1c3a-412d-a1d2-c1a3a4437a4b"
}
],
"nbformat": 4,
diff --git a/api/spatial.GeometryFMAreaSpectrum.ipynb b/api/spatial.GeometryFMAreaSpectrum.ipynb
index efd122109..3c07b504e 100644
--- a/api/spatial.GeometryFMAreaSpectrum.ipynb
+++ b/api/spatial.GeometryFMAreaSpectrum.ipynb
@@ -363,7 +363,7 @@
"|------|-------------------------------|-----------------------------|\n",
"| | shapely.geometry.MultiPolygon | polygons with mesh elements |"
],
- "id": "4204bfa0-b6fc-4d3e-aac3-03db98da4a0c"
+ "id": "995c257b-1fc9-4f48-ba7b-e2a56bec08d4"
}
],
"nbformat": 4,
diff --git a/api/spatial.GeometryFMLineSpectrum.ipynb b/api/spatial.GeometryFMLineSpectrum.ipynb
index d4942b5d3..c7e7b1824 100644
--- a/api/spatial.GeometryFMLineSpectrum.ipynb
+++ b/api/spatial.GeometryFMLineSpectrum.ipynb
@@ -344,7 +344,7 @@
"|------|-------------------------------|-----------------------------|\n",
"| | shapely.geometry.MultiPolygon | polygons with mesh elements |"
],
- "id": "dcbc1d00-d105-46c2-ab29-1c9d933e3c0f"
+ "id": "575a8eec-0a92-4d6b-a592-8c87f1625d07"
}
],
"nbformat": 4,
diff --git a/api/spatial.GeometryFMPointSpectrum.ipynb b/api/spatial.GeometryFMPointSpectrum.ipynb
index 6529c094b..c28b6360d 100644
--- a/api/spatial.GeometryFMPointSpectrum.ipynb
+++ b/api/spatial.GeometryFMPointSpectrum.ipynb
@@ -31,7 +31,7 @@
"| [projection](#mikeio.spatial.GeometryFMPointSpectrum.projection) | The projection. |\n",
"| [projection_string](#mikeio.spatial.GeometryFMPointSpectrum.projection_string) | The projection string. |"
],
- "id": "abb33b63-1f1e-43b5-9a10-872055db40da"
+ "id": "79ee9a10-d8e3-4a2c-999e-6557c1341c54"
}
],
"nbformat": 4,
diff --git a/api/spatial.GeometryFMVerticalColumn.ipynb b/api/spatial.GeometryFMVerticalColumn.ipynb
index a21f0a031..c7c1d79f0 100644
--- a/api/spatial.GeometryFMVerticalColumn.ipynb
+++ b/api/spatial.GeometryFMVerticalColumn.ipynb
@@ -92,7 +92,7 @@
"|------|----------------------|----------------------------|\n",
"| | UnstructuredGeometry | 2d geometry (bottom nodes) |"
],
- "id": "f61d4fac-55b8-4633-b31b-0e7629222033"
+ "id": "2c5a9222-9009-4493-8c26-ced49c042d32"
}
],
"nbformat": 4,
diff --git a/api/spatial.GeometryFMVerticalProfile.ipynb b/api/spatial.GeometryFMVerticalProfile.ipynb
index c1ec9cb37..5423efd11 100644
--- a/api/spatial.GeometryFMVerticalProfile.ipynb
+++ b/api/spatial.GeometryFMVerticalProfile.ipynb
@@ -111,7 +111,7 @@
"|------|----------------------|----------------------------|\n",
"| | UnstructuredGeometry | 2d geometry (bottom nodes) |"
],
- "id": "5b0a511e-1428-4caf-96af-117ec6566478"
+ "id": "37cc097f-d6ae-4139-a79d-7a9704ef24b0"
}
],
"nbformat": 4,
diff --git a/api/spatial._FM_geometry._GeometryFMPlotter.ipynb b/api/spatial._FM_geometry._GeometryFMPlotter.ipynb
index a0bc12b14..b87b4d7f4 100644
--- a/api/spatial._FM_geometry._GeometryFMPlotter.ipynb
+++ b/api/spatial._FM_geometry._GeometryFMPlotter.ipynb
@@ -93,7 +93,7 @@
"\n",
"Plot domain outline (using the boundary_polylines property)."
],
- "id": "bfb587f5-2d0c-47a5-920d-bc995bb0ed0a"
+ "id": "104274d7-bb46-413f-91b4-ebcd46c6fcac"
}
],
"nbformat": 4,
diff --git a/design.ipynb b/design.ipynb
index d78e94d21..cd3a477af 100644
--- a/design.ipynb
+++ b/design.ipynb
@@ -80,7 +80,7 @@
"$ pip install https://github.com/DHI/mikeio/archive/main.zip\n",
"```"
],
- "id": "aff2611a-34f7-4956-bb5c-a60e71e005ca"
+ "id": "c4c535cc-0835-44b8-9555-d0a1d03607f9"
}
],
"nbformat": 4,
diff --git a/examples/Generic.html b/examples/Generic.html
index 5609fda7e..0b36d830f 100644
--- a/examples/Generic.html
+++ b/examples/Generic.html
@@ -428,7 +428,7 @@ Generic dfs processing
quantile: Create temporal quantiles of dfs file
-
+
import matplotlib.pyplot as plt
import mikeio
import mikeio.generic
@@ -436,7 +436,7 @@ Generic dfs processing
Concatenation
Take a look at these two files with overlapping timesteps.
-
+
= mikeio.read("../data/tide1.dfs1")
t1 t1
@@ -448,7 +448,7 @@ Concatenation
0: Level <Water Level> (meter)
-
+
= mikeio.read("../data/tide2.dfs1")
t2 t2
@@ -461,7 +461,7 @@ Concatenation
Plot one of the points along the line.
-
+
0].isel(x=1).values, label="File 1")
plt.plot(t1.time,t1[0].isel(x=1).values,'k+', label="File 2")
plt.plot(t2.time,t2[ plt.legend()
@@ -473,15 +473,15 @@ Concatenation
-
+
=["../data/tide1.dfs1",
mikeio.generic.concat(infilenames"../data/tide2.dfs1"],
="concat.dfs1") outfilename
- 0%| | 0/2 [00:00<?, ?it/s]100%|██████████| 2/2 [00:00<00:00, 592.16it/s]
+ 0%| | 0/2 [00:00<?, ?it/s]100%|██████████| 2/2 [00:00<00:00, 653.57it/s]
-
+
= mikeio.read("concat.dfs1")
c 0].isel(x=1).plot()
c[ c
@@ -505,16 +505,16 @@ Concatenation
Difference between two files
Take difference between two dfs files with same structure - e.g. to see the difference in result between two calibration runs
-
+
= "../data/oresundHD_run1.dfsu"
fn1 = "../data/oresundHD_run2.dfsu"
fn2 = "oresundHD_difference.dfsu"
fn_diff mikeio.generic.diff(fn1, fn2, fn_diff)
- 0%| | 0/5 [00:00<?, ?it/s]100%|██████████| 5/5 [00:00<00:00, 2523.95it/s]
+ 0%| | 0/5 [00:00<?, ?it/s]100%|██████████| 5/5 [00:00<00:00, 2994.65it/s]
-
+
= plt.subplots(1,3, sharey=True, figsize=(12,5))
_, ax = mikeio.read(fn1, time=-1)[0]
da =0.06, vmax=0.27, ax=ax[0], title='run 1')
@@ -538,11 +538,11 @@ da.plot(vminExtract time s
time slice by specifying start and/or end
specific items
-
+
= "../data/tide1.dfs1"
infile "extracted.dfs1", start='2019-01-02') mikeio.generic.extract(infile,
-
+
= mikeio.read("extracted.dfs1")
e e
@@ -554,11 +554,11 @@ Extract time s
0: Level <Water Level> (meter)
-
+
= "../data/oresund_vertical_slice.dfsu"
infile "extracted.dfsu", items='Salinity', end=-2) mikeio.generic.extract(infile,
-
+
= mikeio.read("extracted.dfsu")
e e
@@ -579,7 +579,7 @@ Extract time s
Scaling
Adding a constant e.g to adjust datum
-
+
= mikeio.read("../data/gebco_sound.dfs2")
ds 0].plot(); ds.Elevation[
@@ -590,23 +590,23 @@ Scaling
-
+
'Elevation'][0,104,131].to_numpy() ds[
np.float32(-1.0)
This is the processing step.
-
+
"../data/gebco_sound.dfs2",
mikeio.generic.scale("gebco_sound_local_datum.dfs2",
=-2.1
offset )
- 0%| | 0/1 [00:00<?, ?it/s]100%|██████████| 1/1 [00:00<00:00, 1331.10it/s]
+ 0%| | 0/1 [00:00<?, ?it/s]100%|██████████| 1/1 [00:00<00:00, 1825.99it/s]
-
+
= mikeio.read("gebco_sound_local_datum.dfs2")
ds2 'Elevation'][0].plot() ds2[
@@ -617,7 +617,7 @@ Scaling
-
+
'Elevation'][0,104,131].to_numpy() ds2[
np.float32(-3.1)
@@ -625,7 +625,7 @@ Scaling
Spatially varying correction
-
+
import numpy as np
= np.ones_like(ds['Elevation'][0].to_numpy())
factor factor.shape
@@ -634,7 +634,7 @@ Spatially var
Add some spatially varying factors, exaggerated values for educational purpose.
-
+
0:100] = 5.3
factor[:,0:40,] = 0.1
factor[150:,150:] = 10.7
@@ -649,7 +649,7 @@ factor[Spatially var
The 2d array must first be flipped upside down and then converted to a 1d vector using numpy.ndarray.flatten to match how data is stored in dfs files.
-
+
= np.flipud(factor)
factor_ud = factor_ud.flatten()
factor_vec "../data/gebco_sound.dfs2",
@@ -657,10 +657,10 @@ mikeio.generic.scale(Spatially var
=factor_vec
factor )
- 0%| | 0/1 [00:00<?, ?it/s]100%|██████████| 1/1 [00:00<00:00, 1208.38it/s]
+ 0%| | 0/1 [00:00<?, ?it/s]100%|██████████| 1/1 [00:00<00:00, 1309.08it/s]
-
+
= mikeio.read("gebco_sound_spatial.dfs2")
ds3 0].plot(); ds3.Elevation[
@@ -675,15 +675,15 @@ Spatially var
Time average
-
+
= "../data/NorthSea_HD_and_windspeed.dfsu"
fn = "Avg_NorthSea_HD_and_windspeed.dfsu"
fn_avg mikeio.generic.avg_time(fn, fn_avg)
- 0%| | 0/66 [00:00<?, ?it/s]100%|██████████| 66/66 [00:00<00:00, 20075.72it/s]
+ 0%| | 0/66 [00:00<?, ?it/s]100%|██████████| 66/66 [00:00<00:00, 21104.22it/s]
-
+
= mikeio.read(fn)
ds =0).describe() # alternative way of getting the time average ds.mean(axis
@@ -745,7 +745,7 @@ Time average
-
+
= mikeio.read(fn_avg)
ds_avg ds_avg.describe()
@@ -811,12 +811,12 @@ Time average
Quantile
Example that calculates the 25%, 50% and 75% percentile for all items in a dfsu file.
-
+
= "../data/NorthSea_HD_and_windspeed.dfsu"
fn = "Q_NorthSea_HD_and_windspeed.dfsu"
fn_q =[0.25,0.5,0.75]) mikeio.generic.quantile(fn, fn_q, q
-
+
= mikeio.read(fn_q)
ds ds
@@ -833,7 +833,7 @@ Quantile
5: Quantile 0.75, Wind speed <Wind speed> (meter per sec)
-
+
= ds["Quantile 0.75, Wind speed"]
da_q75 ="75th percentile, wind speed", label="m/s") da_q75.plot(title
@@ -847,7 +847,7 @@ Quantile
Clean up
-
+