Learn R Programming

gsw (version 1.0-3)

gsw_Sstar_from_SA: Convert from Absolute Salinity to Preformed Salinity

Description

Calculate Preformed Salinity from Absolute Salinity, pressure, longitude, and latitude.

Usage

gsw_Sstar_from_SA(SA, p, longitude, latitude)

Arguments

SA

Absolute Salinity [ g/kg ]

p

sea pressure [ dbar ]

longitude

longitude in decimal degrees [ 0 to 360 or -180 to 180]

latitude

latitude in decimal degrees [ -90 to 90 ]

Value

Preformed Salinity [ g/kg ]

Details

If SA is a matrix and if its dimensions correspond to the lengths of longitude and latitude, then the latter are converted to analogous matrices with expand.grid.

References

http://www.teos-10.org/pubs/gsw/html/gsw_Sstar_from_SA.html

See Also

gsw_SA_from_Sstar does the reverse; gsw_Sstar_from_SP is similar.

Examples

Run this code
# NOT RUN {
gsw_Sstar_from_SA(34.7118, 10, 188, 4) # 34.711575335926490
# }

Run the code above in your browser using DataLab