View previous topic :: View next topic |
Author |
Message |
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Tue Dec 20, 2005 12:12 pm Post subject: Starting Precip Dials at 0? |
|
|
Not sure which section this should be in.. so I'll start it here, if you think it should be somewhere else that's cool.
I've been wondering lately why the precip dials have negative values? I thought, "how can you have negative rain?!"? Then I looked at some of the other webpages in the other forum, and saw they had negative value.
Does Rain fall Up in Texas? I knew you were a little backwards down there.. but come on, it's not Australia!
My real question is... using the user-image files... is there a way to change the dials so that they start at zero and perhaps have smaller increments?
I'd like to have, for example, my daily gauge go from 0 - 6cm in .5cm increments. But it seems by the example in images.c that there isn't a way to affect the increments.
Any help greatly appreciated.
(edit: I ask because today is a typical (finally!) rainy winter day in Port Alberni... already had over 42mm of rain and still going... and that's peanuts for here... but the gauge is almost PINNED! )
http://weather.chrisale.info |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Tue Dec 20, 2005 1:25 pm Post subject: |
|
|
The "Precip" dials are intended to represent Rain (minus) ET. ET is in effect negative precipitation. If you don't have a solar sensor for your Vantage Pro, they become simply rain dials. "Precip" represents "net precipitation" for a given period.
When your rain exceeds the "pegged" value of the dial, it will increase in units automatically.
There is a way for you to have 0 index "Rain" dials - develop them yourself using the "Precip" dials as a guide. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Tue Dec 20, 2005 2:24 pm Post subject: |
|
|
aahh... right, that makes sense.
A Solar radiation upgrade is on next years christmas list. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Tue Dec 20, 2005 4:31 pm Post subject: |
|
|
Right... I've figured that out now... Made the appropriate additions to the htmlGenerate.c file
Because I'm expressing my precip amount in mm instead of cm I didn't have to change any of the original dial indexes, i simply added additional indexes that started from 0 and had various scales with max values of 50, 100, 200, 500, and 1000
Had some trouble deciphering exactly how to calculate the correct value for the "baserain" and "mult" variables for each instance... but I think I've got it now.
Is there a formula you use to get those values? I initially thought 330 degrees/#values for the "mult" but I think I'm off on that. |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Tue Dec 20, 2005 4:49 pm Post subject: |
|
|
one final question..
does that mean that if I were to get the ET addition then all the precip graphs would potentially reflect the "net" precipation rather than simply what's fallen from the sky? |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Tue Dec 20, 2005 4:55 pm Post subject: |
|
|
All that follows only pertains to the precip dials - the other dials have different scaling...
baseRain is the value at the bottom of the dial (not labeled) for a given scaling. Each tick of the dial is 30 angular degrees. It is the absolute value of that tick.
So for the case of -2.5 cm to 2.5 cm on the dial, each tick = 0.5 cm change, so the bottom tick = -3.0 cm (not displayed), total around the dial of 6 cm of rain, thus:
mult = 360/6 = 60 (degrees in circle / total cm represented)
This is number of angular degrees per cm.
baseRain = abs(-2.5 - 0.5) = abs(-3.0) = 3.0
HTH,
Mark |
|
Back to top |
|
|
mteel
Joined: 30 Jun 2005 Posts: 435 Location: Collinsville, TX
|
Posted: Tue Dec 20, 2005 4:58 pm Post subject: |
|
|
There are no "Precip" Graphs - just "Precip" dials. The graphs are labeled "Rain" and only reflect rainfall. There are separate graphs for ET and Solar Radiation (see my site).
Mark |
|
Back to top |
|
|
chrisale
Joined: 09 Nov 2005 Posts: 187
|
Posted: Tue Dec 20, 2005 11:03 pm Post subject: |
|
|
cool that's what I needed to know.
thanks |
|
Back to top |
|
|
|