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.3.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.3.0
File Size Uploaded
xarray_binfile-0.3.0.tar.gz 274.3 kB Details

Built distribution (wheel)

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

Total release size: 316.5 kB

Release files / xarray_binfile-0.3.0.tar.gz

Download URL xarray_binfile-0.3.0.tar.gz
Size 274.3 kB
Tags Source
SHA-256 checksum
How to use checksums
5ef4b316b6baf7834c823b61058271f91be824c3e9456c6cc76f600f7c1ede9a
BLAKE2b-256 checksum
How to use checksums
f25ddb4cdd2813a9b3f8e295a731c5b49b38dc0e0c0bccd7b2958bd88946a7fc
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 8, 2026.

Transparency log

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

Download URL xarray_binfile-0.3.0-py3-none-any.whl
Size 42.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
ef0b958259d0f0af55fd0c3f2a969d34450738432982d8e49b7c6dae39318c66
BLAKE2b-256 checksum
How to use checksums
45daabf9445904fecccefe5127447b586c2ad467ef35c9e320c3048d4e7a88e4
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 8, 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