-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema.json
More file actions
311 lines (311 loc) · 10.5 KB
/
Copy pathschema.json
File metadata and controls
311 lines (311 loc) · 10.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"title": "CF Conventions for Zarr",
"description": "Schema for Climate and Forecast (CF) conventions in Zarr. CF attributes use their standard unprefixed names for backwards compatibility with existing CF-compliant datasets and libraries like cf-python and xarray.",
"type": "object",
"properties": {
"zarr_format": {
"type": "integer",
"description": "Zarr format version"
},
"node_type": {
"type": "string",
"enum": ["array", "group"],
"description": "Type of Zarr node"
},
"attributes": {
"type": "object",
"description": "Zarr attributes containing convention metadata and CF attributes (unprefixed for backwards compatibility)",
"properties": {
"zarr_conventions": {
"type": "array",
"description": "Array of convention metadata objects",
"contains": {
"$ref": "#/$defs/conventionMetadata"
}
}
},
"required": ["zarr_conventions"],
"$ref": "#/$defs/cfAttributes"
}
},
"required": ["zarr_format", "node_type", "attributes"],
"additionalProperties": true,
"$defs": {
"conventionMetadata": {
"type": "object",
"description": "CF conventions metadata object for use in zarr_conventions array",
"properties": {
"schema_url": {
"type": "string",
"const": "https://raw.githubusercontent.com/zarr-conventions/CF/refs/tags/v1/schema.json",
"description": "URL to the JSON Schema definition for this convention"
},
"spec_url": {
"type": "string",
"description": "URL to the CF conventions specification document"
},
"uuid": {
"type": "string",
"const": "77c308c7-4db2-4774-8b2d-aa37e9997db6",
"description": "UUID that permanently identifies this convention"
},
"name": {
"type": "string",
"const": "CF",
"description": "Human-readable name of the convention (no colon suffix indicates unprefixed attributes for backwards compatibility)"
},
"version": {
"type": "string",
"pattern": "^[0-9]+\\.[0-9]+$",
"description": "CF conventions version (e.g., '1.11', '1.10')"
},
"description": {
"type": "string",
"const": "Climate and Forecast conventions for self-describing geospatial data",
"description": "Brief description of the convention's purpose and usage"
}
},
"anyOf": [
{ "required": ["schema_url"] },
{ "required": ["spec_url"] },
{ "required": ["uuid"] }
],
"additionalProperties": false
},
"cfAttributes": {
"type": "object",
"description": "CF convention attributes. All attributes use standard CF names (unprefixed) for backwards compatibility with existing CF-compliant datasets.",
"properties": {
"zarr_conventions": true,
"Conventions": {
"type": "string",
"description": "CF conventions version string (e.g., 'CF-1.11'). May include other conventions separated by spaces.",
"pattern": "(^|\\s)CF-[0-9]+\\.[0-9]+"
},
"title": {
"type": "string",
"description": "A succinct description of what is in the dataset"
},
"institution": {
"type": "string",
"description": "Specifies where the original data was produced"
},
"source": {
"type": "string",
"description": "The method of production of the original data"
},
"history": {
"type": "string",
"description": "Provides an audit trail for modifications to the original data"
},
"references": {
"type": "string",
"description": "Published or web-based references that describe the data or methods"
},
"comment": {
"type": "string",
"description": "Miscellaneous information about the data or methods"
},
"standard_name": {
"type": "string",
"description": "A standard name from the CF Standard Name Table that identifies the quantity"
},
"long_name": {
"type": "string",
"description": "A descriptive name that indicates a variable's content"
},
"units": {
"type": "string",
"description": "Units of the variable's values, recognized by UDUNITS"
},
"calendar": {
"type": "string",
"description": "Calendar used for time coordinates",
"enum": [
"standard",
"gregorian",
"proleptic_gregorian",
"noleap",
"365_day",
"all_leap",
"366_day",
"360_day",
"julian",
"none"
]
},
"axis": {
"type": "string",
"description": "Identifies the axis type (X, Y, Z, or T)",
"enum": ["X", "Y", "Z", "T"]
},
"positive": {
"type": "string",
"description": "Direction of increasing vertical coordinate values",
"enum": ["up", "down"]
},
"coordinates": {
"type": "string",
"description": "Space-separated list of auxiliary coordinate variable names"
},
"bounds": {
"type": "string",
"description": "Name of the boundary variable for this coordinate"
},
"cell_methods": {
"type": "string",
"description": "Describes the characteristic of a field representing a cell"
},
"cell_measures": {
"type": "string",
"description": "Identifies variables containing cell areas or volumes"
},
"grid_mapping": {
"type": "string",
"description": "Name of the grid mapping variable containing CRS information"
},
"ancillary_variables": {
"type": "string",
"description": "Space-separated list of ancillary data variable names"
},
"flag_values": {
"type": "array",
"description": "Array of flag values for categorical data",
"items": {
"type": ["integer", "number"]
}
},
"flag_meanings": {
"type": "string",
"description": "Space-separated list of flag meaning strings"
},
"flag_masks": {
"type": "array",
"description": "Array of flag masks for bit-field data",
"items": {
"type": "integer"
}
},
"valid_min": {
"type": "number",
"description": "Minimum valid value for the variable"
},
"valid_max": {
"type": "number",
"description": "Maximum valid value for the variable"
},
"valid_range": {
"type": "array",
"description": "Two-element array [valid_min, valid_max]",
"minItems": 2,
"maxItems": 2,
"items": {
"type": "number"
}
},
"_FillValue": {
"type": ["number", "string", "null"],
"description": "Value used to indicate missing or undefined data"
},
"missing_value": {
"type": ["number", "string", "null"],
"description": "Deprecated alias for _FillValue"
},
"add_offset": {
"type": "number",
"description": "Offset to be added after scaling: value = scale_factor * packed + add_offset"
},
"scale_factor": {
"type": "number",
"description": "Scale factor for packed data: value = scale_factor * packed + add_offset"
},
"compress": {
"type": "string",
"description": "Name of the dimension to be uncompressed"
},
"formula_terms": {
"type": "string",
"description": "Identifies variables used in computing dimensionless vertical coordinates"
},
"standard_name_vocabulary": {
"type": "string",
"description": "Name of the controlled vocabulary for standard_name"
},
"grid_mapping_name": {
"type": "string",
"description": "Name of the grid mapping/projection method"
},
"crs_wkt": {
"type": "string",
"description": "Well-Known Text representation of the CRS (WKT2)"
},
"semi_major_axis": {
"type": "number",
"description": "Semi-major axis of the ellipsoid"
},
"semi_minor_axis": {
"type": "number",
"description": "Semi-minor axis of the ellipsoid"
},
"inverse_flattening": {
"type": "number",
"description": "Inverse flattening of the ellipsoid"
},
"earth_radius": {
"type": "number",
"description": "Radius of the Earth for spherical approximation"
},
"longitude_of_prime_meridian": {
"type": "number",
"description": "Longitude of the prime meridian"
},
"false_easting": {
"type": "number",
"description": "False easting parameter"
},
"false_northing": {
"type": "number",
"description": "False northing parameter"
},
"longitude_of_projection_origin": {
"type": "number",
"description": "Longitude of projection origin"
},
"latitude_of_projection_origin": {
"type": "number",
"description": "Latitude of projection origin"
},
"scale_factor_at_projection_origin": {
"type": "number",
"description": "Scale factor at projection origin"
},
"scale_factor_at_central_meridian": {
"type": "number",
"description": "Scale factor at central meridian"
},
"longitude_of_central_meridian": {
"type": "number",
"description": "Longitude of central meridian"
},
"straight_vertical_longitude_from_pole": {
"type": "number",
"description": "Straight vertical longitude from pole"
},
"standard_parallel": {
"oneOf": [
{ "type": "number" },
{
"type": "array",
"items": { "type": "number" },
"minItems": 1,
"maxItems": 2
}
],
"description": "Standard parallel(s) for the projection"
}
},
"additionalProperties": true
}
}
}