swSigma0 is referenced to the surface and is thus identical to
    swSigmaTheta, while swSigma1 is referenced to
    1000dbar, swSigma2 is referenced to 2000dbar, swSigma2 is
    referenced to 3000dbar, and swSigma4 is referenced to 4000dbar.swSigma0(salinity, temperature, pressure,
    longitude=300, latitude=30, eos=getOption("oceEOS", default="gsw"))
swSigma1(salinity, temperature, pressure,
    longitude=300, latitude=30, eos=getOption("oceEOS", default="gsw"))
swSigma2(salinity, temperature, pressure,
    longitude=300, latitude=30, eos=getOption("oceEOS", default="gsw"))
swSigma3(salinity, temperature, pressure,
    longitude=300, latitude=30, eos=getOption("oceEOS", default="gsw"))
swSigma4(salinity, temperature, pressure,
    longitude=300, latitude=30, eos=getOption("oceEOS", default="gsw"))temperature
      and pressure must be provided) or an oce object
      (in which case salinity, etc. are inferred from the object).swRho.eos="gsw").eos="gsw")."unesco" [1,2] or "gsw".ctd object or section object,
    then salinity, etc., values are extracted from it, and used for the
    calculation.Definition: $\sigma_0=\sigma_\theta=\rho(S,\theta(S,t,p),0$ - 1000 kg/m$^3$.
swRho documentation.swSigmaTheta, which
    these functions employ, and also swRho, and (mostly for
    historical use) swSigmaT.swSigmaTheta(35, 13, 1000)
swSigma0(35, 13, 1000)
swSigma1(35, 13, 1000)
swSigma2(35, 13, 1000)
swSigma3(35, 13, 1000)Run the code above in your browser using DataLab