...
Code Block |
---|
|
<fews:idMap version="1.1" xmlns:fews="http://www.wldelft.nl/fews">
<fews:parameter internal="T.obs" external="tempf"/>
<fews:parameter internal="P.acc" external="rainin"/>
<fews:parameter internal="Wind.dir" external="winddir"/>
<fews:location internal="Fews1" external="120000"/>
<fews:location internal="Fews2" external="120001"/>
</fews:idMap>
|
Example UnitConversions
Configure a UnitConversions file for converting FEWS metric units to UK units. The following three types of conversion might be required:
- Temperature: oC to Fahrenheit
- Length: mm to inches
- Speed: m/s or km/h to Miles per Hour
Code Block |
---|
language | xml |
---|
title | example WowUnitConversions |
---|
|
<?xml version="1.0" encoding="UTF-8"?>
<unitConversions xmlns="http://www.wldelft.nl/fews" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.wldelft.nl/fews http://fews.wldelft.nl/schemas/version1.0/unitConversions.xsd">
<unitConversion>
<inputUnitType>oC</inputUnitType>
<outputUnitType>F</outputUnitType>
<multiplier>1.8</multiplier>
<incrementer>32</incrementer>
</unitConversion>
<unitConversion>
<inputUnitType>mm</inputUnitType>
<outputUnitType>in</outputUnitType>
<multiplier>0.0393701</multiplier>
<incrementer>0</incrementer>
</unitConversion>
<unitConversion>
<inputUnitType>m/s</inputUnitType>
<outputUnitType>mph</outputUnitType>
<multiplier>2.23694</multiplier>
<incrementer>0</incrementer>
</unitConversion>
</unitConversions> |