Similar to #36 but perhaps simpler: are there any example JSON documents available showing the required and optional metadata fields? I had a few questions, which an example would answer pretty quickly:
- Do the required metadata fields go directly in the top level of the attributes? Or is it nested under another key?
- What should
grid_mapping look like?
- Are there any requirements on the metadata for an Auxiliary Variable?
I have a start here (using Zarr V3 terminology) but I'm not sure if it's correct. It's for a Dataset with a single array (air_temperature) with dimensions (time, lon, lat).
Dataset Root
{
"zarr_format": 3,
"node_type": "group"
}
Time
{
"zarr_format": 3,
"node_type": "array",
"shape": [
365
],
"data_type": "int64",
"fill_value": 0,
"chunk_grid": {
"name": "regular",
"configuration": {
"chunk_shape": [
365
]
}
},
"chunk_key_encoding": {
"name": "default",
"configuration": {
"separator": "/"
}
},
"codecs": [
{
"name": "bytes",
"configuration": {
"endian": "little"
}
}
],
"dimension_names": ["time"],
"attributes": {
"standard_name": "time"
}
}
lon
{
"zarr_format": 3,
"node_type": "array",
"shape": [
360
],
"data_type": "float32",
"fill_value": 0.0,
"chunk_grid": {
"name": "regular",
"configuration": {
"chunk_shape": [
360
]
}
},
"chunk_key_encoding": {
"name": "default",
"configuration": {
"separator": "/"
}
},
"codecs": [
{
"name": "bytes",
"configuration": {
"endian": "little"
}
}
],
"dimension_names": ["lon"],
"attributes": {
"standard_name": "grid_longitude"
}
}
lat
{
"zarr_format": 3,
"node_type": "array",
"shape": [
180
],
"data_type": "float32",
"fill_value": 0.0,
"chunk_grid": {
"name": "regular",
"configuration": {
"chunk_shape": [
180
]
}
},
"chunk_key_encoding": {
"name": "default",
"configuration": {
"separator": "/"
}
},
"codecs": [
{
"name": "bytes",
"configuration": {
"endian": "little"
}
}
],
"dimension_names": ["lat"],
"attributes": {
"standard_name": "grid_latitude"
}
}
data
{
"zarr_format": 3,
"node_type": "array",
"shape": [
365, 360, 180
],
"data_type": "int64",
"fill_value": 0,
"chunk_grid": {
"name": "regular",
"configuration": {
"chunk_shape": [
183, 180, 90
]
}
},
"chunk_key_encoding": {
"name": "default",
"configuration": {
"separator": "/"
}
},
"codecs": [
{
"name": "bytes",
"configuration": {
"endian": "little"
}
}
],
"dimension_names": ["time", "lon", "lat"],
"attributes": {
"standard_name": "air_temperature"
}
}
Similar to #36 but perhaps simpler: are there any example JSON documents available showing the required and optional metadata fields? I had a few questions, which an example would answer pretty quickly:
grid_mappinglook like?I have a start here (using Zarr V3 terminology) but I'm not sure if it's correct. It's for a Dataset with a single array (
air_temperature) with dimensions(time, lon, lat).Dataset Root
{ "zarr_format": 3, "node_type": "group" }Time
{ "zarr_format": 3, "node_type": "array", "shape": [ 365 ], "data_type": "int64", "fill_value": 0, "chunk_grid": { "name": "regular", "configuration": { "chunk_shape": [ 365 ] } }, "chunk_key_encoding": { "name": "default", "configuration": { "separator": "/" } }, "codecs": [ { "name": "bytes", "configuration": { "endian": "little" } } ], "dimension_names": ["time"], "attributes": { "standard_name": "time" } }lon
{ "zarr_format": 3, "node_type": "array", "shape": [ 360 ], "data_type": "float32", "fill_value": 0.0, "chunk_grid": { "name": "regular", "configuration": { "chunk_shape": [ 360 ] } }, "chunk_key_encoding": { "name": "default", "configuration": { "separator": "/" } }, "codecs": [ { "name": "bytes", "configuration": { "endian": "little" } } ], "dimension_names": ["lon"], "attributes": { "standard_name": "grid_longitude" } }lat
{ "zarr_format": 3, "node_type": "array", "shape": [ 180 ], "data_type": "float32", "fill_value": 0.0, "chunk_grid": { "name": "regular", "configuration": { "chunk_shape": [ 180 ] } }, "chunk_key_encoding": { "name": "default", "configuration": { "separator": "/" } }, "codecs": [ { "name": "bytes", "configuration": { "endian": "little" } } ], "dimension_names": ["lat"], "attributes": { "standard_name": "grid_latitude" } }data
{ "zarr_format": 3, "node_type": "array", "shape": [ 365, 360, 180 ], "data_type": "int64", "fill_value": 0, "chunk_grid": { "name": "regular", "configuration": { "chunk_shape": [ 183, 180, 90 ] } }, "chunk_key_encoding": { "name": "default", "configuration": { "separator": "/" } }, "codecs": [ { "name": "bytes", "configuration": { "endian": "little" } } ], "dimension_names": ["time", "lon", "lat"], "attributes": { "standard_name": "air_temperature" } }