Flow across a line for a run
get_flow_hydrographFlow (Q) across a drawn line, at every frame of a completed run.
Instructions
Flow (Q) across a drawn line, at every frame of a completed run.
Integrates depth times velocity normal to the line from the run's playback store:
returns time_s and q_m3s per frame, peak_m3s and peak_time_s,
max_positive_m3s and max_negative_m3s (the largest flow each way, so a
negative peak is not read as the flood peak), volume_m3, sign_convention,
frame_spacing_s, warnings (the peak is resolved to the nearest frame, so the
true peak may fall between frames) and a mass_balance (rain and inflow in, left
in the model; outflow is by difference, open-boundary flux is not integrated).
When more water is left in the model than rain and inflow put in, warnings says
so: it usually came in through an open boundary; relay it. Relay say_to_user.
This is the model's flow, not a gauge reading.
A run with no playback store answers outcome no_playback_store; a bad line answers
bad_line with the reason.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"run_id": "<run_id>",
"line": "<line>"
},
"name": "get_flow_hydrograph"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| line | Yes | The line to measure across, as [[lon, lat], [lon, lat], ...] in WGS84 (at least 2 points), in the order drawn. Positive flow crosses from the line's left bank to its right bank. | |
| run_id | Yes | The run ID |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||