Skip to main content

OceanArray

PyPI Python versions License: MIT Tests Documentation DOI

Python tools for processing moored oceanographic array observations from raw instrument files (or OceanSITES and RAPID RODB files from other groups) to quality-controlled, CF-compliant NetCDF.

It covers a single mooring's instruments — stages 1–3, stacking, and pressure gridding, each documented in an HTML report, and an OceanSITES 1.4 export. One command, oceanarray run MOORING --raw-dir RAW, takes a mooring from raw files to the gridded product and its report. Deriving calibration-dip offsets is handled by caldip, and shipboard CTD processing by ctdcast.

Documentation: https://ocean-uhh.github.io/oceanarray/

Installation

pip install oceanarray

Or, with uv:

uv pip install oceanarray

This pulls in seasenselib (used to read raw instrument files in stage 1) automatically.

Python 3.11–3.13 is supported. See the installation guide for isolated-environment (conda / venv / uv) and from-source options.

Quick start

Create a skeleton YAML, fill in the deployment metadata, then process:

oceanarray init dsG3_1_2026 --proc-dir /data/proc
# edit /data/proc/dsG3_1_2026/dsG3_1_2026.mooring.yaml
oceanarray validate /data/proc/dsG3_1_2026/dsG3_1_2026.mooring.yaml
oceanarray run     /data/proc/dsG3_1_2026 --raw-dir /data/raw     # stages 1-3, stack, grid, report
oceanarray export  /data/proc/dsG3_1_2026                          # OceanSITES 1.4 files (needs platform_code)

See the documentation for the recommended first-processing workflow, YAML reference, and CLI reference.

Python API

import oceanarray as oa

yaml_path = "/data/proc/dsG3_1_2026/dsG3_1_2026.mooring.yaml"
oa.process(yaml_path, raw_dir="/data/raw")  # stages 1-3
oa.run(yaml_path, from_stage=3, report=True)  # re-run stage 3, stack, grid, report
oa.export(yaml_path)  # OceanSITES 1.4 files in <mooring folder>/oceansites/

See the API reference for the full interface.

Acknowledgements

Development was assisted by Claude Code (Anthropic) and GitHub Copilot code review.

The data-processing approach draws on methods developed for the RAPID mooring array programme (UK/US funded). oceanarray is developed toward the DFG Ocean Array infrastructure project (DFG project number 571027118), from which it takes its name, and was first applied in the AEI–DFG MIXSED project (DFG project number 541914507).

License

MIT License

Metadata

Release files for oceanarray 0.6.2

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

Source distribution (sdist)

Source distribution for oceanarray 0.6.2
File Size Uploaded Provenance Actions
oceanarray-0.6.2.tar.gz 8.5 MB With provenance Details for oceanarray-0.6.2.tar.gz

Built distribution (wheel)

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

Total release size: 9.3 MB

Release files / oceanarray-0.6.2.tar.gz

Download URL oceanarray-0.6.2.tar.gz
Size 8.5 MB
Tags Source
SHA-256 checksum
How to use checksums
f8a49c8330726b943902a91c609f8db6079d2902f0f6ce7d6341f2ddec9e26ae
BLAKE2b-256 checksum
How to use checksums
562162b4e25fd4744f8e9e62b470f14a39f21bceee9b870cba06e9d4f2be52c0
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 21, 2026.

Transparency log

Release files / oceanarray-0.6.2-py3-none-any.whl

Download URL oceanarray-0.6.2-py3-none-any.whl
Size 879.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
135cd33828af0202b53577131e151333beb802b99d65c9865b74385e1f3ef84a
BLAKE2b-256 checksum
How to use checksums
1b9fbce954ebcbe5b0c1b93766676e5b901a3f20fd6bbf4cd920d75d88ce1dfb
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 21, 2026.

Transparency log

Security for oceanarray 0.6.2

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 oceanarray-0.6.2.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 21, 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