download_tides: Download NOAA tide data

Description Usage Arguments Details Value

View source: R/rreadwrite.r

Description

Download data from NOAA Tides & Currents web API.

Usage

1
2
3
download_tides(f = tempfile(), begin_date, end_date,
  product = "hourly_height", station = "9415020", datum = "MLLW",
  units = "metric", time_zone = "GMT", ...)

Arguments

f

Destination file.

begin_date

Character or integer start date of date request in format YYYYMMDD.

end_date

Character or integer end date of date request in format YYYYMMDD. must be no more than 365 days later than start_date.

product

Data product, default is hourly ocean water height.

station

Data station to download data from. Default is Point Reyes Buoy.

datum

Vertical datum that data product is references to. Default is mean lower low water (MLLW).

units

units used for data product. Default is metric units.

time_zone

Time zone used in data product. Default is GMT.

...

Other arguments to pass to download.file().

Details

The NOAA Tides & Currents web API limits data requests to 365 days or less.

Value

The destination file path.


mkoohafkan/rremat documentation built on July 3, 2021, 12:06 p.m.