import mikeio
Dfs1 - Read
= mikeio.read("../tests/testdata/random.dfs1")
ds ds
<mikeio.Dataset>
dims: (time:100, x:3)
time: 2012-01-01 00:00:00 - 2012-01-01 00:19:48 (100 records)
geometry: Grid1D (n=3, dx=100)
items:
0: testing water level <Water Level> (meter)
ds.geometry
<mikeio.Grid1D>
x: [0, 100, 200] (nx=3, dx=100)
= ds["testing water level"] da
; da.plot()
=0).plot(title="First"); da.isel(x
=-1).plot(title="Last"); da.isel(x
Export a single point from the Dfs1 to Dfs0
=0).to_dfs("random_0.dfs0") da.isel(x
"random_0.dfs0")[0].plot(); mikeio.read(
import os
"random_0.dfs0") os.remove(