<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Incorrect length unit conversion]]></title><description><![CDATA[<p dir="auto">Hi,</p>
<p dir="auto">When showing a value with a unit of length (e.g. cloud base or visibility), I very often get numbers that doesn't seem right (like a visibility of 20sm in a rain) and indeed are always much larger than the real value. Looking at the code it seems that the input to <code>Picker.createHTML</code> is likely the correct number in imperial unit though the conversion functions <code>conv.ft.conversion</code> and <code>conv.m.conversion</code> both assume that the input is in metric unit (the one used for cloud base is <code>a</code> for meters and <code>3.28 * a</code> for feet). This causes the number shown for cloud base to be off by 3.28, which easily makes the difference between VFR and IFR....<br />
I did not check all other units. They could have the same issue but is much harder to verify for me.</p>
<p dir="auto">This issue could be locale/setting dependent since my browser's locale is zh-CN, which uses metric unit. I also want to say it didn't used to be an issue when I first found this in early January this year but only starts to happen a month or two after that (in case this helps locating the code upgrade that triggers the issue....).</p>
]]></description><link>https://community.windy.com/topic/6077/incorrect-length-unit-conversion</link><generator>RSS for Node</generator><lastBuildDate>Sun, 17 May 2026 22:05:20 GMT</lastBuildDate><atom:link href="https://community.windy.com/topic/6077.rss" rel="self" type="application/rss+xml"/><pubDate>Mon, 04 Jun 2018 00:52:17 GMT</pubDate><ttl>60</ttl></channel></rss>