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.1.1.tar.gz (8.9 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.1.1-py3-none-any.whl (40.4 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for xhycom-0.1.1.tar.gz
Algorithm Hash digest
SHA256 d86c05c838a9779997be1c011c193d6090ffa8dfecfc7d11473c9a5215d9f32f
MD5 e678004e02a260bbdfb23c00f4eb403b
BLAKE2b-256 b19a688121b812a7e8bac7792a304968d79a0beb2fe99f8b00110f2d277f9ad4

See more details on using hashes here.

Provenance

The following attestation bundles were made for xhycom-0.1.1.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.1.1-py3-none-any.whl.

File metadata

  • Download URL: xhycom-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 40.4 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.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 cadd1724394fb632a7ffee80a818aaef181207910db5ad6d8f9f424791f53db8
MD5 aa72c19365eb74352cda50d89c754ece
BLAKE2b-256 a28de59220fd9f25bc32aa857e9f05e9d070a3db41cc094aa300aa3eb5338c74

See more details on using hashes here.

Provenance

The following attestation bundles were made for xhycom-0.1.1-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

0.2.0

2 files

This release

0.1.1 This release

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