Skip to content

Commit

Permalink
Updated function library locations following moving code from working…
Browse files Browse the repository at this point in the history
… directory to separate script directory location
  • Loading branch information
lawaFreshwater committed Jul 18, 2017
1 parent 8f58830 commit 0800386
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 16 deletions.
3 changes: 2 additions & 1 deletion PackageDataForDelivery.R
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ od<-getwd()
setwd("//file/herman/r/oa/08/02/2017/Water Quality/R/lawa_state")

#/* -===Include required function libraries===- */
source("lawa_state_functions.R")

source("scripts/WQualityStateTrend/lawa_state_functions.R")

wqparam <- c("BDISC","TURB","PH","NH4","TON","TN","DRP","TP","ECOLI")
wqparam <- as.data.frame(as.matrix(wqparam))
Expand Down
2 changes: 1 addition & 1 deletion lawa_10yrsDataPull.R
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ EndYear <- 2016

#/* -===Include required function libraries===- */

source("lawa_state_functions.R")
source("scripts/WQualityStateTrend/lawa_state_functions.R")

#/* -===Global variable/constant definitions===- */
vendor <- c("52NORTH","AQUATIC","HILLTOP","KISTERS")
Expand Down
6 changes: 3 additions & 3 deletions lawa_intersect_WFS.R
Original file line number Diff line number Diff line change
Expand Up @@ -15,13 +15,13 @@ rm(list = ls())
ANALYSIS<-"Intersect WFS"
# Set working directory

od <- getwd()
wd <- "\\\\file\\herman\\R\\OA\\08\\02\\2017\\Water Quality\\R\\lawa_state"
od <- getwd()
wd <- "\\\\file\\herman\\R\\OA\\08\\02\\2017\\Water Quality\\R\\lawa_state"
setwd(wd)

#/* -===Include required function libraries===- */

source("lawa_state_functions.R")
source("scripts\\WQualityStateTrend\\lawa_state_functions.R")

require(rgeos)
require(spatialEco)
Expand Down
12 changes: 2 additions & 10 deletions lawa_state_5yr.R
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,7 @@ EndYear <- 2016

#/* -===Include required function libraries===- */


source("lawa_state_functions.R")
source("scripts/WQualityStateTrend/lawa_state_functions.R")

#/* -===Global variable/constant definitions===- */
vendor <- c("52NORTH","AQUATIC","HILLTOP","KISTERS")
Expand Down Expand Up @@ -253,14 +252,7 @@ for(i in 1:length(wqparam)){
"Region","Agency","ISLAND","CatchID","CatchType",
"NZREACH","Catchment","Comments","LawaCatchm","CatchLbl")

# newFieldNames <- c("SiteName","Date","Value","Method","parameter",
# "Censored","CenType","ROS","iValues",
# "OriginalValues","X","LAWAID","ID",
# "UsedInLAWA","AltitudeGroup","LanduseGroup","FrequencyAll","Frequency",
# "Region","Agency","ISLAND","CatchID","CatchType",
# "NZREACH","Catchment","Comments","LawaCatchm","CatchLbl")
#
#

names(wqdata) <- newFieldNames

### ADD IN THE LAWA SITE TABLE ATTRIBUTES
Expand Down
2 changes: 1 addition & 1 deletion lawa_trend_x_yrs.R
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ StartYear <- EndYear - TRENDPERIOD + 1

#/* -===Include required function libraries===- */

source("lawa_state_functions.R")
source("scripts/WQualityStateTrend/lawa_state_functions.R")

#/* -===Global variable/constant definitions===- */
vendor <- c("52NORTH","AQUATIC","HILLTOP","KISTERS")
Expand Down

0 comments on commit 0800386

Please sign in to comment.