unifhy-org / unifhy

A Unified Framework for Hydrology
https://unifhy-org.github.io/unifhy
BSD 3-Clause "New" or "Revised" License
11 stars 5 forks source link

Temporal aggregation/disaggregation of input data files #100

Open Mark-D-Smith opened 3 weeks ago

Mark-D-Smith commented 3 weeks ago

Currently input data files must be given with the same timestep as the reading model component, but many externally-provided files may be on a different timestep. This stipulation does not appear to apply to inwards data, which can be (dis)aggregated as needed to enable compatibility between components.

A simple first improvement would be to allow the user to specify an aggregation/disaggregation method for a given variable. For instance, daily rainfall might be uniformly disaggregated to hourly or summed to monthly as appropriate. The user would need to choose sensible methods - UniFHy should not make assumptions about the method to use, and some more complex schema would be too hard to implement (e.g. sinusoidal varying hourly temperature derived from daily min/max).

Suggested methods:

Disaggregation: