awips2/cave/com.raytheon.viz.pointdata/localization/plotModels/maritimeDesign.svg

110 lines
4.8 KiB
XML
Raw Permalink Normal View History

2017-04-21 18:33:55 -06:00
<?xml version="1.0"?>
<svg width="100" height="100"
viewBox="0 0 100 100"
overflow="visible"
xmlns="http://www.w3.org/2000/svg"
contentScriptType="text/python"
xmlns:xlink="http://www.w3.org/1999/xlink" style="stroke: rgb(255,255,255);">
<defs>
<script type="text/python" plotDelegate="plotDelegate">
from qcplot import QCReport
class MaritimePlotDelegate(PlotDelegate):
def __init__(self):
PlotDelegate.__init__(self)
def getSampleText(self, rec):
raw = rec.getString("rawReport")
if raw.startswith("BBXX"):
raw = raw[5:]
elif raw.startswith("CMAN"):
raw = raw[11:]
elif raw.startswith("MAROB"):
raw = raw[7:]
return raw
plotDelegate = MaritimePlotDelegate()
</script>
<style type="text/css">
<![CDATA[
@font-face { font-family: "WindSymbolFont";
src: url(WindSymbols.svg#WindSymbols); }
@font-face { font-family: "StandardFont";
src: url(Standard.svg#Standard); }
@font-face { font-family: "WxSymbolFont";
src: url(WxSymbols.svg#WxSymbols); }
@font-face { font-family: "SpecialSymbolFont";
src: url(SpecialSymbols.svg#SpecialSymbols); }
@font-face { font-family: "LargeSpecialSymbolFont";
src: url(LargeSpecialSymbols.svg#LrgSpecialSymbols); }
text.barb
{
fill: none;
font-size: 1em;
font-size: 1em;
font-family: WindSymbolFont;
}
text.arrow
{
fill: none;
font-size: 1em;
font-size: 1em;
font-family: WindSymbolFont;
}
text.text
{
fill: none;
font-size: 1em;
stroke-width: 1px;
font-family: StandardFont;
font-size: 1em;
}
text.weather
{
fill: none;
font-size: 1em;
stroke-width: 1px;
font-family: WxSymbolFont;
}
text.special
{
fill: none;
font-size: 1em;
stroke-width: 1px;
font-size: 1em;
font-family: SpecialSymbolFont;
}
text.large
{
fill: none;
font-size: 1.5em;
stroke-width: 1px;
font-size: 1.5em;
font-family: LargeSpecialSymbolFont;
}
]]>
</style>
<symbol overflow="visible" id="plotData" class="info">
<text id="sample" plotMode="sample" class="text" plotParam="rawReport" x="0" y="0">0</text>
<text id="cloudCoverText" plotMode="range" class="special" plotLookupTable="maritime_cloud_chars.txt" plotParam="totCloudAmount" x="0" y="0">0</text>
<text id="pressure" plotMode="text" plotParam="seaLevelPress" plotUnit="daPa" plotFormat="%5.0f" plotTrim="2" style="text-anchor: start;" x="10px" y="-10px">018</text>
<text id="pressChngText" plotMode="text" plotParam="pressChange3Hour" plotUnit="daPa" plotFormat="%02.0f" style="text-anchor: start;" x="10px" y="0">018</text>
<text id="chngCharText" plotMode="table" class="weather" plotLookupTable="press_change_char_lookup.txt" plotParam="pressChangeChar" style="text-anchor: start;" x="35px" y="0">KOAX</text>
<text id="tempText" plotMode="text" plotParam="temperature" plotUnit="°F" plotFormat="%3.0f" style="text-anchor: end;" x="-10px" y="-10px">75</text>
<text id="dewText" plotMode="text" plotParam="dewpoint" plotUnit="°F" plotFormat="%3.0f" style="text-anchor: end;" x="-10px" y="10px">59</text>
<g id="windVaneText" plotMode="barb" plotParam="windSpeed,windDir,windGust" plotUnit="kts" x="0" y="0" transform="rotate(0,0,0)">
<text id="windVaneText" class="arrow" x="0" y="0">0</text>
<text id="windArrowText" class="barb" x="0" y="0">arrow</text>
<text id="windGustText" class="text" x="0" y="32" style="text-anchor: middle">0</text>
</g>
<text id="pkwndText" plotMode="text" plotParam="peakWindSpeed" plotUnit="kts" plotFormat="PK%2.0f" style="text-anchor: end;" x="-10px" y="20px">59</text>
<text id="seaText" plotMode="text" plotParam="seaSurfaceTemp" plotUnit="°F" plotFormat="%3.0f" style="text-anchor: start;" x="10px" y="10px">75</text>
<text id="presentWxText" plotMode="recursive_translation" class="weather" plotLookupTable="wx_symbol_trans.txt" plotParam="presWeather" style="text-anchor: end" x="-10px" y="0px">0</text>
<text id="heightText" plotMode="text" plotParam="wvHeight" plotUnit="ft" plotFormat="1.0%f" style="text-anchor: end;" x="0px" y="20px">018</text>
2017-04-21 18:33:55 -06:00
</symbol>
</defs>
<use id="wind" x="50" y="50" width="100" height="100" visibility="visible" xlink:href="#plotData"/>
</svg>