This website has programs to calculate some properties of seawater, for use by Dalhousie Oceanography 3170 and 4170 classes

Density, potential temperature, etc are calculated here.