@@ -4,7 +4,7 @@ Zarr storage specification version 2
4
4
====================================
5
5
6
6
This document provides a technical specification of the protocol and format
7
- used for storing a Zarr array . The key words "MUST", "MUST NOT", "REQUIRED",
7
+ used for storing Zarr arrays . The key words "MUST", "MUST NOT", "REQUIRED",
8
8
"SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and
9
9
"OPTIONAL" in this document are to be interpreted as described in `RFC 2119
10
10
<https://www.ietf.org/rfc/rfc2119.txt> `_.
@@ -56,12 +56,10 @@ chunks
56
56
dtype
57
57
A string or list defining a valid data type for the array. See also
58
58
the subsection below on data type encoding.
59
- compression
60
- A string identifying the primary compression library used to compress
61
- each chunk of the array.
62
- compression_opts
63
- An integer, string or dictionary providing options to the primary
64
- compression library.
59
+ compressor
60
+ A JSON object identifying the primary compression codec and providing
61
+ configuration parameters, or ``null `` if no compressor is to be used.
62
+ The object MUST contain an ``"id" `` key identifying the codec to be used.
65
63
fill_value
66
64
A scalar value providing the default value to use for uninitialized
67
65
portions of the array, or ``null `` if no fill_value is to be used.
70
68
array. "C" means row-major order, i.e., the last dimension varies fastest;
71
69
"F" means column-major order, i.e., the first dimension varies fastest.
72
70
filters
73
- A list of JSON objects providing filter configurations, or ``null `` if no
74
- filters are to be applied. Each filter configuration object MUST contain a
75
- ``"name " `` key identifying the filter to be used.
71
+ A list of JSON objects providing codec configurations, or ``null `` if no
72
+ filters are to be applied. Each codec configuration object MUST contain a
73
+ ``"id " `` key identifying the codec to be used.
76
74
77
75
Other keys MUST NOT be present within the metadata object.
78
76
@@ -88,16 +86,16 @@ using the Blosc compression library prior to storage::
88
86
1000,
89
87
1000
90
88
],
91
- "compression": "blosc",
92
- "compression_opts": {
93
- "clevel": 5,
89
+ "compressor": {
90
+ "id": "blosc",
94
91
"cname": "lz4",
92
+ "clevel": 5,
95
93
"shuffle": 1
96
94
},
97
95
"dtype": "<f8",
98
96
"fill_value": "NaN",
99
97
"filters": [
100
- {"name ": "delta", "dtype": "<f8", "astype": "<f4"}
98
+ {"id ": "delta", "dtype": "<f8", "astype": "<f4"}
101
99
],
102
100
"order": "C",
103
101
"shape": [
0 commit comments