T_variability: A Function characterizes variability of stream temperature

Description Usage Arguments Examples

Description

This function cacluate metrics that characterize variability of stream temperature

Usage

1
2
T_variability(sitedata, TlengthPortion = 2/3, SeasonSp = c(3, 4, 5),
  SeasonSu = c(6, 7, 8), SeasonFa = c(9, 10, 11), SeasonWi = c(12, 1, 2))

Arguments

sitedata

stream monitoring site data in SiteID, Date(in as.Date format), MaxT, MinT, MeanT.

TlengthPortion

portion of length that required for calculating metric summaries, defaulty=2/3

SeasonSp

define spring season, default as March, April, and May, c(3,4,5)

SeasonSu

define summer season, default as June, July, August, c(6,7,8)

SeasonFa

define fall season, default as September, October, November, c(9,10,11)

SeasonWi

define winter season, default as December, Januray, February, c(12,1,2)

Examples

1
2
3
4
5
6
install.packages("dataRetrieval")
library(dataRetrieval)
ExUSGSStreamTemp<-readNWISdv("01382310","00010","2011-01-01","2011-12-31",c("00001","00002","00003"))
sitedata<-subset(ExUSGSStreamTemp, select=c("site_no","Date","X_00010_00001","X_00010_00002","X_00010_00003"))
names(sitedata)<-c("siteID","Date","MaxT","MinT","MeanT")
T_variability(sitedata)

tsangyp/StreamThermal documentation built on June 1, 2019, 1:54 a.m.