Description Usage Arguments Examples
This function cacluate metrics that characterize rate of change of stream temperature
1 2 | T_rateofchange(sitedata, TlengthPortion = 2/3, SeasonSp = c(3, 4, 5),
SeasonSu = c(6, 7, 8), SeasonFa = c(9, 10, 11), SeasonWi = c(12, 1, 2))
|
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) |
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_rateofchange(sitedata)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.