2,046
edits
|
<pre>
Psat1980 EVAL [ 6.112 * EXP(17.67*Temperature/(243.5+Temperature)) ]
WetBulbTemp Eval [ (0.00066 * Pressure * Temperature + 4098 * Psat1980 / Pow( (Dewpoint + 237.7), 2) * Dewpoint) /
</pre>
''Psat1980'' will be substituted into the ''WetBulbTemp'' equation when needed so it will calculate with Temperature but it required to be the ''Dewpoint'' calculation as you can see from ''CMX svpDP'' function. To account for this issue a Psat1980 equation specifically for the dewPoint needs to be created. So, to calculate the WetBulbTemp correctly, we have to do:
; Specifically for the Wet Bulb Calculation: Psat at Dewpoint
dewpointPsat1980 EVAL [ 6.112 * EXP(17.67*Dewpoint/(243.5+Dewpoint)) ]
WetBulbTemp Eval [ (0.00066 * Pressure * Temperature + 4098 * dewpointPsat1980 / Pow( (Dewpoint + 237.7), 2) * Dewpoint) /
(0.00066 * Pressure + 4098 * dewpointPsat1980 / Pow((Dewpoint + 237.7),2)) ]
▲WetBulbTemp Eval [ (0.00066 * Pressure * Temperature + 4098 * dewpointPsat1980 / Pow( (Dewpoint + 237.7), 2) * Dewpoint) / (0.00066 * Pressure + 4098 * dewpointPsat1980 / Pow((Dewpoint + 237.7),2)) ]
</pre>
The CUtils compiler then takes the rest and creates the correct javascript function required for Highcharts.
This took 5 years before
[[Category:CumulusUtils]]
| |||