Skip to content

Commit

Permalink
update dois and bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dblodgett-usgs committed Feb 15, 2023
1 parent 04b195f commit cfc2182
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 1 addition & 1 deletion DESCRIPTION
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Package: nhdplusTools
Type: Package
Title: NHDPlus Tools
Version: 1.0.0
Version: 1.0.1
Authors@R: c(person(given = "David",
family = "Blodgett",
role = c("aut", "cre"),
Expand Down
2 changes: 1 addition & 1 deletion R/A_nhdplusTools.R
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ vaa_hydroshare <-
'https://www.hydroshare.org/resource/6092c8a62fac45be97a09bfd0b0bf726/data/contents/nhdplusVAA.fst'

vaa_sciencebase <-
'https://www.sciencebase.gov/catalog/file/get/60c92503d34e86b9389df1c9?name=enhd_nhdplusatts.fst'
'https://www.sciencebase.gov/catalog/file/get/63cb311ed34e06fef14f40a3?name=enhd_nhdplusatts.fst'

nhdplusTools_env <- new.env()

Expand Down
5 changes: 3 additions & 2 deletions R/get_vaa.R
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ get_vaa_names <- function(updated_network = FALSE) {
#' found at path.
#' @param updated_network logical default FALSE. If TRUE, updated network attributes
#' from E2NHD and National Water Model retrieved from
#' \doi{10.5066/P9W79I7Q}.
#' \doi{10.5066/P976XCVT}.
#' @return data.frame containing requested VAA data
#' @importFrom fst read.fst
#' @export
Expand Down Expand Up @@ -298,8 +298,9 @@ get_catchment_characteristics <- function(varname, ids, reference_fabric = "nhdp
att$characteristic_id <- x
att$percent_nodata <- 0

distinct(
select(att, all_of(c(characteristic_id = "characteristic_id", comid = "COMID",
characteristic_value = x, percent_nodata = "percent_nodata")))
characteristic_value = x, percent_nodata = "percent_nodata"))))
})
}, error = function(e) {
e
Expand Down
2 changes: 1 addition & 1 deletion man/download_vaa.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/get_vaa.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion man/get_vaa_names.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit cfc2182

Please sign in to comment.