Skip to main content

neutralocean

latest docs pypi package conda-forge package tests

Calculate neutral surfaces in the ocean, using Python.

The major task of this software is to calculate omega-surfaces, following the algorithm of Stanley et al. (2021). Omega surfaces are highly accurate approximately neutral surfaces that work by iteratively reducing the neutrality error.

There are also routines to calculate potential density surfaces, specific volume anomaly surfaces, neutral trajectories, the Veronis density label, and measures of neutrality error.

Topobaric surfaces (Stanley, 2019a) in their modified form (Stanley 2019b) are the most accurate approximately neutral surfaces that posses an exact geostrophic streamfunction (furnishing an Ertel potential vorticity with no baroclinic production term). Software to compute topobaric surfaces is significantly more complicated and is currently only available in the original MATLAB neutral-surfaces toolbox.

How to cite? If you use this software, the most appropriate paper to cite is Stanley et al. (2021).

Installation

This package is on PyPI and conda-forge. Simply execute one of the following commands:

  • uv add neutralocean
  • pixi add neutralocean
  • pip install neutralocean
  • conda install -c conda-forge neutralocean

Documentation

See https://neutralocean.readthedocs.org

Quickstart

import neutralocean as no

# Create synthetic hydrography (16 by 32 horizontally, 50 vertically)
S, T, Z, _ = no.data.synthocean((16, 32, 50), periodic=(False, False))
grid = no.grid.rectilinear.build_grid((16, 32), periodic=(False, False))

# Compute omega-surface initialized from a pinned depth at a chosen cast.
s, t, z, diags = no.omega_surf(S, T, Z, grid, pin_cast=(8, 16), p_init=2000.)

Metadata

Release files for neutralocean 2.5.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for neutralocean 2.5.1
File Size Uploaded Provenance Actions
neutralocean-2.5.1.tar.gz 83.4 kB With provenance Details for neutralocean-2.5.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for neutralocean 2.5.1
File Interpreter ABI Platform Actions
neutralocean-2.5.1-py3-none-any.whl Python 3 none any Details for neutralocean-2.5.1-py3-none-any.whl

Total release size: 177.6 kB

Release files / neutralocean-2.5.1.tar.gz

Download URL neutralocean-2.5.1.tar.gz
Size 83.4 kB
Tags Source
SHA-256 checksum
How to use checksums
e3b5b4240b627a0f2167d8bcecacd2ed9e022bf2d88300523f1782cb8ceca354
BLAKE2b-256 checksum
How to use checksums
89d919c1fcb37c520d2007c4c0ee6871ea3f3c108f1dee0da1956c8a05ea5ea6
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / neutralocean-2.5.1-py3-none-any.whl

Download URL neutralocean-2.5.1-py3-none-any.whl
Size 94.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
bfe5683ffd868a1a8cec817d1086103d4e054639e30a8a123adaab659844e97c
BLAKE2b-256 checksum
How to use checksums
a3a8bc4bc139b899e639a2fc0b33105769fc5a01923e569f6055e52d35d1d345
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for neutralocean 2.5.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for neutralocean-2.5.1.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

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