Skip to main content

xarray backend engine for tensogram .tgm files

Project description

Tensogram xarray Backend

xarray backend engine for Tensogram .tgm files — open a Tensogram message or file as an xarray.Dataset with the native engine="tensogram" hook, including Dask-backed lazy loading.

Installation

pip install tensogram-xarray
# or, with Dask-backed lazy reads
pip install "tensogram-xarray[dask]"

The tensogram native package is pulled in automatically.

Usage

import xarray as xr

ds = xr.open_dataset("forecast.tgm", engine="tensogram")
print(ds)                    # coordinates, variables, CF attributes
print(ds["temperature"])     # standard xarray DataArray

With Dask for out-of-core reads:

ds = xr.open_dataset("forecast.tgm", engine="tensogram", chunks="auto")

Multi-message files open as a single merged Dataset; coordinates and dimensions are inferred from CF-style metadata when present.

Documentation

License

Copyright 2026- ECMWF. Licensed under Apache-2.0.

Project details


Download files

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

Source Distribution

tensogram_xarray-0.24.0.tar.gz (56.6 kB view details)

Uploaded Source

Built Distribution

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

tensogram_xarray-0.24.0-py3-none-any.whl (30.5 kB view details)

Uploaded Python 3

File details

Details for the file tensogram_xarray-0.24.0.tar.gz.

File metadata

  • Download URL: tensogram_xarray-0.24.0.tar.gz
  • Upload date:
  • Size: 56.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.14

File hashes

Hashes for tensogram_xarray-0.24.0.tar.gz
Algorithm Hash digest
SHA256 b1ac2765fd5843cacfe4f89ec5b6d0246b19edb7e4a669270fa0a01d8778e35b
MD5 4c5768952123c40b1b88055a5416ec1c
BLAKE2b-256 a8f45ef8ed89e5279d117b56e5eafab09dba6cb9a5fec8775b77da51b2c3b28b

See more details on using hashes here.

File details

Details for the file tensogram_xarray-0.24.0-py3-none-any.whl.

File metadata

File hashes

Hashes for tensogram_xarray-0.24.0-py3-none-any.whl
Algorithm Hash digest
SHA256 c391a4041ffa1538d2f653e57b7e28237c34bfb99a9ed9e9efabc54103358c0b
MD5 73c9f676a3d159b1c99c18d558577641
BLAKE2b-256 a56c8f4f5d181b1fb3d346a81bb567d388db10714cf08359210475f9f60c8a5a

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page