View source: R/spectral_data_download.R
get_2d_spectrum | R Documentation |
Download the 2D spectrum data from IFREMER ftp
get_2d_spectrum(point, start = "1994-01-01", end = "1994-02-28")
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 |
A list with 9 elements:
Longitude
Latitude
Lower frequency
Upper frequency
Surface elevation variance spectral density
Mean direction from first spectral moment
Mean direction from second spectral moment
Mean directional spreading from first spectral moment
Mean directional spreading from second spectral moment
Central frequency
Directionnal bins
A data.frame with 6 variables:
Time
Depth, positive downward
Wind intensity, at 10m above sea level
Wind direction, comes from
Current intensity, at the surface
Current direction, going to
Station name
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"
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.