open
open(file_name, **kwargs)Open a file type supported by MIKE IO 1D file.
Parameters
| Name | Type | Description | Default |
|---|---|---|---|
| file_name | str or Path | Path to the file to read. | required |
| **kwargs | Additional keyword arguments to pass to the relevant constructor. | {} |
See Also
mikeio1d.Res1D mikeio1d.Xns11
Returns
| Name | Type | Description |
|---|---|---|
| Res1D or Xns11 | The object representing the 1D file. |
Examples
>>> import mikeio1d
>>> res = mikeio1d.open("results.res1d")
>>> res.nodes.read()>>> xs = mikeio1d.open("cross_section.xns11")
>>> xs