diff --git a/src/main/java/com/glencoesoftware/zarr/Convert.java b/src/main/java/com/glencoesoftware/zarr/Convert.java index 4cef9c7..1a5ab9a 100644 --- a/src/main/java/com/glencoesoftware/zarr/Convert.java +++ b/src/main/java/com/glencoesoftware/zarr/Convert.java @@ -67,6 +67,7 @@ public class Convert implements Callable { private boolean writeV2; private ShardConfiguration shardConfig; + private int[] requestedShard; // the requested size for custom sharding private String[] codecs; /** @@ -136,8 +137,12 @@ public void setSharding(String shard) { shardConfig = Enum.valueOf(ShardConfiguration.class, shard); } catch (IllegalArgumentException e) { - // TODO shardConfig = ShardConfiguration.CUSTOM; + String[] shardSize = shard.split(","); + requestedShard = new int[shardSize.length]; + for (int i=0; i