forked from DOI-USGS/EGRET
-
Notifications
You must be signed in to change notification settings - Fork 0
/
workflow2.r
71 lines (65 loc) · 1.68 KB
/
workflow2.r
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
library(dataRetrieval)
library(EGRET)
Sample <- exSample
Daily <- exDaily
INFO <- exINFO
annualSeries <- exannualSeries
AnnualResults <- setupYears()
surfaces <- exsurfaces
qBottom<-0.1
qTop<-100
clevel<-seq(0,2,0.5)
maxDiff<-0.8
yearStart <- 2008
yearEnd <- 2010
date1 <- "2000-09-01"
date2 <- "2005-09-01"
date3 <- "2009-09-01"
q1 <- 10
q2 <- 25
q3 <- 75
centerDate <- "07-01"
plotFlowSingle(8)
x <- Daily$Date
y <- Daily$Q
xlim <- c(min(x),max(x))
ylim <- c(min(y),1.05*max(y))
xlab <- "Date"
ylab <- "Flow"
xTicks <- pretty(xlim)
yTicks <- pretty(ylim)
genericEGRETDotPlot(x=x, y=y,
xlim=xlim, ylim=ylim,
xlab=xlab, ylab=ylab,
xTicks=xTicks, yTicks=yTicks,
plotTitle="Test"
)
siteID <- "01491000" #Choptank River at Greensboro, MD
startDate <- "1979-10-01"
endDate <- "2011-09-30"
param<-"00631"
Daily <- getDVData(siteID,"00060",startDate,endDate)
INFO<- getMetaData(siteID,param,interactive=FALSE)
INFO$shortName <- "Choptank River"
INFO <- setPA()
annualSeries <- makeAnnualSeries()
Sample <- getSampleData(siteID,param,startDate,endDate)
Sample <- mergeReport()
plotFlowSingle(8)
plotLogFluxQ(cex.main=1.5)
plotConcTime()
plotConcQ()
=======
Sample <- getSampleData(siteID,param,startDate,endDate)
Sample <- mergeReport()
annualSeries <- makeAnnualSeries()
plotFlowSingle(8)
plotLogFluxQ(cex.main=1.5)
siteID <- "08279500" #Rio Grande at Embudo, NM (section 3)
startDate <- ""
endDate <- ""
Daily <- getDVData(siteID,"00060",startDate, endDate,interactive=FALSE)
INFO <- getMetaData(siteID,"",interactive=FALSE)
INFO$shortName <- "Rio Grande at Embudo, NM"
INFO <- setPA()
annualSeries <- makeAnnualSeries()