Skip to main content

Xarray-binfile

Xarray-binfile logo

Custom Xarray file engine to handle raw binary files


  • QA: CI CodeQL pre-commit.ci status Quality Gate Status Coverage CodeFactor

  • Docs: Docs

  • Package: PyPI - Version PyPI - Python Version

  • Meta: Wizard Template Checked with mypy Hatch project Ruff GitHub License EffVer Versioning


Overview

Xarray-binfile is a Python package that integrates raw binary files with xarray. You provide the metadata that describes each binary file, and the package exposes those files through xarray datasets and data arrays with optional lazy chunking through Dask.

The package was first designed around binary outputs from the Fortran framework 2DECOMP&FFT and the CFD solver Xcompact3d, which is built on top of it. It is not limited to those ecosystems and can be used with any raw binary convention once the corresponding metadata mapping is provided.

It is aimed at workflows where raw binary files are part of an existing convention, such as simulation outputs or NumPy .tofile() dumps. Once opened, the data can be indexed, reduced, plotted, and computed with the usual xarray and Dask APIs.

See the documentation for end-to-end examples covering lazy loading, Dask-backed computations, task-graph visualization, writing derived results back to .bin files, parallel and larger-than-memory workflows, benchmarking on your own data, batch dtype conversion, probe time-series export to CSV, and quick matplotlib plots.

© 2025 Felipe N. Schuch. All content is under MIT License.

Metadata

Release files for xarray-binfile 0.2.0

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

Source distribution (sdist)

Source distribution for xarray-binfile 0.2.0
File Size Uploaded
xarray_binfile-0.2.0.tar.gz 253.0 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for xarray-binfile 0.2.0
File Interpreter ABI Platform
xarray_binfile-0.2.0-py3-none-any.whl Python 3 none any Details

Total release size: 282.6 kB

Release files / xarray_binfile-0.2.0.tar.gz

Download URL xarray_binfile-0.2.0.tar.gz
Size 253.0 kB
Tags Source
SHA-256 checksum
How to use checksums
1381a72ab167c8ffed5544a3da666713e2cccdcb395ffd5ff53520a909c17c87
BLAKE2b-256 checksum
How to use checksums
49e116ddd6e20bae2128afb0cbdfb6ece45238b268c30c1e53ca8c22eeeb02a4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 7, 2026.

Transparency log

Release files / xarray_binfile-0.2.0-py3-none-any.whl

Download URL xarray_binfile-0.2.0-py3-none-any.whl
Size 29.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8e58423bd215ecb596d7ebbec9475fcdd737828b1b16b61b6efdef7cf4be6bb1
BLAKE2b-256 checksum
How to use checksums
1e58fc08aff49eeba3e87f880f55a8c50c3502879de25c1ea0efe6e0a4238799
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 Oct 7, 2026.

Transparency log
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