Description
Subtract previousStage from currentStage, divide by positive elapsedHours, and label steady when absolute change is within nonnegative tolerance; otherwise label rising or falling.
A level reading is measured relative to an origin or datum. Adding an offset can express the same supplied observation in another compatible coordinate, while changing the reference label alone does not transform a datum.
Subtract previousStage from currentStage, divide by positive elapsedHours, and label steady when absolute change is within nonnegative tolerance; otherwise label rising or falling.
When to use this tool
Use River Stage Rising Falling Flag when you need one signed level, datum, or reference comparison.
How to use the tool and how it works
- Enter previousStage, currentStage, elapsedHours, tolerance. Use the units and conventions below.
- Run the tool. Correct any format, range, or cross-field input error before interpreting the output.
- Read change, ratePerHour, trend. Use the output convention below.
Subtract previousStage from currentStage, divide by positive elapsedHours, and label steady when absolute change is within nonnegative tolerance; otherwise label rising or falling.1
| Input field | Meaning and units | Accepted input |
|---|---|---|
| previousStage | Previous Stage | Required. Finite number. |
| currentStage | Current Stage | Required. Finite number. |
| elapsedHours | Elapsed Hours | Required. Finite number; strictly above 0. |
| tolerance | Tolerance | Required. Finite number; minimum 0. |
| Output field | Interpretation | Returned shape |
|---|---|---|
| change | Change | Required. Finite number. |
| ratePerHour | Rate Per Hour | Required. Finite number. |
| trend | Trend | Required. Text; maximum UTF-16 length 8192. |
{
"input": {
"previousStage": 2,
"currentStage": 2.5,
"elapsedHours": 2,
"tolerance": 0.1
},
"output": {
"change": 0.5,
"ratePerHour": 0.25,
"trend": "rising"
}
} Limitations and assumptions
- Stages and tolerance share a length unit and datum; tolerance applies to total stage change rather than hourly rate, and the result is not a flood forecast.
- Inputs must satisfy both the field types and the cross-field conditions above. Invalid input causes an error; a successful false flag or documented placeholder is a different result.
- Numeric calculations use binary floating point unless exact decimal-integer arithmetic is explicitly stated. No hidden measurement tolerance or decimal rounding is added; nonfinite or out-of-contract results are rejected. Numeric signed-zero results are exported as zero.
Alternative or Complementary methods
Verify the survey references, measurement direction, and calibration before using levels in an operational decision.
References
Similar or alternative tools
- Stream Stage Reference Sign
Multiply stage-referenceStage by +1 when positiveUp and -1 otherwise.
- Gauge Zero Stage Datum Shift
Add oldZero to stage for waterElevation and subtract newZero for shiftedStage.