DHI / mikeio

Read, write and manipulate dfs0, dfs1, dfs2, dfs3, dfsu and mesh files.
https://dhi.github.io/mikeio
BSD 3-Clause "New" or "Revised" License
136 stars 53 forks source link

Extract class time step selection #594

Closed ecomodeller closed 9 months ago

ecomodeller commented 10 months ago

There are many ways to subset a Dfs file in time, e.g. with the mikeio.read(..., time=)

This PR extracts the functionality for calendarequidistant time axis (similar to pandas datetimeindex) into a separate class, which can be tested independently from reading an actual dfs file.