Global snowmelt processing methods.
More...
|
| int | snow_readMeltParams (char *tok[], int ntoks) |
| | Reads snowmelt parameters from a tokenized line of input data.
|
| |
| int | snow_createSnowpack (int subcatchIndex, int snowIndex) |
| | Creates a snowpack object for a subcatchment.
|
| |
| void | snow_validateSnowmelt (int snowIndex) |
| | Checks for valid values in a snowmelt parameter set.
|
| |
| void | snow_initSnowpack (int subcatchIndex) |
| | Initializes state of a subcatchment's snowpack.
|
| |
| void | snow_initSnowmelt (int snowIndex) |
| | Initializes values in a snowmelt parameter set.
|
| |
| void | snow_getState (int subcatchIndex, int subAreaIndex, double x[]) |
| | Retrieves the current state of a snowpack object.
|
| |
| void | snow_setState (int subcatchIndex, int subAreaIndex, double x[]) |
| | Sets the current state of a snowpack object.
|
| |
| void | snow_setMeltCoeffs (int snowIndex, double season) |
| | Sets values of snowmelt coefficients for a particular time of year.
|
| |
| void | snow_plowSnow (int subcatchIndex, double tStep) |
| | Adds new snow to subcatchment and plows it between sub-areas.
|
| |
| double | snow_getSnowMelt (int subcatchIndex, double rainfall, double snowfall, double tStep, double netPrecip[]) |
| | Modifies rainfall input to subcatchment's subareas based on possible snow melt and updates snow depth over entire subcatchment.
|
| |
| double | snow_getSnowCover (int subcatchIndex) |
| | Computes volume of snow on a subcatchment.
|
| |
Global snowmelt processing methods.
◆ snow_createSnowpack()
| int snow_createSnowpack |
( |
int | subcatchIndex, |
|
|
int | snowIndex ) |
Creates a snowpack object for a subcatchment.
- Parameters
-
| [in] | subcatchIndex | Subcatchment index |
| [in] | snowIndex | Snowmelt parameter set index |
- Returns
- TRUE if successful, FALSE if not
◆ snow_getSnowCover()
| double snow_getSnowCover |
( |
int | subcatchIndex | ) |
|
Computes volume of snow on a subcatchment.
- Parameters
-
| [in] | subcatchIndex | Subcatchment index |
- Returns
- Volume of snow cover (ft3)
◆ snow_getSnowMelt()
| double snow_getSnowMelt |
( |
int | subcatchIndex, |
|
|
double | rainfall, |
|
|
double | snowfall, |
|
|
double | tStep, |
|
|
double | netPrecip[] ) |
Modifies rainfall input to subcatchment's subareas based on possible snow melt and updates snow depth over entire subcatchment.
- Parameters
-
| [in] | subcatchIndex | Subcatchment index |
| [in] | rainfall | Rainfall (ft/sec) |
| [in] | snowfall | Snowfall (ft/sec) |
| [in] | tStep | Time step (sec) |
| [out] | netPrecip | Rainfall + snowmelt on each runoff sub-area (ft/sec) |
- Returns
- New snow depth over subcatchment
◆ snow_getState()
| void snow_getState |
( |
int | i, |
|
|
int | j, |
|
|
double | x[] ) |
Retrieves the current state of a snowpack object.
- Parameters
-
| [in] | subcatchIndex | Subcatchment index |
| [in] | subAreaIndex | Snowpack sub-area index |
| [out] | x | Array of snowpack state variables |
| [in] | subcatch | Subcatchment index |
| [in] | subArea | Snowpack sub-area index |
| [out] | x | Array of snowpack state variables |
◆ snow_initSnowmelt()
| void snow_initSnowmelt |
( |
int | snowIndex | ) |
|
Initializes values in a snowmelt parameter set.
- Parameters
-
| [in] | snowIndex | Snowmelt parameter set index |
◆ snow_initSnowpack()
| void snow_initSnowpack |
( |
int | subcatchIndex | ) |
|
Initializes state of a subcatchment's snowpack.
- Parameters
-
| [in] | subcatchIndex | Subcatchment index |
◆ snow_plowSnow()
| void snow_plowSnow |
( |
int | subcatchIndex, |
|
|
double | tStep ) |
Adds new snow to subcatchment and plows it between sub-areas.
- Parameters
-
| [in] | subcatchIndex | Subcatchment index |
| [in] | tStep | Time step (sec) |
◆ snow_readMeltParams()
| int snow_readMeltParams |
( |
char * | tok[], |
|
|
int | ntoks ) |
Reads snowmelt parameters from a tokenized line of input data.
- Parameters
-
| [in] | tok | Array of string tokens |
| [in] | ntoks | Number of tokens |
- Returns
- Error code
Format of data are:
- Name SubArea Cmin Cmax Tbase FWF SD0 FW0 SNN0/SD100
- Name REMOVAL SDplow Fout Fimperv Fperv Fimelt Fsubcatch (Subcatch)
◆ snow_setMeltCoeffs()
| void snow_setMeltCoeffs |
( |
int | snowIndex, |
|
|
double | season ) |
Sets values of snowmelt coefficients for a particular time of year.
- Parameters
-
| [in] | snowIndex | Snowmelt parameter set index |
| [in] | season | Season of the year |
◆ snow_setState()
| void snow_setState |
( |
int | subcatchIndex, |
|
|
int | subAreaIndex, |
|
|
double | x[] ) |
Sets the current state of a snowpack object.
- Parameters
-
| [in] | subcatchIndex | Subcatchment index |
| [in] | subAreaIndex | Snowpack sub-area index |
| [in] | x | Array of snowpack state variables |
◆ snow_validateSnowmelt()
| void snow_validateSnowmelt |
( |
int | snowIndex | ) |
|
Checks for valid values in a snowmelt parameter set.
- Parameters
-
| [in] | snowIndex | Snowmelt parameter set index |