#!/usr/bin/env python # coding: utf-8 # # Dfs1 - Read # In[1]: import mikeio # In[2]: ds = mikeio.read("../tests/testdata/random.dfs1") ds # In[3]: ds.geometry # In[4]: da = ds["testing water level"] # In[5]: da.plot(); # In[6]: da.isel(x=0).plot(title="First"); # In[7]: da.isel(x=-1).plot(title="Last"); # Export a single point from the Dfs1 to Dfs0 # In[8]: da.isel(x=0).to_dfs("random_0.dfs0") # In[9]: mikeio.read("random_0.dfs0")[0].plot(); # In[10]: import os os.remove("random_0.dfs0")