wviewweather.com Forum Index wviewweather.com
wview and Weather Topics
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Bogus "Temperature Change" value?

 
Post new topic   Reply to topic    wviewweather.com Forum Index -> Troubleshooting
View previous topic :: View next topic  
Author Message
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Thu Nov 17, 2005 4:08 pm    Post subject: Bogus "Temperature Change" value? Reply with quote

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
View user's profile Send private message MSN Messenger
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Wed Nov 23, 2005 11:32 am    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Wed Nov 23, 2005 1:38 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Fri Nov 25, 2005 11:12 am    Post subject: Reply with quote

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 Smile )

Thanks!

Chris
Back to top
View user's profile Send private message MSN Messenger
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Fri Nov 25, 2005 12:09 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Fri Nov 25, 2005 12:44 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Fri Nov 25, 2005 1:21 pm    Post subject: Reply with quote

ok, no worries on the testing.
Back to top
View user's profile Send private message MSN Messenger
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Fri Nov 25, 2005 1:28 pm    Post subject: Reply with quote

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
View user's profile Send private message MSN Messenger
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Fri Nov 25, 2005 9:36 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Fri Nov 25, 2005 10:55 pm    Post subject: Reply with quote

ya... i agree, you got a ton of code in there... I'm just guessing Smile but it seems to have at least made some difference, hopefully i'm on the right track


thanks!
Back to top
View user's profile Send private message MSN Messenger
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Sat Nov 26, 2005 8:03 am    Post subject: Reply with quote

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... Embarassed
Back to top
View user's profile Send private message Send e-mail Visit poster's website
mteel



Joined: 30 Jun 2005
Posts: 435
Location: Collinsville, TX

PostPosted: Sat Nov 26, 2005 10:01 am    Post subject: Reply with quote

Fixed!

Look for version 1.8.5 to be out this weekend...
Back to top
View user's profile Send private message Send e-mail Visit poster's website
chrisale



Joined: 09 Nov 2005
Posts: 187

PostPosted: Sat Nov 26, 2005 11:55 am    Post subject: Reply with quote

Awesome! Thanks!
Back to top
View user's profile Send private message MSN Messenger
Display posts from previous:   
Post new topic   Reply to topic    wviewweather.com Forum Index -> Troubleshooting All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group