Getting Started¶
This package builds on top of RTC-Tools 2, and also relies heavily on the ChannelFlow library.
Installation¶
Installation of the RTC-Tools Water Allocation library is as simple as:
pip install rtc-tools-water-allocation
Introduction¶
RTC-Tools Water Allocation consists of a bunch of mixins, classes, and helper routines. The overall structure is as follows:
1.
WaterAllocationMixinLowest level class, where you are required to specify all goals yourself. It provides additional methods for forcing goals and range goals, which are then automatically translated into the correct goal formulation.2.
GoalGeneratorMixinMiddle-level class. You can specify certain so-calledGoalDefinitionobjects, which are translated into goals when the corresponding timeseries exist.3.
ConfigGoalGeneratorMixinHigh-level class. You can specify the goal definitions in text files instead of Python.In addition to this layered approach, there are also some helper functions:
1.
pattern_to_timeseries()Generate Timeseries objects based on a (repeating) datetime pattern specification.2.
csv_pattern_to_timeseries()You can specify the patterns with CSV files instead of Python.