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

ef

Surface elevation variance spectral density

th1m

Mean direction from first spectral moment

th2m

Mean direction from second spectral moment

sth1m

Mean directional spreading from first spectral moment

sth2m

Mean directional spreading from second spectral moment

freq

Central frequency

dir

Directionnal 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")
image(spec2D$dir, spec2D$freq, spec2D$efth[, , 1],
  xlab = "Direction (°)",
  ylab = "Frequency (Hz"
)