Skip to main content

xhycom

Run Tests codecov Documentation Status

xhycom reads HYCOM model output in the native .ab format directly into xarray Datasets, with coordinates, units, and lazy out-of-memory access attached automatically.

Installation

conda (recommended, includes xESMF for horizontal regridding):

conda install -c conda-forge xhycom

pip (xESMF must come from conda-forge, so create a conda env with it first):

conda create -n hycom-env -c conda-forge xesmf
conda activate hycom-env
pip install xhycom

From GitHub (latest unreleased, clone and install in editable mode):

git clone https://github.com/nansencenter/xhycom.git
cd xhycom
conda env create -f ci/environment-regrid.yml
conda activate hycom-analysis-env

See Installation for details, including setup on the Olivia and Betzy HPC clusters.

Quick example

import xhycom

# Single snapshot: auto-detects file type, attaches lon/lat/time/dens
ds = xhycom.open_dataset("archv.2020_001_00", grid="regional.grid")
ds["temp"].isel(time=0, k=0).plot()

# Multi-year time series: lazy, out-of-memory, no data loaded until .compute()
ds = xhycom.open_mfdataset("data/", grid="regional.grid", chunks={"time": 1})
ds["temp"].isel(k=0).mean("time").compute()

Documentation

Full documentation (why xarray, worked examples, API reference) is at https://xhycom.readthedocs.io.

Download files

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

Source Distribution

xhycom-0.2.0.tar.gz (12.7 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

xhycom-0.2.0-py3-none-any.whl (72.5 kB view details)

Uploaded Python 3

File details

Details for the file xhycom-0.2.0.tar.gz.

File metadata

  • Download URL: xhycom-0.2.0.tar.gz
  • Upload date:
  • Size: 12.7 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xhycom-0.2.0.tar.gz
Algorithm Hash digest
SHA256 9497c7a07ec234599d194bbdba7a588634f3c08dc94a1183722043d8c0be2aa5
MD5 a262a99c1a1915becb8b4897e754aa10
BLAKE2b-256 ae4e3b5517da977eb5d2ccc324a6282d4c874b6dfdda74dc7d23a681b1af0059

See more details on using hashes here.

Provenance

The following attestation bundles were made for xhycom-0.2.0.tar.gz:

Publisher: publish.yml on nansencenter/xhycom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file xhycom-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: xhycom-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 72.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for xhycom-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ed305950bd860b823778db0c58a64ecb90daa3c8e0ccfc7c9594403934ea9bff
MD5 fb235747641b338c748c247e571937a3
BLAKE2b-256 3ff2acf9074b4ba4994a9405fa978b416f814c62f05f51a0d83474b53fe9b85c

See more details on using hashes here.

Provenance

The following attestation bundles were made for xhycom-0.2.0-py3-none-any.whl:

Publisher: publish.yml on nansencenter/xhycom

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 files

0.1.1

2 files

0.1.0

2 files

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