View previous topic :: View next topic |
Author |
Message |
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Thu Nov 17, 2005 4:08 pm Post subject: Bogus "Temperature Change" value? |
|
|
If you go to my almanac page... you'll see strange numbers of the "temperature change" values.
http://weather.chrisale.info/almanac.htm
Hour Change: -18.1 C
Day Change: -19.7 C
Yet the temperature has only changed by a degree or two... you'll see strange values for some of the other properties as well.
The graphs and dials seem OK... and my almanac.htx file has these in for the values:
Code: |
<div><!--hourchangetemp--><!--tempUnit--></div>
<div><!--daychangetemp--><!--tempUnit--></div>
|
Is there something I"m missing? |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Wed Nov 23, 2005 11:32 am Post subject: |
|
|
I still haven't been able to uncover what's going on with these temperature change values. I thought maybe it was another weird metric conversion error but that doesn't seem to add up.
any ideas? |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Wed Nov 23, 2005 1:38 pm Post subject: |
|
|
Quote: | I thought maybe it was another weird metric conversion error ... | Well, first identify the other wierd metric conversion error...
There may be something strange going on (for metric values) in the recently added computed data code, which generates the values you are referring to. I will look at it when I get a chance. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Fri Nov 25, 2005 11:12 am Post subject: |
|
|
just a quick question about the conversions in htmlGenerate.c
Is the data converted/worked on before or after it is stored in the WLK archive? IOW, I assume you store the raw WX archive first... then work on the data for the html generator and other daemons?
Oh.. and is there a way I could feed the daemon mock data without having a WX actually plugged into the system (ie. how do you test your source code )
Thanks!
Chris |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Fri Nov 25, 2005 12:09 pm Post subject: |
|
|
Quote: | Is the data converted/worked on before or after it is stored in the WLK archive? IOW, I assume you store the raw WX archive first... then work on the data for the html generator and other daemons? |
Always stored in the WLK archive by wviewd first - htmlgend generates based on the WLK data.
Quote: | Oh.. and is there a way I could feed the daemon mock data without having a WX actually plugged into the system (ie. how do you test your source code Smile ) |
I have a Vantage Pro 2 (http://www.weather.teel.ws/). No there is not a way to simulate a WX station - see the Wishlist Forum, already been requested some time ago (and will be some time before it might be implemented). |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Fri Nov 25, 2005 12:44 pm Post subject: |
|
|
Could it be that it's converting it twice?
I've commented out the metric conversions and simply pasted in the regular calculations for the following cases in htmlGenerate.c
case 104: hourchangetemp
case 108: hourchangedewpt
case 117: daychangetemp
case 121: dauchangedewpt
case 130: weekchangetemp
case 134: weekchangedewpt
They all seemed to be converting to metric with values that were already in metric.
Ill monitor the results and check if they're accurate now and get back to you. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Fri Nov 25, 2005 1:21 pm Post subject: |
|
|
ok, no worries on the testing. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Fri Nov 25, 2005 1:28 pm Post subject: |
|
|
Ya, I think I can definitely confirm that at least for the weekly dewpoint and temp change it was converting a value that was already in Celsius.
I have no weekly data yet... so the correct value should be 0 degrees.
0 degrees Fahrenheit, is -17.7 degrees Celsius.
-17.7 was the value it was generating before I commented out the conversion. |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Fri Nov 25, 2005 9:36 pm Post subject: |
|
|
OK, but that may not be the right place to fix it - I'll have to look at it closer first.
Thanks for doing the investigation on it... |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Fri Nov 25, 2005 10:55 pm Post subject: |
|
|
ya... i agree, you got a ton of code in there... I'm just guessing but it seems to have at least made some difference, hopefully i'm on the right track
thanks! |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Sat Nov 26, 2005 8:03 am Post subject: |
|
|
AHA!
I don't believe it is converting an "already metric" value, rather we are talking about *differences* or deltas here, and I am converting a delta of -1 F to the absolute Celsius equivalent for -1 F instead of just converting to how many Celsius degrees 1 degree F is...
I will fix that now... |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Sat Nov 26, 2005 10:01 am Post subject: |
|
|
Fixed!
Look for version 1.8.5 to be out this weekend... |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Sat Nov 26, 2005 11:55 am Post subject: |
|
|
Awesome! Thanks! |
|
Back to top |
|
|
|