Support for PFS is limited to files with unique subsections. This applies to all files in the MIKE FM family.
It is only possible to read files, there is no support for modifying or writing files at this stage.
from mikeio import Pfs
pfs = Pfs("../tests/testdata/lake.sw")
Support for PFS files in mikeio is experimental. The API is likely to change!
c:\users\jem\source\mikeio\mikeio\pfs.py:27: UserWarning: Support for PFS files in mikeio is experimental. The API is likely to change! warnings.warn(
pfs.data.MODULE_SELECTION.mode_of_spectral_wave_module
2
pfs.data.SW.SPECTRAL.number_of_directions
16
pfs.data.SW.SPECTRAL.maximum_threshold_frequency
0.5959088268863615
df = pfs.data.SW.get_outputs()
df
file_name | include | type | format | first_time_step | last_time_step | use_end_time | time_step_frequency | |
---|---|---|---|---|---|---|---|---|
1 | Wave_parameters.dfsu | 1 | 1 | 2 | 0 | 450 | 1 | 10 |
2 | Wave_line.dfs1 | 0 | 1 | 1 | 0 | 450 | 1 | 10 |
3 | Waves_x20km_y20km.dfs0 | 1 | 1 | 0 | 0 | 450 | 1 | 1 |
4 | spectrum_x20km_y20km.dfsu | 1 | 4 | 0 | 0 | 450 | 1 | 10 |