1# CHART Calibration definition files for raw or derived tables or views
2
3namespace xsi = "http://www.w3.org/2001/XMLSchema-instance"
4
5element calibrations {
6 attribute xsi:noNamespaceSchemaLocation { "http://chart/schemas/calibration.xsd" } &
7
8 ## Identify all spacecraft this file applies to. Wildcards allowed.
9 element source {
10 element scid { text }
11 }* &
12
13 ## A single named calibration function
14 element calibration {
15 ## Name of the calibration function as refered from the raw table field definition.
16 element field { text }+ &
17
18 ## State a linear calibration.
19 (element linear {
20 ## A linear calibraton may contain multiple pairs.
21 element pair {
22 ## Each pair has a raw value
23 element raw { xsd:integer } &
24 ## Each pair has a calibrated value
25 element cal { xsd:double }
26 }+
27 } |
28 ## State a polynomial calibration
29 element poly {
30 ## A polynomial may have multiple terms. x0 first.
31 element coeff { xsd:double }+
32 } |
33 ## Use a named pl/SQL function for calibration.
34 element plsql { text } |
35 ## Use an inline SQL statement.
36 element sql { text })
37 }*
38}