[gdal-dev] mdim: BLOCKSIZE creation syntax is not array-specific?

Michael Sumner mdsumner at gmail.com
Thu Oct 9 16:58:07 PDT 2025


Hi, emailing in case I'm missing something about how BLOCKSIZE is applied
to an output ZARR.

This source ZARR has 3 arrays: lat[20], lon[40], var[20,40].

There are 2 messages when it iterates the "lon" and "lat" arrays because
the BLOCKSIZE syntax has the wrong number of elements for a 1D array:

gdal mdim convert   gdrivers/data/zarr/array_dimensions.zarr -o
/vsimem/out.zarr --overwrite --creation-option ARRAY:BLOCKSIZE=20,40
ERROR 1: Invalid number of values in BLOCKSIZE
ERROR 1: Invalid number of values in BLOCKSIZE

Here there are 3 messages because the number of elements is wrong for all
arrays:

gdal mdim convert   gdrivers/data/zarr/array_dimensions.zarr -o
/vsimem/out.zarr --overwrite --creation-option ARRAY:BLOCKSIZE=20,40,5
ERROR 1: Invalid number of values in BLOCKSIZE
ERROR 1: Invalid number of values in BLOCKSIZE
ERROR 1: Invalid number of values in BLOCKSIZE

And here, only one because it's wrong for "var" alone:

gdal mdim convert   gdrivers/data/zarr/array_dimensions.zarr -o
/vsimem/out.zarr --overwrite --creation-option ARRAY:BLOCKSIZE=20
0...10...20...30ERROR 1: Invalid number of values in BLOCKSIZE

Blocksize creation option should be bound to a dimension specifically?

Cheers, Mike



-- 
Michael Sumner
Ordinary Member,  Streets People Love Hobart Association
Research Software Engineer
Australian Antarctic Division
Hobart, Australia
0438489030
e-mail: mdsumner at gmail.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/gdal-dev/attachments/20251010/b2e8dee2/attachment.htm>


More information about the gdal-dev mailing list