View source: R/spectral_data_download.R
get_1d_spectrum | R Documentation |
Download the 1D spectrum data from IFREMER ftp
get_1d_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 12 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
A data.frame with 14 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
Significant wave height
Peak wave frequency
Mean wave frequency
Mean wave frequency at spectral moment minus one
Mean wave direction at spectral peak
Directional spreading at spectral peak
Mean wave direction
Mean directional spreading
Station name
spec1D <- get_1d_spectrum("SEMREVO", start = "1994-01-01", end = "1994-02-28")
r <- as.POSIXct(round(range(spec1D$forcings$time), "month"))
image(spec1D$forcings$time, spec1D$freq, t(spec1D$ef),
xaxt = "n", xlab = "Time",
ylab = "Frequency (Hz)"
)
axis.POSIXct(1, spec1D$forcings$time,
at = seq(r[1], r[2], by = "week"),
format = "%Y-%m-%d", las = 2
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.