Implementation of non gauged station with donor other than a downstream gauged station
Here, we try to take care of the following study cases:
- the donor sub-basin is upstream
- the donor sub-basin is on a parallel basin
Current implementation in #42 (closed) automatically takes the first downstream gauged node as donor for model and parameters.
We should be able to define the case when we want to inherit model and parameter from au gauged node located upstream of the ungauged node.
Proposition
We keep the current behavior of auto-definition of the first downstream gauged node as a donor and we:
-
Allow the use of a donorcolumn ondbparameter ofCreateGRiwrm -
Complete donor with setDonorfor undefined donors -
Add a warning at CreateGRiwrmexecution for auto-defined donors: "Node [id] is defined as donor for ungauged node [id]" -
Take care of the donor in the sorting of the nodes for simulation (Sort donors in first position in the list before computing node ranking) -
Test all possible configurations with downstream, upstream, sibling donors and combinations including impossible cases due to cycling references -
In CreateInputsModeladd a flagis_receiverto differenciate from ungauged node by downstream donor -
Modify Calibration procedure to take into account the parameter transfer to downstream ungauged nodes (instead of upstream)