Skip to content

Extra query params#913

Open
ldecicco-USGS wants to merge 22 commits into
DOI-USGS:developfrom
ldecicco-USGS:extra_query_params
Open

Extra query params#913
ldecicco-USGS wants to merge 22 commits into
DOI-USGS:developfrom
ldecicco-USGS:extra_query_params

Conversation

@ldecicco-USGS

Copy link
Copy Markdown
Collaborator
  • Created make_monitoring_location_arguments to help users understand
    what new optional arguments are available in many of the read_waterdata functions.
  • Added ability to use ... in the Water Data functions for: daily, latest-continuous,
    field-measurements, latest-daily, latest-field-measurements, continuous, and peaks.
    The "..." argument can now accept any parameter that is output from the
    make_monitoring_location_arguments function.
  • Added "q" argument to read_waterdata_monitoring_location. Full-text search across
    the most relevant text fields for this collection (e.g. site name, identifier,
    number, state, county, and site type).
  • Added "skipGeometry" argument to read_waterdata_continuous. Previously geometry
    wasn't included with continuous data, but now is supported.

New examples:

dane <- read_waterdata_continuous(
  state_name = "Wisconsin",
  county_name = "Dane County",
  parameter_code = "00060",
  time = "P1D")

dane <- read_waterdata_latest_daily(
  state_name = "Wisconsin",
  county_name = "Dane County",
  parameter_code = "00060",
  time = "P7D")

dane <- read_waterdata_peaks(
  state_name = "Wisconsin",
  county_name = "Dane County",
  parameter_code = "00060")

dv_dane <- read_waterdata_daily(
   state_name = "Wisconsin",
   county_name = "Dane County",
   parameter_code = "00060",
   time = "P7D")

dane <- read_waterdata_field_measurements(
  state_name = "Wisconsin",
  county_name = "Dane County",
  parameter_code = "00060",
  time = "P30D")

dane <- read_waterdata_latest_continuous(
  state_name = "Wisconsin",
  county_name = "Dane County",
  parameter_code = "00060",
  time = "P1D")

dane <- read_waterdata_latest_field_measurements(
  state_name = "Wisconsin",
  county_name = "Dane County",
  time = "P30D")

poudre <- read_waterdata_monitoring_location(q = "poudre")

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.

1 participant