# Calculate conservative temperature and absolute salinity of a sample with
# Practical salinity of 35 psu, in situ temperature of 18 deg C,
# depth is 10 dbar and location is 188 degrees East and 4 degrees North.
f <- eos2teos_geo(SP=35, T=18, P=10, long=188, lat=4)
CT <- f$CT # Conservative temperature
SA <- f$SA # Absolute salinity
Run the code above in your browser using DataLab