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.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 oceanarray 0.6.1
File Size Uploaded Provenance Actions
oceanarray-0.6.1.tar.gz 8.5 MB With provenance Details for oceanarray-0.6.1.tar.gz

Built distribution (wheel)

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

Total release size: 9.3 MB

Release files / oceanarray-0.6.1.tar.gz

Download URL oceanarray-0.6.1.tar.gz
Size 8.5 MB
Tags Source
SHA-256 checksum
How to use checksums
7bc783f26a9cbf5424a6c642165f93b6a8be8d5b6429d1e54f484a09a4ecb719
BLAKE2b-256 checksum
How to use checksums
0c68e158a92ab9547e9538a4d4253696b7c22fd800dc7cadacd58c6d0f8751e1
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 20, 2026.

Transparency log

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

Download URL oceanarray-0.6.1-py3-none-any.whl
Size 874.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a91856a24b29a4b98d3eaa9602dab9c0f6d87911047f363167d0794c4a90d7fa
BLAKE2b-256 checksum
How to use checksums
b6657b9d843b4c757d3feac99b4b409e6b031ce58f887282d89024ace086a9dd
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 20, 2026.

Transparency log

Security for oceanarray 0.6.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 oceanarray-0.6.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 20, 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