Skip to content

Wateruse#905

Open
ldecicco-USGS wants to merge 11 commits into
DOI-USGS:developfrom
ldecicco-USGS:wateruse
Open

Wateruse#905
ldecicco-USGS wants to merge 11 commits into
DOI-USGS:developfrom
ldecicco-USGS:wateruse

Conversation

@ldecicco-USGS

Copy link
Copy Markdown
Collaborator

Initial push of water use function.

Merge branch 'develop' of github.com:ldecicco-USGS/dataRetrieval into wateruse

# Conflicts:
#	R/readNWISunit.R
#	tests/testthat/tests_userFriendly_fxns.R
#	vignettes/Status.Rmd
#	vignettes/dataRetrieval.Rmd
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into wateruse

# Conflicts:
#	R/walk_pages.R
#	vignettes/Status.Rmd
#	vignettes/dataRetrieval.Rmd
Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into wateruse

# Conflicts:
#	R/readNWISunit.R
#	R/walk_pages.R
#	vignettes/Status.Rmd
#	vignettes/dataRetrieval.Rmd
#	vignettes/tutorial.Rmd
Comment thread R/read_wateruse.R
#' @param model See model IDs on the NWDC data catalog page.
#' Options are : "wu-public-supply-wd", "wu-thermoelectric", "wu-irrigation-cu",
#' "wu-irrigation-wd", and "wu-public-supply-cu"
#' @param variable See variable IDs on the NWDC data catalog page.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Comment thread man/read_waterdata_use_data.Rd Outdated
% Please edit documentation in R/read_waterdata_use.R
\name{read_waterdata_use_data}
\alias{read_waterdata_use_data}
\title{Get USGS Daily Data}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

should be water use, not daily

Comment thread R/read_waterdata_use.R Outdated
#' startdate = "2020",
#' timeres = "annualwy")
#' }
read_waterdata_use_data <- function(model = NA_character_,

@cnell-usgs cnell-usgs Jun 23, 2026

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

may want to revisit naming. read_waterdata_usedata would be a more consistent pattern with 'data'

Comment thread vignettes/Status.Rmd



Coming soon, a new new access point for the National Groundwater Monitoring Network. The original `readNGWMNdata` functions have been broken for some time. `read_waterdata_use` is currently in development!

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fxn name is different here. I like this one best

Comment thread R/read_wateruse.R
limit = 600){

args <- mget(names(formals()))
args <- Filter(Negate(anyNA), args)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

include some kind of validation of the input

Comment thread R/read_wateruse.R
#' @param startdate Format : YYYY (for annual data) or YYYY-MM (for monthly data)
#' @param enddate Format : YYYY (for annual data) or YYYY-MM (for monthly data)
#' @param intersection Options : overlap, envelop
#' @param limit Defines the number of HUC12s returned per page or file.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

testing this it seems like over 10000 maxes out the server and returns 400 error

Merge branch 'develop' of github.com:DOI-USGS/dataRetrieval into wateruse

# Conflicts:
#	R/walk_pages.R
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants