$npx skillfedfor your agent

gsw

Gibbs Seawater Oceanographic Package of TEOS-10

With conditionsPyPI Scientific/EngineeringReleased Jun 2026114.9K downloads / moBSD-3-ClausePlatform wheel

Decision gist · record as of 2026-08-14

platform wheels — gsw-3.6.23-cp311-abi3-macosx_10_9_x86_64.whl · gsw-3.6.23-cp311-abi3-macosx_11_0_arm64.whl · gsw-3.6.23-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl
v3.6.23 · released 2026-06-21 · Python >=3.11 · 1 runtime deps: numpy

Yes, if you work with oceanographic data or seawater thermodynamics. The package is stable (Production/Stable status), actively maintained, has no known vulnerabilities, and provides the standard reference implementation of TEOS-10. The C-based approach offers substantial performance gains. The main constraint is the Python >=3.11 requirement and C compiler dependency for source builds, but pre-built wheels mitigate friction on common platforms.AI-flagged interpretation of the facts on this page — verify before relying

Before you install

  • Requires C compiler (gcc/clang on Unix, MSVC on Windows) when building from source; pre-built wheels available for Python >=3.11 on common platforms.
  • Medium install friction due to C compilation requirement; pre-built wheels available for common platforms (macOS, Linux x86_64/aarch64, Windows).
  • Active maintenance with recent release (54 days ago) and ongoing repository activity.

License · maintenance · safety

BSD-3-Clause (permissive) — BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; attribution required.

last release 2026-06-21 (54 days) · last repo commit 2026-08-11 · 177 stars

0 known vulnerabilities (OSV.dev, 2026-08-14) · 114,910 downloads/mo, #12,275 on PyPI

Verify before relying

pip install gsw
import gsw
import numpy as np

# Calculate absolute salinity from practical salinity and temperature
SA = gsw.SA_from_SP(SP, t, p, lon)
# Calculate potential temperature
pt = gsw.pt_from_t(SA, t, p)
  • Performance improvements quantified relative to the original pure-Python implementation
  • Compatibility with masked arrays and edge cases in real oceanographic datasets
  • Whether all 158 wrapped ufuncs are fully documented with equivalent detail
Same gist for agents: .md · .json

What it is and what it does

GSW-Python is a scientific library that implements the TEOS-10 (Thermodynamic Equation of Seawater 2010) standard for oceanographic calculations. It wraps 165 scalar C functions as numpy ufuncs, exposing 158 of them in the main namespace alongside Python implementations of additional functions. The library replaces an earlier pure-Python implementation with a C-based approach that trades build-time compilation for gains in speed, memory efficiency, and function coverage.

The package is designed for oceanographers and marine scientists who need to compute seawater properties—salinity, temperature, density, sound speed, and related quantities—from field measurements. It depends only on numpy and supports Python >=3.11 across macOS, Linux, Windows, and WebAssembly platforms via pre-built wheels. The core use case is converting between different oceanographic measurement conventions and deriving quantities used in ocean modeling and data analysis.

Use it for

  • Convert practical salinity and in-situ temperature to absolute salinity and potential temperature for ocean model initialization
  • Calculate seawater density and sound speed from CTD sensor data for water mass classification
  • Derive conservative temperature and other thermodynamic properties for oceanographic research
  • Batch process large arrays of oceanographic measurements using numpy ufunc broadcasting
  • Integrate TEOS-10 calculations into xarray-based ocean data pipelines via gsw-xarray wrapper

Worth the install?

AI-flagged interpretation of the facts on this page. Verify before relying on it.

With conditions

Yes, if you work with oceanographic data or seawater thermodynamics.

The package is stable (Production/Stable status), actively maintained, has no known vulnerabilities, and provides the standard reference implementation of TEOS-10. The C-based approach offers substantial performance gains. The main constraint is the Python >=3.11 requirement and C compiler dependency for source builds, but pre-built wheels mitigate friction on common platforms.

Install

gsw on PyPI

Before you install

Medium install friction due to C compilation requirement; pre-built wheels available for common platforms (macOS, Linux x86_64/aarch64, Windows). Active maintenance with recent release (54 days ago) and ongoing repository activity.

Requires C compiler (gcc/clang on Unix, MSVC on Windows) when building from source; pre-built wheels available for Python >=3.11 on common platforms.

License in practice

BSD-3-Clause permissive license allows commercial and private use with minimal restrictions; attribution required.

Quickstart

pip install gsw
import gsw
import numpy as np

# Calculate absolute salinity from practical salinity and temperature
SA = gsw.SA_from_SP(SP, t, p, lon)
# Calculate potential temperature
pt = gsw.pt_from_t(SA, t, p)

Verify before relying

  • Performance improvements quantified relative to the original pure-Python implementation
  • Compatibility with masked arrays and edge cases in real oceanographic datasets
  • Whether all 158 wrapped ufuncs are fully documented with equivalent detail

Package facts

LicenseBSD-3-Clause permissive
Python supportSupports the current Python release >=3.11
Install frictionMedium. Platform-specific wheel
Runtime dependencies
1 package
numpy
MaintenanceActively maintained 54 days since the last release
Last repo commit
First released
Downloads114,910 / month, #12,275 on PyPI 30-day window, as of 2026-08-14
Known vulnerabilitiesNone known OSV.dev, checked 2026-08-14
Classifiers
Development Status :: 5 - Production/StableIntended Audience :: Science/ResearchOperating System :: OS IndependentProgramming Language :: PythonProgramming Language :: Python :: 3 :: OnlyProgramming Language :: Python :: 3.11Programming Language :: Python :: 3.12Programming Language :: Python :: 3.13Programming Language :: Python :: 3.14Topic :: Scientific/Engineering

Evidence: gsw-3.6.23-cp311-abi3-macosx_10_9_x86_64.whl; gsw-3.6.23-cp311-abi3-macosx_11_0_arm64.whl; gsw-3.6.23-cp311-abi3-manylinux2014_aarch64.manylinux_2_17_aarch64.manylinux_2_28_aarch64.whl; gsw-3.6.23-cp311-abi3-manylinux2014_x86_64.manylinux_2_17_x86_64.manylinux_2_28_x86_64.whl; gsw-3.6.23-cp311-abi3-pyemscripten_2026_0_wasm32.whl; gsw-3.6.23-cp311-abi3-win_amd64.whl

Tags

Capabilities
oceanographic thermodynamicsseawater properties calculatorTEOS-10 implementationsalinity temperature densityocean water equationsgsw oceanographyseawater equation of state
Topics
oceanographythermodynamicsnumpy-ufunc

Let your AI agent find packages like this

Example. Real query, live index.

You found this page by searching. An agent finds it by wishing: SkillFed indexes 14,416 PyPI packages by what they can do, searchable in plain language.

wish › “oceanographic thermodynamics”

  • gswGSW-Python wraps the TEOS-10 seawater thermodynamic equations as…
  • iapwsCalculates thermodynamic and transport properties of water, steam,…
  • janafSearches and parses NIST-JANAF thermochemical tables into polars…

Give your agent the search over MCP, or paste the wish link into any chat.

More Scientific/Engineering packages

numpy Worth it
PyPI · Software Development · released Aug 2026

NumPy provides an N-dimensional array object and a comprehensive suite of mathematical, linear algebra, Fourier transform, and random number functions for scientific computing in Python.

BSD-3-Clause AND 0BSD AND MIT AND Zlib AND CC0-1.0compiled wheel · 3.12+
1.1Bdownloads / mo
pandas Worth it
PyPI · Scientific/Engineering · released Jul 2026

pandas provides fast, flexible data structures (Series and DataFrame) for loading, cleaning, transforming, and analyzing labeled or relational data in Python.

BSD-3-Clausecompiled wheel · 3.11+
769.1Mdownloads / mo
scipy Worth it
PyPI · Libraries · released Jun 2026

scipy provides numerical algorithms for mathematics, science, and engineering—including optimization, integration, linear algebra, Fourier transforms, signal and image processing, and ODE solvers—built on numpy arrays.

BSD-3-Clausecompiled wheel · 3.12+
449.0Mdownloads / mo
scikit-learn Worth it
PyPI · Software Development · released Jun 2026

scikit-learn provides a comprehensive Python library for supervised and unsupervised machine learning, including classification, regression, clustering, dimensionality reduction, and model evaluation tools built on NumPy and SciPy.

Install it if you need to train, evaluate, or deploy supervised or unsupervised learning models.

BSD-3-Clausecompiled wheel · 3.11+
235.5Mdownloads / mo
dill Worth it
PyPI · Software Development · released Jan 2026

dill extends Python's pickle module to serialize and deserialize a much wider range of Python objects, including functions, lambdas, classes, and interpreter sessions, to byte streams for storage or network transmission.

BSD-3-Clausepure Python · 3.9+
208.1Mdownloads / mo
multiprocess Worth it
PyPI · Software Development · released Jan 2026

Multiprocess is an enhanced fork of Python's standard multiprocessing library that uses dill for better serialization, allowing you to spawn processes with a threading-like API and share complex objects between them.

Install it if you use multiprocessing and encounter pickle serialization limits with lambdas or complex objects.

BSD-3-Clausepure Python · 3.9+
202.7Mdownloads / mo

See also iapws · pygeos · pymap3d · copernicusmarine · cf-units · simple-equ · cmocean · CoolProp · pyscf · gstools-cython