# CHART Calibration definition files for raw or derived tables or views
namespace xsi = "http://www.w3.org/2001/XMLSchema-instance"
element calibrations {
attribute xsi:noNamespaceSchemaLocation { "http://chart/schemas/calibration.xsd" } &
## Identify all spacecraft this file applies to. Wildcards allowed.
element source {
element scid { text }
}* &
## A single named calibration function
element calibration {
## Name of the calibration function as refered from the raw table field definition.
element field { text }+ &
## State a linear calibration.
(element linear {
## A linear calibraton may contain multiple pairs.
element pair {
## Each pair has a raw value
element raw { xsd:integer } &
## Each pair has a calibrated value
element cal { xsd:double }
}+
} |
## State a polynomial calibration
element poly {
## A polynomial may have multiple terms. x0 first.
element coeff { xsd:double }+
} |
## Use a named pl/SQL function for calibration.
element plsql { text } |
## Use an inline SQL statement.
element sql { text })
}*
}