Closed mrustl closed 3 years ago
Hi @mrustl, thanks. However, I think at the moment, data is only aggregated between the different rehab.dates but not between date and rehab.date, isn't it?
For well_id 162, as an example, we would need for each row the volume abstracted between date and last_rehab.date (and eventually also between date_and operational_start.date, as an extra). If volume data is incomplete for a time interval, there should be an NA.
well_id | date | last_rehab.date | operational_start.date | key | Qs_rel |
---|---|---|---|---|---|
162 | 1970-12-15 | 1970-12-15 | 1970-12-15 | operational_start | 1.000 |
162 | 1994-02-14 | 1994-01-30 | 1970-12-15 | pump_test_2 | 0.978 |
162 | 2000-04-10 | 1994-01-30 | 1970-12-15 | pump_test_1 | 0.751 |
162 | 2000-06-08 | 2000-05-10 | 1970-12-15 | pump_test_2 | 0.785 |
162 | 2005-11-28 | 2000-05-10 | 1970-12-15 | pump_test_1 | 0.522 |
162 | 2005-12-01 | 2005-11-30 | 1970-12-15 | pump_test_2 | 0.612 |
162 | 2013-03-21 | 2005-11-30 | 1970-12-15 | pump_test_1 | 0.315 |
162 | 2013-11-21 | 2013-07-22 | 1970-12-15 | pump_test_2 | 0.272 |
162 | 2015-02-17 | 2013-07-22 | 1970-12-15 | pump_test_1 | 0.207 |
162 | 2018-10-29 | 2013-07-22 | 1970-12-15 | pump_test_1 | 0.163 |
162 | 2018-11-12 | 2018-11-05 | 1970-12-15 | pump_test_2 | 0.224 |
What do you think?
First output (shown here for first three wells) for discussion (see: https://github.com/KWB-R/dwc.wells/blob/13a597ee29d9a06e20120aab3367abcde5212360/inst/extdata/scripts/aggregate_abstraction_volumes.R):
To be removed if
days_available_percent
<100%
??This change is