query_tac: Query NOAA Tides and Currents stations

View source: R/query_tac.R

query_tacR Documentation

Query NOAA Tides and Currents stations

Description

Query NOAA Tides and Currents stations

Usage

query_tac(
  start,
  end,
  product,
  station,
  step = "3 days",
  datum = "MLLW",
  tz = "gmt"
)

Arguments

start

Character vector start date for query ("YYYY-MM-DD").

end

Character vector end date for query ("YYYY-MM-DD").

product

Specify data product type. Defaults to "water_temperature". See a complete listing of available products at https://tidesandcurrents.noaa.gov/api/#products. Note that all products are not available at all stations. All data are returned in metric units.

station

Station ID number. A complete listing of stations is available at https://tidesandcurrents.noaa.gov/stations.html.

step

Time step for data query. Default time step is 3 days ("3 days"), with a maximum time step of 30 days. Larger time steps will result in faster downloads for longer time periods.

datum

Queries regarding water level require a datum. If none is selected, then datum defaults to "MLLW," or Mean-Lower Low Water. Example datum selections are available to view at https://tidesandcurrents.noaa.gov/datums.html?id=8722607.

tz

Data product time zone. Defaults to GMT ("gmt"). Other options include Local Standard Time ("lst") and Local Standard/Local Daylight Time ("lst_ldt").

Examples

query_tac(start = "1994-03-16",
          end ="1994-05-18",
          step = "30 days",
          product = "water_temperature",
          station = 8631044)

seanhardison1/dream documentation built on Feb. 28, 2024, 12:36 p.m.