ma41.45: Function to return the MA41.45 hydrologic indicator...

Description Usage Arguments Value Examples

View source: R/RProjects/HITHATStats/R/ma41.45.R View source: R/ma41.45.R

Description

This function accepts a data frame that contains columns named "discharge" and "year_val" and a value "drain_area" containing the drainage area (in square miles) and calculates MA41; Annual runoff. Compute the annual mean daily flows. MA41 is the mean of the annual means divided by the drainage area (cubic feet per second/square mile-temporal). MA42; Variability across annual flows. MA42 is the maximum annual flow minus the minimum annual flow divided by the median of mean annual flows (dimensionless-spatial). MA43; Variability across annual flows. Compute the first (25th percentile) and third (75th percentile) quartiles and the 10th and 90th percentiles for the annual means (every year in the flow record). MA43 is the third quartile minus the first quartile divided by the median of the annual means (dimensionless-spatial). MA44; Variability across annual flows. Compute the first (25th percentile) and third (75th percentile) quartiles and the 10th and 90th percentiles for the annual means (every year in the flow record). MA44 is the 90th percentile minus the 10th percentile divided by the median of the annual means (dimensionless-spatial). MA45; Skewness in the annual flows. MA45 is the mean of the annual flow means minus the median of the annual means divided by the median of the annual means (dimensionless-spatial).

Usage

1
  ma41.45(qfiletemp, drain_area)

Arguments

qfiletemp

data frame containing a "discharge" column containing daily flow values

drain_area

numeric containing the drainage area of the selected site

Value

ma41.45 list of MA41-MA45 for the given data frame

Examples

1
2
3
qfiletempf<-sampleData
drain_area<-56.5
ma41.45(qfiletempf,drain_area)

jlthomps/EflowStats documentation built on May 19, 2019, 12:48 p.m.