Create a new function that takes the timeseries (datatype is always flow) from a group of stations and aggregates the values to create a new station and timeseries.
[x] Read the aggregate_rules_file_example.txt from the DATA_COMMON directory (this contains the equations)
[x] Check that the names of the new stations don't match any existing station names
[x] Check that we are dealing with daily values
[x] Check that all the equations have valid syntax
[x] For stations that are subtracted, multiply the timeseries by (-1.0) before adding to the total
[x] Aggregate the daily values according to the equations
-print out the equations to the screen after calculating each one
-if one of the summands does not exist, print out "(not found)" after the station name but continue the calculation without it
-if none of the summands exist, print out "(not calculated)" after the aggregate station name in addition to "(not found)" after the summands
ie: S332TOT_Q = + S332BN_Q + S332BW_Q(not found) + S332C_Q + S332D_Q
ie: S332TOT_Q(not calculated) = + S332BN_Q(not found) + S332BW_Q(not found) + S332C_Q(not found) + S332D_Q(not found)
[x] Allow for new station totals to be used as summands in subsequent equations in the list
S332TOT_Q = + S332BN_Q + S332BW_Q + S332C_Q + S332D_QAllPumps_Q = + S332TOT_Q + S199_Q + S200_Q
AGGREGATE_STATIONS FEATURE
Create a new function that takes the timeseries (datatype is always flow) from a group of stations and aggregates the values to create a new station and timeseries.
For example:
S332TOT_Q = [aggregate_rules_file_example.txt](https://github.com/kirenbahm/ENP_TOOLS/files/4617137/aggregate_rules_file_example.txt) S332BN_Q + S332BW_Q + S332C_Q + S332D_Q
This function will:
[x] Read the aggregate_rules_file_example.txt from the DATA_COMMON directory (this contains the equations)
[x] Check that the names of the new stations don't match any existing station names
[x] Check that we are dealing with daily values
[x] Check that all the equations have valid syntax
[x] For stations that are subtracted, multiply the timeseries by (-1.0) before adding to the total
[x] Aggregate the daily values according to the equations -print out the equations to the screen after calculating each one -if one of the summands does not exist, print out "(not found)" after the station name but continue the calculation without it -if none of the summands exist, print out "(not calculated)" after the aggregate station name in addition to "(not found)" after the summands ie:
S332TOT_Q = + S332BN_Q + S332BW_Q(not found) + S332C_Q + S332D_Q
ie:S332TOT_Q(not calculated) = + S332BN_Q(not found) + S332BW_Q(not found) + S332C_Q(not found) + S332D_Q(not found)
[x] Allow for new station totals to be used as summands in subsequent equations in the list
S332TOT_Q = + S332BN_Q + S332BW_Q + S332C_Q + S332D_Q
AllPumps_Q = + S332TOT_Q + S199_Q + S200_Q