createSSP | R Documentation |
Creates sound speed profiles (Depth vs Sound Speed) using temperature and salinity data downloaded from HYCOM data servers
createSSP(
x,
f = 30000,
nc = NULL,
ncVars = c("salinity", "water_temp"),
dropNA = TRUE,
progress = TRUE,
...
)
x |
a data.frame with columns |
f |
the frequency (Hz) to generate the profile for |
nc |
netcdf file containing salinity and temperature data at depth, if
|
ncVars |
names of the salinity and temperature variables (in that order)
in your netcdf file, only change these if you are providing your own file
to |
dropNA |
logical flag to drop NA values from soundspeeed profile from outputs.
SSP will be calculated up to the maximum depth at each coordinate, which can vary.
Setting this option to |
progress |
logical flag to show progress bar for SST download |
... |
additional arguments to pass to matchEnvData |
a list with one element for each row of x
, each element is a list
containing speed
, the sound speed (m/s), and depth
(m)
Taiki Sakai taiki.sakai@noaa.gov
## Not run:
# examples not run because they require internet connection
coords <- data.frame(UTC=as.POSIXct('2014-07-15 01:00:00', tz='UTC'),
Longitude = -119, Latitude = 33)
ssp <- createSSP(coords)
plot(x=ssp[[1]]$speed, y=-ssp[[1]]$depth, type='l')
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.