@@ -34,7 +34,7 @@
Loading
34 34
                           columnName = NULL, columnValue = NULL,
35 35
                           useCachedData = TRUE){
36 36
37 -
  theurl <- paste0("ftp://hydrology.nws.noaa.gov/pub/gcip/mopex/US_Data/",
37 +
  theurl <- paste0("https://hydrology.nws.noaa.gov/gcip/mopex/US_Data/",
38 38
                   "Basin_Characteristics/usgs431.txt")
39 39
40 40
  MOPEXcatalogue <- NULL
@@ -142,7 +142,7 @@
Loading
142 142
143 143
tsMOPEX <- function(stationID, plotOption = FALSE, timeExtent = NULL){
144 144
145 -
  theurl <- paste0("ftp://hydrology.nws.noaa.gov/pub/gcip/mopex/US_Data/",
145 +
  theurl <- paste0("https://hydrology.nws.noaa.gov/gcip/mopex/US_Data/",
146 146
                   "Us_438_Daily/", stationID, ".dly")
147 147
148 148
  if(RCurl::url.exists(theurl)) {

@@ -58,19 +58,15 @@
Loading
58 58
    n.rows <- unlist(lapply(tables, function(t) dim(t)[1]))
59 59
    Data60UKcatalogue <- tables[[which.max(n.rows)]]
60 60
    names(Data60UKcatalogue) <- c("stationID", "River", "Location")
61 -
    IDs <- unlist(as.numeric(as.character(Data60UKcatalogue$stationID)))
62 -
63 -
    # Find grid reference browsing the NRFA catalogue
64 -
    temp <- rnrfa::catalogue(columnName = "id", columnValue = IDs)
65 -
    refs <- temp$gridReference
66 -
    Data60UKcatalogue$gridReference <- unlist(refs)
67 -
68 -
    Data60UKcatalogue$Latitude <- temp$lat
69 -
    Data60UKcatalogue$Longitude <- temp$lon
70 -
71 61
    Data60UKcatalogue[] <- lapply(Data60UKcatalogue, as.character)
72 -
    Data60UKcatalogue$Latitude <- as.numeric(Data60UKcatalogue$Latitude)
73 -
    Data60UKcatalogue$Longitude <- as.numeric(Data60UKcatalogue$Longitude)
62 +
    
63 +
    # Find grid reference browsing the NRFA catalogue
64 +
    temp <- rnrfa::catalogue()
65 +
    temp <- temp[which(temp$id %in% Data60UKcatalogue$stationID), ]
66 +
    
67 +
    Data60UKcatalogue$gridReference <- temp$`grid-reference`$ngr
68 +
    Data60UKcatalogue$Latitude <- temp$latitude
69 +
    Data60UKcatalogue$Longitude <- temp$longitude
74 70
75 71
  }
76 72
Files Coverage
R 45.35%
Project Totals (7 files) 45.35%
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file. The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files. The size and color of each slice is representing the number of statements and the coverage, respectively.
Grid
Each block represents a single file in the project. The size and color of each block is represented by the number of statements and the coverage, respectively.
Loading