swViscosity(salinity, temperature=NULL)temperature and pressure must be provided) or
a ctd object (in which case salinity,
temperature and pressure arswRho, and the examples below.ctd object, then salinity,
temperature and pressure values are extracted from it, and used for the
calculation.The result is determined from a regression of the data provided in Table 87 of Dorsey (1940). The fit matches the table to within 0.2 percent at worst, and with average absolute error of 0.07 percent. The maximum deviation from the table is one unit in the last decimal place.
No pressure dependence was reported by Dorsey (1940).
swViscosity(30, 10) # 0.001383779Run the code above in your browser using DataLab