get_flow_anomaly
Compare current discharge with historical medians and percentiles for a given date to detect flow anomalies, with reliable percentile buckets when ratio is unreliable.
Instructions
Compare current discharge with the median and percentiles for this date.
as_of optionally selects the comparison day using an ISO date. Current
discharge remains the latest observation. Sites without normal statistics
return current flow with a null ratio and a plain-language explanation.
When ratio_reliable is false, use flow_state and
percentile_bucket instead of ranking by the raw ratio.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | ||
| site_id | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||