read () > ds Dimensions : ( 3, 100, 2 ) Time : 2012 - 01 - 01 00 : 00 : 00 - 2012 - 01 - 01 00 : 00 : 24 Items : 0 : testing water level ( meter ) Create dfs2įor a complete example of conversion from netcdf to dfs2 see this notebook.Īnother example of downloading meteorological forecast from the Global Forecasting System and converting it to a dfs2 ready to be used by a MIKE 21 model. to_dfs0 ( "mauna_loa.dfs0" )įor more examples on timeseries data see this notebook Read dfs2 data > from mikeio import Dfs2 > dfs = Dfs2 ( "random.dfs2" ) > ds = dfs. write ( 'simple.dfs0', data, start_time = datetime ( 2017, 1, 1 ), dt = 60 ) Write timeseries from dataframe import pandas as pd import mikeio > df = pd. to_dataframe () Write simple timeseries > from datetime import datetime > import numpy as np > from mikeio import Dfs0 > data = )] > dfs = Dfs0 () > dfs. read ( "random.dfs1" ) > ds Dimensions : ( 100, 3 ) Time : 2012 - 01 - 01 00 : 00 : 00 - 2012 - 01 - 01 00 : 19 : 48 Items : 0 : testing water level ( meter ) Reading dfs0 file into Pandas DataFrame > from mikeio import Dfs0 > dfs = Dfs0 ( 'simple.dfs0' ) > ts = dfs. Generic read method to read values, if you need additional features such as coordinates, use specialised classes instead e.g.
#INPUT FORMAT FOR XYZ FILES IN MIKE 21 INSTALL#
Pip install Examples Reading data from dfs0, dfs1, dfs2, dfsu General help, FAQ - Stackoverflow with the tag mikeio.New ideas and feature requests - GitHub Discussions.More info about dependencies Where can I get help?
![input format for xyz files in mike 21 input format for xyz files in mike 21](https://raw.githubusercontent.com/DHI/mikeio/main/images/bluecafe.png)
(Windows) VC++ redistributables (already installed if you have MIKE).Read, write and manipulate dfs0, dfs1, dfs2, dfs3, dfsu and mesh files.įacilitates common data processing workflows for MIKE files.įor res1d and xns11 files use the related package MIKE IO 1D
![input format for xyz files in mike 21 input format for xyz files in mike 21](https://e2e.ti.com/resized-image/__size/1230x0/__key/communityserver-discussions-components-files/14/INA333-Vcm-range.png)
MIKE IO: input/output of MIKE files in python