OK, if there is still someone 'lurking' into this forum...
I need some assistance...
As I expressed in a previous message, the forecast phrases/terms produced by Cumulus are somewhat very outdated (circa 1915) and not very representative (in an easy to understand language) of what the weather is really like outside...
So, I need to assistance to 'translate' the following phrases/terms into 'simple' english phrases/terms that really represent what the weather forecast is.
Here are the phrases/terms to be 'translated':
Code: Select all
0: $curcond = 'Not available';
1: $curcond = 'Settled fine';
2: $curcond = 'Fine weather';
3: $curcond = 'Becoming fine';
4: $curcond = 'Fine,becoming less settled';
5: $curcond = 'Fine,possible showers';
6: $curcond = 'Fairly fine,improving';
7: $curcond = 'Fairly fine,possible showers early';
8: $curcond = 'Fairly fine,showery later';
9: $curcond = 'Showery early,improving';
10: $curcond = 'Changeable,mending';
11: $curcond = 'Fairly fine,showers likely';
12: $curcond = 'Rather unsettled clearing later';
13: $curcond = 'Unsettled,probably improving';
14: $curcond = 'Showery,bright intervals';
15: $curcond = 'Showery,becoming less settled';
16: $curcond = 'Changeable,some precipitation';
17: $curcond = 'Unsettled,short fine intervals';
18: $curcond = 'Unsettled,precipitation later';
19: $curcond = 'Unsettled,some precipitation';
20: $curcond = 'Mostly very unsettled';
21: $curcond = 'Occasional precipitation,worsening';
22: $curcond = 'Precipitation at times,very unsettled';
23: $curcond = 'Precipitation at frequent intervals';
24: $curcond = 'Precipitation,very unsettled';
25: $curcond = 'Stormy,may improve';
26: $curcond = 'Stormy,much precipitation';
The phrases/terms must fit within eleven (11) possible categories:
Code: Select all
$sunny
$partlycloudy
$scattered
$mostlycloudy
$overcast
$thunderclouds
$drizzle
$raining
$snowing
$misty
$rainstopped
Categories can contain more than one condition ('$curcond') and categories can be empty.
Here is what I have done so far (but, at times, the forecasts are way off):
Code: Select all
$sunny
1: // Settled fine
2: // Fine weather
$partlycloudy
3: // Becoming fine
4: // Fine,becoming less settled
10: // Changeable, mending
$scattered
5: // Fine,possible showers
7: // Fairly fine,possible showers early
8: // Fairly fine,showery later
9: // Showery early,improving
11: // Fairly fine,showers likely
14: // Showery,bright intervals
$mostlycloudy
6: // Fairly fine,improving
12: // Rather unsettled clearing later
13: // Unsettled,probably improving
17: // Unsettled,short fine intervals
$overcast
15: // Showery,becoming less settled
16: // Changeable,some precipitation
18: // Unsettled,precipitation later
19: // Unsettled,some precipitation
20: // Mostly very unsettled
$thunderclouds
26: // Stormy,much precipitation
$drizzle
//case 15: // Showery,becoming less settled // moved to $overcast
$raining
21: // Occasional precipitation,worsening
22: // Precipitation at times,very unsettled
23: // Precipitation at frequent intervals
24: // Precipitation,very unsettled
25: // Stormy,may improve
$snowing
nothing
$misty
nothing
Assistance would be greatly appreciated.
As for the 'cloudbase' script ... I have made a large number of changes and those changes are causing me some troubles. I will have to rethink my modifications and streamline the code so the processing of the cloud height is all in metric while accepting input data in either metric or imperial and producing output data in either metric or imperial...
I have also added the 'cloudbase' script into the 'ajax-dashboard.php' script and partially into the 'ajaxCUwx.js' script...
