anu_ctlab_io.raw
Raw binary format support for anu_ctlab_io.
Provides write-only support for headerless raw binary files (C-order, little-endian). No optional extras are required for this format.
Package Contents
- anu_ctlab_io.raw.dataset_to_raw(dataset, path)
Write dataset data to a headerless raw binary file.
Elements are written in C-order (row-major), little-endian byte order, with no metadata. The dtype matches the source dataset exactly.
Data is written incrementally: X/Y dimensions are merged into a single chunk and one Z-slab is computed and flushed to disk at a time, keeping memory usage proportional to one Z-chunk rather than the full array.
- Parameters:
dataset (anu_ctlab_io._dataset.Dataset) – The
Datasetto write.path (pathlib.Path) – The path to write the raw binary file to.
- Return type:
None