Daily threshold exceedance

From XuShuwenn/RedAct · View interactive version

Daily threshold exceedance is an AI agent skill from the GitHub repository XuShuwenn/RedAct. Compute per-station daily exceedance counts over a date window and write a filtered CSV; use for flood-days or similar threshold analyses.

How to use this skill

Skill file

Daily Threshold Exceedance Detection

This skill guides you to compute, validate, and export the number of calendar days each station exceeded a reference threshold within a specified date window. It abstracts a reliable workflow for flood-day detection (e.g., USGS stage vs NWS flood stage) and similar per-day threshold analyses.

When to Use

Activate this skill when the task asks you to:

Core Workflow

  1. Inspect Inputs
  1. Retrieve/Assemble Thresholds
  1. Collect Observation Data
  1. Aggregate to Daily Maxima
  1. Detect Exceedances and Count Days
  1. Filter and Export
  1. Post-Run Verification

Verification Checklist

Use these checks to catch common issues early:

Common Pitfalls and How to Avoid Them

Optional Script Usage

Use the helper script when you already have:

It computes per-station daily maxima in a date window and outputs station_id,flood_days for stations with at least one exceedance.

Example:

Run:

--observations observations.csv \

--thresholds thresholds.csv \

--start-date YYYY-MM-DD \

--end-date YYYY-MM-DD \

--output flood_results.csv \

--data-units ft \

--threshold-units ft

Script guarantees:

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.