Skip to main content

RSKderivesigma.m

Arguments

Input

-Required- 

  • RSK

-Optional- 

  • latitudelatitude in decimal degrees north.
  • longitude : longitude in decimal degrees east.
  • seawaterLibrary: specify which library to use, should be either 'TEOS-10' or 'seawater', default is TEOS-10.

Output

  • RSK

The function derives potential density anomaly using the TEOS-10 GSW toolbox (http://www.teos-10.org/software.htm) or seawater library. The result is added to the RSK data structure, and the channel list is updated. The workflow of the function is as below:

  1. Calculate absolute salinity (SA)
    1. When latitude and longitude data are available (either from optional input or station data in RSK.data.latitude/longitude), the function will call SA = gsw_SA_from_SP(salinity,seapressure,lon,lat)
    2. When latitude and longitude data are absent, the function will call SA = gsw_SR_from_SP(salinity) assuming that reference salinity equals absolute salinity approximately.
  2. Calculate conservative temperature CT = gsw_CT_from_t(absolute salinity,temperature,seapressure)
  3. Calculate potential density anomaly sigma0 = gsw_sigma0(absolute salinity,conservative temperature)

Oops, Diagram Unavailable

This diagram can't be displayed. It may have been moved or deleted, or the page's access settings may be preventing it from loading. Pages with restricted access must also include Gliffy Diagrams in their allowed list.

Note

When geographic information is both available from optional inputs and the RSK.data structure, the optional inputs will override. The input latitude/longitude must be either a single value or a vector of the same length of RSK.data.

JavaScript errors detected

Please note, these errors can depend on your browser setup.

If this problem persists, please contact our support.