forked from OSGeo/gdal
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Zarr V3: update with latest Zarr V3 specification
- Rename 'endian' codec to 'bytes' - Always generate a "codecs" array with the "bytes" codec in it. On reading, be tolerant with its absence but raise a warning as it being deprecated - On reading, raise a warning on implicit groups, as being deprecated - Support the 'zstd' codec, which isn't yet standardized, but is the default one used by Python zarr v3.0.2 Not handled: 'crc32c' and 'sharding' codecs
- Loading branch information
Showing
17 changed files
with
407 additions
and
201 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,5 +19,6 @@ | |
"separator":"\/" | ||
} | ||
}, | ||
"fill_value": 255 | ||
"fill_value": 255, | ||
"codecs": [{"name":"bytes"}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,5 +18,6 @@ | |
"chunk_key_encoding":{ | ||
"name":"v2" | ||
}, | ||
"fill_value":255 | ||
"fill_value":255, | ||
"codecs": [{"name":"bytes"}] | ||
} |
4 changes: 4 additions & 0 deletions
4
autotest/gdrivers/data/zarr/v3/test.zr3/marvin/paranoid/zarr.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"zarr_format":3, | ||
"node_type":"group" | ||
} |
1 change: 1 addition & 0 deletions
1
autotest/gdrivers/data/zarr/v3/test_deprecated_no_codecs.zr3/ar/c/0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
23 changes: 23 additions & 0 deletions
23
autotest/gdrivers/data/zarr/v3/test_deprecated_no_codecs.zr3/ar/zarr.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
{ | ||
"zarr_format":3, | ||
"node_type":"array", | ||
"shape":[ | ||
2 | ||
], | ||
"data_type":"uint8", | ||
"chunk_grid":{ | ||
"name":"regular", | ||
"configuration":{ | ||
"chunk_shape":[ | ||
2 | ||
] | ||
} | ||
}, | ||
"chunk_key_encoding":{ | ||
"name":"default", | ||
"configuration":{ | ||
"separator":"\/" | ||
} | ||
}, | ||
"fill_value": 255 | ||
} |
1 change: 1 addition & 0 deletions
1
autotest/gdrivers/data/zarr/v3/test_deprecated_no_codecs.zr3/marvin/android/0.0
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
22 changes: 22 additions & 0 deletions
22
autotest/gdrivers/data/zarr/v3/test_deprecated_no_codecs.zr3/marvin/android/zarr.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"zarr_format":3, | ||
"node_type":"array", | ||
"shape":[ | ||
5, | ||
4 | ||
], | ||
"data_type":"uint8", | ||
"chunk_grid":{ | ||
"name":"regular", | ||
"configuration":{ | ||
"chunk_shape":[ | ||
5, | ||
4 | ||
] | ||
} | ||
}, | ||
"chunk_key_encoding":{ | ||
"name":"v2" | ||
}, | ||
"fill_value":255 | ||
} |
File renamed without changes.
7 changes: 7 additions & 0 deletions
7
autotest/gdrivers/data/zarr/v3/test_deprecated_no_codecs.zr3/marvin/zarr.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"zarr_format":3, | ||
"node_type":"group", | ||
"attributes":{ | ||
"foo":"bar" | ||
} | ||
} |
7 changes: 7 additions & 0 deletions
7
autotest/gdrivers/data/zarr/v3/test_deprecated_no_codecs.zr3/zarr.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"zarr_format":3, | ||
"node_type":"group", | ||
"attributes":{ | ||
"root_foo":"bar" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.