Ir al contenido
Esta documentación describe la versión 4.0.0, todavía sin publicar. La versión actual en PyPI es la 3.3.0 y no incluye todo lo que se describe aquí.

underwater.propagation.sound_speed

La referencia de la API se publica en inglés en los dos idiomas: se genera a partir de los docstrings del código, que son su texto original.

Sound-speed profiles over a column of water.

A profile is a description of a place rather than of a substance, so it stays with the marchers that consume it while the point state of sea water lives in phonometry.fluids.water. The four sound-speed equations moved there with it; this module builds a column out of them.

Auto-generated from the source docstrings by scripts/generate_api_docs.py (make api-docs). Do not edit by hand.

sound_speed_profile(
depths: NDArray[np.float64] | list[float],
temperatures: NDArray[np.float64] | list[float] | float,
salinities: NDArray[np.float64] | list[float] | float,
*,
model: str = 'unesco',
latitude: float = 45.0,
) -> SoundSpeedProfile

Evaluate a sound-speed profile over a depth column.

Parameters

NameDescription
depthsDepths, in metres (1-D, non-negative, increasing).
temperaturesTemperature per depth, in °C (array or a scalar broadcast to every depth).
salinitiesSalinity per depth, in PSU (array or scalar).
modelSound-speed equation (see sea_water_sound_speed).
latitudeLatitude for the depth→pressure conversion, in degrees.

Returns: A SoundSpeedProfile.

Raises

ExceptionWhen
ValueErrorIf the inputs are invalid.
SoundSpeedProfile(
depth: NDArray[np.float64],
sound_speed: NDArray[np.float64],
gradient: NDArray[np.float64],
model: str,
)

Sound-speed profile c(z) over a column of water.

Attributes

NameDescription
depthDepths, in metres (increasing downward).
sound_speedSound speed at each depth, in m/s.
gradientVertical sound-speed gradient dc/dz, in (m/s)/m.
modelThe equation used.
SoundSpeedProfile.plot(
ax: Axes | None = None,
*,
language: str = 'en',
**kwargs: Any,
) -> Axes

Plot the sound-speed profile (speed vs depth, depth increasing down).