Skip to contents

Download the 2D spectrum data from IFREMER ftp

Usage

get_2d_spectrum(point, start = "1994-01-01", end = "1994-02-28")

Arguments

point

the location name (string) requested. Alternatively, the node number. The consistency is checked internally.

start

the starting date (as a string). The consistency is checked internally.

end

the ending date as a string

Value

A list with 9 elements:

longitude

Longitude

latitude

Latitude

frequency1

Lower frequency

frequency2

Upper frequency

efth

Directional surface elevation variance spectral density

freq

Central frequency

dir

Directional bins

forcings

A data.frame with 6 variables:

time

Time

dpt

Depth, positive downward

wnd

Wind intensity, at 10m above sea level

wnddir

Wind direction, comes from

cur

Current intensity, at the surface

curdir

Current direction, going to

station

Station name

Examples

spec2D <- get_2d_spectrum("SEMREVO", start = "1994-01-01", end = "1994-02-28")
if(!is.null(spec2D)){
  image(spec2D$dir, spec2D$freq, spec2D$efth[, , 1],
    xlab = "Direction (°)",
    ylab = "Frequency (Hz"
  )
}