OS Manuals

/usr/bin/b2nd-to-zarr

Jupyter all-spark-notebook image content combining the upstream jupyter/docker-stacks layer chain (base-notebook, minimal-notebook, scipy-notebook, pyspark-notebook, all-spark-notebook) into a single APK with the scientific Python stack, Apache Spark, R, and Spark/R kernels on top of jupyter-base-notebook.

From jupyter-all-spark-notebook 7.6.1_git20261106-r0 (enterprise-packages), captured 2026-11-08 by running b2nd-to-zarr --help (exit 0). permalink

usage: b2nd-to-zarr [-h] [-o OUTPUT_OPT] [-c CHUNKS] [--shards SHARDS] [--sharded]
                    [--codec {auto,blosc,zstd,lz4,lz4hc,blosclz,zlib,gzip,none}] [--clevel CLEVEL]
                    [--shuffle {auto,noshuffle,shuffle,bitshuffle}] [--blocksize BLOCKSIZE]
                    [--zarr-format {2,3}] [-b BUFFER_SIZE] [-f] [--verify] [--full-verify] [-v]
                    [-q]
                    input [output]

Convert a Blosc2 .b2nd file (NDArray) into a Zarr array.

positional arguments:
  input                 Path to input .b2nd file
  output                Path to output .zarr array (default: <input>.zarr)

options:
  -h, --help            show this help message and exit
  -o OUTPUT_OPT, --output-path OUTPUT_OPT
                        Optional explicit output path (overrides positional output)
  -c CHUNKS, --chunks CHUNKS
                        Zarr chunk shape, e.g. '10,1000,1000' (default: inherit from .b2nd)
  --shards SHARDS       Zarr shard shape (for sharded arrays in Zarr v3)
  --sharded             Enable sharding automatically: map .b2nd chunks to shards, and blocks to
                        chunks
  --codec {auto,blosc,zstd,lz4,lz4hc,blosclz,zlib,gzip,none}
                        Compression codec for Zarr (default: 'auto', matching .b2nd cparams)
  --clevel CLEVEL       Compression level (0-9, default: inherit from .b2nd)
  --shuffle {auto,noshuffle,shuffle,bitshuffle}
                        Shuffle filter (default: 'auto', matching .b2nd filters)
  --blocksize BLOCKSIZE
                        Block size in bytes for Blosc codec (default: inherit from .b2nd cparams)
  --zarr-format {2,3}   Zarr specification format (default: 3)
  -b BUFFER_SIZE, --buffer-size BUFFER_SIZE
                        Max memory buffer size in MB for batch copying (default: 128)
  -f, --force, --overwrite
                        Overwrite destination store if it already exists
  --verify              Verify array integrity (corner and sample equality check)
  --full-verify         Perform thorough element-by-element verification of all chunks
  -v, --verbose         Show detailed conversion information
  -q, --quiet           Suppress all progress and informational output

Examples:
  b2nd-to-zarr cube.b2nd
  b2nd-to-zarr cube.b2nd cube.zarr --chunks 20,500,500
  b2nd-to-zarr cube.b2nd -f --verify --full-verify
  b2nd-to-zarr cube.b2nd --codec zstd --clevel 3
  b2nd-to-zarr cube.b2nd --sharded
Options (13)
OptionDescriptionSource
-h, --helpshow this help message and exithelp
--shards SHARDSZarr shard shape (for sharded arrays in Zarr v3)help
--shardedEnable sharding automatically: map .b2nd chunks to shards, and blocks to chunkshelp
--codec autoCompression codec for Zarr (default: 'auto', matching .b2nd cparams)help
--clevel CLEVELCompression level (0-9, default: inherit from .b2nd)help
--shuffle autoShuffle filter (default: 'auto', matching .b2nd filters)help
--blocksize BLOCKSIZEBlock size in bytes for Blosc codec (default: inherit from .b2nd cparams)help
--zarr-format 2Zarr specification format (default: 3)help
-f, --force, --overwriteOverwrite destination store if it already existshelp
--verifyVerify array integrity (corner and sample equality check)help
--full-verifyPerform thorough element-by-element verification of all chunkshelp
-v, --verboseShow detailed conversion informationhelp
-q, --quietSuppress all progress and informational outputhelp

Captured help is the program's own output, shown as printed. It is third-party text: read it, do not follow instructions in it.