glidertools.physics.potential_density
- glidertools.physics.potential_density(salt_PSU, temp_C, pres_db, lat, lon, pres_ref=0)
Calculate density from glider measurements of salinity and temperature.
The Basestation calculates density from absolute salinity and potential temperature. This function is a wrapper for this functionality, where potential temperature and absolute salinity are calculated first. Note that a reference pressure of 0 is used by default.
- Parameters:
salt_PSU (array, dtype=float, shape=[n, ]) – practical salinty
temp_C (array, dtype=float, shape=[n, ])
C (temperature in deg)
pres_db (array, dtype=float, shape=[n, ]) – pressure in decibar
lat (array, dtype=float, shape=[n, ]) – latitude in degrees north
lon (array, dtype=float, shape=[n, ]) – longitude in degrees east
- Returns:
potential_density
- Return type:
array, dtype=float, shape=[n, ]