forked from AcademySoftwareFoundation/rawtoaces-data
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathschema_1.0.0.json
More file actions
148 lines (148 loc) · 6.91 KB
/
schema_1.0.0.json
File metadata and controls
148 lines (148 loc) · 6.91 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
{
"$schema": "http://json-schema.org/draft-04/schema#",
"definitions": {
},
"id": "#",
"properties": {
"header": {
"id": "/properties/header",
"properties": {
"schema_version": {
"description": "Required, schema version of the current document.",
"id": "/properties/header/properties/api_version",
"type": "string",
"minLength": 1
},
"comments": {
"description": "Optional, additional information for the spectral dataset.",
"id": "/properties/header/properties/comments",
"type": ["string", "null"]
},
"description": {
"description": "Required, description of the spectral dataset.",
"id": "/properties/header/properties/description",
"type": "string",
"minLength": 1
},
"document_creation_date": {
"description": "Required, document creation date expressed as per RFC 3339 - Date and Time on the Internet: Timestamps, e.g. 2017-01-01T12:00:00Z.",
"id": "/properties/header/properties/document_creation_date",
"type": "string",
"format": "date-time"
},
"document_creator": {
"description": "Required, creator of the document, e.g. company, individual, laboratory, etc.",
"id": "/properties/header/properties/document_creator",
"type": "string",
"minLength": 1
},
"laboratory": {
"description": "Optional, laboratory or company that performed the measurements.",
"id": "/properties/header/properties/laboratory",
"type": ["string", "null"]
},
"license": {
"description": "Required, usage license of the document, e.g. CC-BY-NC-ND",
"id": "/properties/header/properties/license",
"type": "string",
"minLength": 1
},
"manufacturer": {
"description": "Optional, manufacturer of the device being tested.",
"id": "/properties/header/properties/manufacturer",
"type": ["string", "null"]
},
"measurement_equipment": {
"description": "Optional, measurement equipment used to test the device.",
"id": "/properties/header/properties/measurement_equipment",
"type": ["string", "null"]
},
"model": {
"description": "Optional, model of the device being tested.",
"id": "/properties/header/properties/model",
"type": ["string", "null"]
},
"type": {
"description": "Optional, type of the spectral dataset.",
"id": "/properties/header/properties/type",
"type": ["string", "null"]
},
"unique_identifier": {
"description": "Optional, generated unique identifier for the document, e.g. SHA256.",
"id": "/properties/header/properties/unique_identifier",
"type": ["string", "null"]
}
},
"required": [
"schema_version",
"description",
"document_creation_date",
"document_creator",
"license"
],
"type": "object"
},
"spectral_data": {
"id": "/properties/spectral_data",
"properties": {
"bandwidth_FWHM": {
"description": "Optional, spectro-radiometer full-width at half-maximum bandwidth in nm.",
"id": "/properties/spectral_data/properties/bandwidth_FWHM",
"type": ["number", "null"]
},
"bandwidth_corrected": {
"description": "Optional, whether bandwidth correction has been applied to the spectral data.",
"id": "/properties/spectral_data/properties/bandwidth_corrected",
"type": ["boolean", "null"]
},
"data": {
"description": "Required, defines the spectral dataset, requiring at least one *key* from `index` whose *value* is an *object* containing wavelength/value pairs.",
"id": "/properties/spectral_data/properties/data",
"patternProperties": {
"^.*$": { "type": "object" }
},
"additionalProperties": false,
"type": "object"
},
"index": {
"description": "Required, indexes the spectral dataset.",
"id": "/properties/spectral_data/properties/index",
"patternProperties": {
"^.*$": { "type": "array" }
},
"additionalProperties": false,
"type": "object"
},
"reflection_geometry": {
"description": "Required if `units` is *reflectance*, reflection geometry attributes as per CIE 15:2004.",
"id": "/properties/spectral_data/properties/reflection_geometry",
"type": ["string", "null"],
"enum": ["di:8", "de:8", "8:di", "8:de", "d:d", "d:0", "45a:0", "45c:0", "0:45a", "45x:0", "0:45x", "other", null]
},
"transmission_geometry": {
"description": "Required if `units` is *transmittance*, transmission geometry attributes as per CIE 15:2004.",
"id": "/properties/spectral_data/properties/transmission_geometry",
"type": ["string", "null"],
"enum": ["0:0", "di:0", "de:0", "0:di", "0:de", "d:d", "other", null]
},
"units": {
"description": "Required, unit or quantity of measurement for the spectral dataset.",
"id": "/properties/spectral_data/properties/units",
"type": "string",
"enum": ["flux", "absorptance", "transmittance", "reflectance", "intensity", "irradiance", "radiance", "exitance", "R-Factor", "T-Factor", "relative", "other"]
}
},
"required": [
"data",
"index",
"units"
],
"type": "object"
}
},
"required": [
"header",
"spectral_data"
],
"type": "object"
}