#############################
### Metric and Unit Table ###
#############################

# Metrics Units Table (2017 PRC)

dsource register "MetricUnits"	                                \
    type    delimitedFile                                       \
    file    "$(dir.datasource)/metrics_units.csv"	        \
    header  true                                                \
    quote   '"'

tupletable create ufrd:MetricUnits	                        \
    dataSourceName  "MetricUnits"	                        \
    "columns"       3                                           \
    "1"             "{Metric}"	                                \
    "1.datatype"    "string"                                    \
    "2"             "{UnitOfMeasure}"                           \
    "2.datatype"    "string"                                    \
    "3"             "{Conversion}"                              \
    "3.datatype"    "xsd:decimal"                               \
    "3.if-empty"    "default"                                   \
    "3.default"     "1.0"

    # 1 Metric of measure
    # 2 Unit of measure given in data
    # 3 Conversion to standard units

