Skip to main content

Python implementation of the Thermodynamic Equation Of Seawater - 2010 (TEOS-10)

For more information go to:

http://www.teos-10.org/

gsw vs. csiro

This table shows some function names in the gibbs library and the corresponding function names in the csiro library.

Variable

SeaWater (EOS 80)

Gibbs SeaWater (GSW TEOS 10)

Absolute Salinity

NA

gsw.SA_from_SP(SP,p,long,lat)

Conservative Temperature

NA

gsw.CT_from_t(SA,t,p)

density (i.e. in situ density)

sw.dens(SP,t,p)

gsw.rho_CT(SA,CT,p), or gsw.rho(SA,t,p), or gsw.rho_CT25(SA,CT,p)

potential density

sw.pden(SP,t,p,pr)

gsw.rho_CT(SA,CT,pr), or gsw.rho_CT25(SA,CT,pr)

potential temperature

sw.ptmp(SP,t,p,pr)

gsw.pt_from_t(SA,t,p,pr)

$sigma_0$, using

$theta_o$ = sw.ptmp(SP,t,p,0)

sw.dens(SP, $theta_o$, 0) -1000 kg m -3

gsw.sigma0_CT(SA,CT)

$sigma_2$, using

$theta_2$ = sw.ptmp(SP,t,p,2000)

sw.dens(SP,$theta_2$, 2000) -1000 kg m -3

gsw.sigma2_CT(SA,CT)

$sigma_4$, using

$theta_4$ = sw.ptmp(SP,t,p,2000)

sw.dens(SP,$theta_4$, 4000) -1000 kg m -3

gsw.sigma2_CT(SA,CT)

specific volume anomaly

sw.svan(SP,t,p)

gsw.specvol_anom_CT(SA,CT,p) or gsw.specvol_anom_CT25(SA,CT,p)

dynamic height anomaly

-sw.gpan(SP,t,p)

gsw.geo_strf_dyn_height(SA,CT,p,delta_p,interp_style)

geostrophic velocity

sw.gvel(ga,lat,long)

gsw.geostrophic_velocity(geo_str,long,lat,p)

N 2

sw.bfrq(SP,t,p,lat)

gsw.Nsquared_CT25(SA,CT,p,lat)

pressure from height (SW uses depth, not height)

sw.pres(-z,lat)

gsw.p_from_z(z,lat)

height from pressure (SW outputs depth, not height)

z = -sw.dpth(p,lat)

gsw.z_from_p(p,lat)

in situ temperature from pt

sw.temp(SP,pt,p,pr)

gsw.pt_from_t(SA,pt,pr,p)

sound speed

sw.svel(SP,t,p)

gsw.sound_speed(SA,t,p)

isobaric heat capacity

sw.cp(SP,t,p)

gsw.cp(SA,t,p)

adiabatic lapse rate*

sw.adtg(SP,t,p)

gsw.adiabatic_lapse_rate(SA,t,p)

SP from cndr, (PSS 78)

sw.salt(cndr,t,p)

gsw.SP_from_cndr(cndr,t,p)

cndr from SP, (PSS 78)

sw.cndr(SP,t,p)

gsw.cndr_from_SP(SP,t,p)

distance

sw.dist(lat,long,units)

gsw.distance(long,lat,p)

gravitational acceleration

sw.g(lat,z)

gsw.grav(lat,p)

Coriolis parameter

sw.f(lat)

gsw.f(lat)

testing of all functions

sw.test()

gsw.test()

* The SW and GSW functions output the adiabatic lapse rate in different units, being K (dbar) -1 and K Pa -1 respectively.

Thanks

  • Bjorn Adlandsvik - Testing unit and several bug fixes

  • Eric Firing - Support for masked arrays, re-write of _delta_SA

  • Trevor J. McDougall (and all of SCOR/IAPSO WG127) for making available the Matlab and Fortran versions of this software

Acknowledgments

  • SCOR/IAPSO WG127. Most of module is derived from the GSW Oceanographic Toolbox of TEOS-10.

The MAJOR.MINOR.MICRO will be used to represent:

MAJOR == The matlab version from the TEOS-10 Group

MINOR == Significant changes made in the python version

MICRO == Bug fixes only

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gsw-3.0.1.tar.gz (2.8 MB view details)

Uploaded Source

File details

Details for the file gsw-3.0.1.tar.gz.

File metadata

  • Download URL: gsw-3.0.1.tar.gz
  • Upload date:
  • Size: 2.8 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for gsw-3.0.1.tar.gz
Algorithm Hash digest
SHA256 744d011ae4fcd73bbbc82b8d853f6f6c1f0a32d1f40bb35a68ca3fe62a1579ee
MD5 616f047e0002900ff6149cad6d26ba75
BLAKE2b-256 ab18a30f30184ed2880c1dbf19ad8927acc1012089dac34a900ee14132e49a0c

See more details on using hashes here.

Release history Release notifications | RSS feed

3.6.23

7 files

3.6.22

6 files

3.6.21

6 files

3.6.20

36 files

3.6.19

21 files

3.6.18

17 files

3.6.17.post1

16 files

3.6.17

17 files

3.6.16.post1

16 files

3.6.16

17 files

3.4.2

16 files

3.4.0

10 files

3.3.1.post1

9 files

3.3.1

1 file

3.3.0

1 file

3.2.1

1 file

3.2.0

1 file

3.1.1

1 file

3.1.0

1 file

3.0.6

1 file

3.0.3

1 file

3.0.2

1 file

This release

3.0.1 This release

1 file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page