summaryrefslogtreecommitdiffstats
path: root/xml/test_pywrap/units.xml
blob: 74ab9f738e041f88c0e8aca21088c4a7d2938f20 (plain)
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
<?xml version="1.0"?>
<model xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
  <unit name="C">
    <transform unit="K" transform="$value+273.15"/>
    <transform unit="F" transform="$value*(9./5)+32"/>
  </unit>
  <unit name="K">
    <transform unit="C" transform="$value-273.15"/>
    <transform unit="F" transform="($value-273.15)*(9./5)+32"/>
  </unit>
  <unit name="F">
    <transform unit="C" transform="($value-32)*5./9"/>
    <transform unit="K" transform="($value+273.15-32)*5./9"/>
  </unit>
  <unit name="s">
    <transform unit="ms" transform="$value*1000"/>
    <transform unit="us" transform="$value*1000000"/>
    <transform unit="ns" transform="$value*1000000000"/>
  </unit>
  <unit name="ms">
    <transform unit="s" transform="$value/1000"/>
    <transform unit="us" transform="$value*1000"/>
    <transform unit="ns" transform="$value*1000000"/>
  </unit>
  <unit name="us">
    <transform unit="s" transform="$value/1000000"/>
    <transform unit="ms" transform="$value/1000"/>
    <transform unit="ns" transform="$value*1000"/>
  </unit>
  <unit name="ns">
    <transform unit="s" transform="$value/1000000000"/>
    <transform unit="ms" transform="$value/1000000"/>
    <transform unit="us" transform="$value/1000"/>
  </unit>
</model>