**Note** The default axis in all dataset aggregation functions, have changed from axis=1 (some spatial axis) to "time". See details below:
What's Changed
* Dataset quantile by jsmariegaard in https://github.com/DHI/mikeio/pull/251
* Generic Time average by ecomodeller in https://github.com/DHI/mikeio/pull/223
* Combine Datasets by jsmariegaard in https://github.com/DHI/mikeio/pull/233
* Dfsu get_element coordinates for dynamic zn and other improvements by jsmariegaard in https://github.com/DHI/mikeio/pull/249
* Dfs2 plot by ecomodeller in https://github.com/DHI/mikeio/pull/228
* Support for Pathlib paths by ecomodeller in https://github.com/DHI/mikeio/pull/240
**Full Changelog**: https://github.com/DHI/mikeio/compare/v0.8.0...v0.9.0
Dataset aggregation (mean(), max(), ...)
python
>>> import mikeio
>>> ds = mikeio.read("HD2D.dfsu")
>>> ds.shape
(9, 884)
>>> ds.mean() the new default is to aggregate along the time dimension
<mikeio.Dataset>
Dimensions: (1, 884)
Time: 1985-08-06 07:00:00 - 1985-08-06 07:00:00
Items:
0: Surface elevation <Surface Elevation> (meter)
1: U velocity <u velocity component> (meter per sec)
2: V velocity <v velocity component> (meter per sec)
3: Current speed <Current Speed> (meter per sec)
>>> ds.mean(axis="spatial")
<mikeio.Dataset>
Dimensions: (9,)
Time: 1985-08-06 07:00:00 - 1985-08-07 03:00:00
Items:
0: Surface elevation <Surface Elevation> (meter)
1: U velocity <u velocity component> (meter per sec)
2: V velocity <v velocity component> (meter per sec)
3: Current speed <Current Speed> (meter per sec)
>>> ds.mean(axis="time") you can also be explicit about using the time axis
<mikeio.Dataset>
Dimensions: (1, 884)
Time: 1985-08-06 07:00:00 - 1985-08-06 07:00:00
Items:
0: Surface elevation <Surface Elevation> (meter)
1: U velocity <u velocity component> (meter per sec)
2: V velocity <v velocity component> (meter per sec)
3: Current speed <Current Speed> (meter per sec)