get_raw_mode: Retrieve the raw tide values for a specified location

View source: R/call.R

get_raw_modeR Documentation

Retrieve the raw tide values for a specified location

Description

Retrieve the raw tide values for a specified location

Usage

get_raw_mode(
  location = "Portland",
  time = c(Sys.time(), Sys.time() + 4 * (24 * 3600)),
  step = "01:00",
  utc = TRUE,
  ofile = tempfile(),
  compress = FALSE,
  app = Sys.which("/opt/bin/tide"),
  append = FALSE,
  verbose = FALSE
)

Arguments

location

the name of the location

time

2 element vector of POSIXct time to start and stop start <= time < stop. Defaults to [now, now + 4 days] (assumed UTC if utc = TRUE)

step

character, time step as 'HH:MM'. Defaults tp "01:00"

utc

logical if TRUE then return values in UTC, otherwise local time

ofile

character, the output filename. Defaults to tempfile()

compress

logical, if TRUE compress the file. Defaults to TRUE.

app

the name of the application. Defaults to Sys.which("/opt/bin/tide")

append

logical, if TRUE append to exisiting output file (if any). Otherwise overwrite existing output file.

verbose

logical if TRUE print the command run

Value

list with

  • location, the name of the location

  • file, the name of the output file

  • data, tibble of data, possible with 0 rows


BigelowLab/maree documentation built on April 23, 2023, 4:19 p.m.