Skip to contents

This function downloads buoy data from various programs including...

Usage

dod.buoy(program, ID = NULL, destdir = ".", age = age, debug = 0)

Arguments

program

argument specifying the desired oceanographic program to download buoy data from. Options include MEDS, etc.

ID

For MEDS this argument is either a location name or ID number.

destdir

a character value indicating the directory in which to store downloaded files.

age

a numerical value indicating a time interval, in days. If the file to be downloaded from the server already exists locally, and was created less than age days in the past, it will not be downloaded again. Setting age=0 (which is the default) forces a download.

debug

an integer value indicating the level of debugging. If this exceeds 0, then some debugging messages will be printed. This value is passed down to related functions, but with 1 subtracted for each pass.

Value

If index is TRUE, and program is "BBMP" or "BATS", return a data frame. Otherwise, return the name of the downloaded file.