You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+4-219Lines changed: 4 additions & 219 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -245,225 +245,10 @@ By default, `rawtoaces` will determine the adopted white by finding the set of w
245
245
You can use the environment varilable of `AMPAS_DATA_PATH` to specify the repository for your own datasets. If you have spectral sensitivity data for your camera but it is not included with `rawtoaces` you may place that data in `/usr/local/include/rawtoaces/data/camera` or place the data in the folder pointed by `AMPAS_DATA_PATH`.
246
246
247
247
248
-
#### JSON Schema for Spectral Datasets
249
-
250
-
The schema takes its roots in [IES TM-27-14](http://www.techstreet.com/standards/ies-tm-27-14?product_id=1881073) but implements support for multiple spectral datasets while adopting [JSON](http://www.json.org/) over [XML](https://www.w3.org/TR/REC-xml/) for the simplicity of its grammar.
251
-
252
-
`rawtoaces` expects the spectral dataset to have the following shape: **(380, 780, 5)**, i.e. starting from 380nm and ending at 780nm with a 5nm interval/bin size.
253
-
254
-
The attributes are defined as follows:
255
-
256
-
-`header`
257
-
-`schema_version`
258
-
- **description**: *Required*, schema version of the current document.
259
-
- **type**: `"string"`
260
-
-`catalog_number`
261
-
-**description**: *Optional*,
262
-
-**type**: `["string", "null"]`
263
-
-`comments`
264
-
-**description**: *Optional*, additional information for the spectral dataset.
265
-
-**type**: `["string", "null"]`
266
-
-`description`
267
-
-**description**: *Required*, description of the spectral dataset.
268
-
-**type**: `"string"`
269
-
-`document_creation_date`
270
-
-**description**: *Required*, document creation date expressed as per RFC 3339 - Date and Time on the Internet: Timestamps, e.g. 2017-01-01T12:00:00Z.
271
-
-**type**: `"string"`
272
-
-**format**: `"date-time"`
273
-
-`document_creator`
274
-
-**description**: *Required*, creator of the document, e.g. company, individual, laboratory, etc.
275
-
-**type**: `"string"`
276
-
-`laboratory`
277
-
-**description**: *Optional*, laboratory or company that performed the measurements.
278
-
-**type**: `["string", "null"]`
279
-
-`license`
280
-
-**description**: *Required*, usage license of the document, e.g. "CC-BY-NC-ND".
281
-
-**type**: `["string", "null"]`
282
-
-`manufacturer`
283
-
-**description**: *Optional*, manufacturer of the device being tested.
284
-
-**type**: `["string", "null"]`
285
-
-`measurement_equipment`
286
-
-**description**: *Optional*, measurement equipment used to test the device.
287
-
-**type**: `["string", "null"]`
288
-
-`model`
289
-
-**description**: *Optional*, model of the device being tested.
290
-
-**type**: `["string", "null"]`
291
-
-`unique_identifier`
292
-
-**description**: *Optional*, generated unique identifier for the document, e.g. SHA256.
293
-
-**type**: `["string", "null"]`
294
-
-`spectral_data`
295
-
-`bandwidth_FWHM`
296
-
- **description**: *Optional*, spectro-radiometer full-width at half-maximum bandwidth in nm.
297
-
- **type**: `["number", "null"]`
298
-
-`bandwidth_corrected`
299
-
-**description**: *Optional*, whether bandwidth correction has been applied to the spectral data.
300
-
-**type**: `["boolean", "null"]`
301
-
-`data`
302
-
-**description**: *Required*, defines the spectral dataset, requiring at least one *key* from `index` whose *value* is an *object* containing wavelength/value pairs.
303
-
-**type**: `"object"`
304
-
-`index`
305
-
-**description**: *Required*, indexes the spectral dataset.
306
-
-**type**: `"object"`
307
-
-`reflection_geometry`
308
-
-**description**: *Required* if `units` is *reflectance*, reflection geometry attributes as per CIE 15:2004.
The full JSON schema for spectral datasets can be used to validate a new user file using a [validator](http://www.jsonschemavalidator.net/) and is defined as follows:
"description": "Required, defines the spectral dataset, requiring at least one *key* from `index` whose *value* is an *object* containing wavelength/value pairs.",
The spectral data have been moved to a separate repository [rawtoaces-data](https://github.com/AcademySoftwareFoundation/rawtoaces-data).
251
+
The build scripts of rawtoaces will fetch and install the data automatically. Please refer to that repository for the information on the data usage and schema.
0 commit comments