The following code can be used to calculate the water density based on Practical Salinity (PSS-78), temperature (in Celsius), and pressure (in bars):
index.tsx1060 chars15 lines
You can use the function as follows:
index.tsx237 chars6 lines
gistlibby LogSnag