Rain gage input, state, and rainfall retrieval.
More...
#include <string.h>
#include <math.h>
#include "headers.h"
|
| int | gage_readParams (int gageIndex, char *tok[], int ntoks) |
| | Reads rain gage parameters from a line of input data.
|
| |
| void | gage_validate (int gageIndex) |
| | Checks for valid rain gage parameters.
|
| |
| void | gage_initState (int j) |
| | Initializes state of a rain gage.
|
| |
| void | gage_setState (int j, DateTime t) |
| | Updates state of rain gage for specified date.
|
| |
| void | gage_updatePastRain (int gageIndex, int tStep) |
| | Updates past MAXPASTRAIN hourly rain totals.
|
| |
| double | gage_getPastRain (int j, int n) |
| | Retrieves rainfall total over some previous number of hours.
|
| |
| DateTime | gage_getNextRainDate (int gageIndex, DateTime aDate) |
| | Finds the next date from specified date when rainfall occurs.
|
| |
| double | gage_getPrecip (int gageIndex, double *rainfall, double *snowfall) |
| | Determines whether gage's recorded rainfall is rain or snow.
|
| |
| void | gage_setReportRainfall (int gageIndex, DateTime reportDate) |
| | Sets the rainfall value reported at the current reporting time.
|
| |
Rain gage input, state, and rainfall retrieval.
- Author
- Caleb Buahin caleb.nosp@m..bua.nosp@m.hin@g.nosp@m.mail.nosp@m..com (OpenSWMM maintenance and extensions)
- Copyright
- Copyright (c) 2026 Caleb Buahin. OpenSWMM contributions only; original EPA SWMM credits are retained.
- License
- Apache-2.0 for OpenSWMM contributions; original EPA SWMM provenance is retained.
◆ _CRT_SECURE_NO_DEPRECATE
| #define _CRT_SECURE_NO_DEPRECATE |
◆ OneSecond
| const double OneSecond = 1.1574074e-5 |