Page 2 of 2
Re: inHg > hPa in the USA
Posted: Sat 29 Dec 2012 9:11 am
by RayProudfoot
Fahrenheit is still used in the UK during a heatwave. 90F sounds more impressive than 32C. But when it gets cold 18F doesn't sound very cold as it's still a positive number. -8C sounds colder. So the UK press tend to mix and match according to the conditions.
Re: inHg > hPa in the USA
Posted: Sat 29 Dec 2012 7:43 pm
by Buford T. Justice
http://tinyurl.com/WS62694-1
I was bored so I decided to add inHg, kPa, and mmHg to indexT.htm since I am now reporting in hPa. The following will work only if Cumulus is logging barometric pressure in hPa:
Code: Select all
<tr>
<td colspan="4" class="tableseparator_pressure">Pressure (MSL)</td>
</tr>
<tr class="td_pressure_data">
<td>Barometer</td>
<td><#press> <#pressunit></td>
<td><#presstrend></td>
<td><#presstrendval> <#pressunit>/hr</td>
</tr>
<tr class="td_pressure_data">
<td> </td>
<td><script>pressinHg = <#press> * 0.02953;document.write(pressinHg.toFixed(2));</script> inHg</td>
<td> </td>
<td><script>presstrendvalinHg = <#presstrendval> * 0.02953;document.write(presstrendvalinHg.toFixed(2));</script> inHg/hr</td>
</tr>
<tr class="td_pressure_data">
<td> </td>
<td><script>presskPa = <#press> * 0.1;document.write(presskPa.toFixed(2));</script> kPa</td>
<td> </td>
<td><script>presstrendvalkPa = <#presstrendval> * 0.1;document.write(presstrendvalkPa.toFixed(2));</script> kPa/hr</td>
</tr>
<tr class="td_pressure_data">
<td> </td>
<td><script>pressmmHg = <#press> * 0.75;document.write(pressmmHg.toFixed(1));</script> mmHg</td>
<td> </td>
<td><script>presstrendvalmmHg = <#presstrendval> * 0.75;document.write(presstrendvalmmHg.toFixed(1));</script> mmHg/hr</td>
</tr>