Author Topic: "% temperature" and other interesting statistics  (Read 2677 times)

0 Members and 1 Guest are viewing this topic.

Offline m77

  • Forecaster
  • *****
  • Posts: 878
"% temperature" and other interesting statistics
« on: September 11, 2010, 04:32:11 PM »
I have a script that looks back at all my temperature records and calculates how many records are above the current temperature, in %.

I have never seen this done elsewhere but find it an interesting statistic to look at.

I have it in brackets after both my outside and inside temperature at Www.maidenerleghweather.com/111.php which is a very basic screen that I look at and follow.

For example a value of 100% means bottom of the pile and it is the lowest temp on record.

50% means half of all temps are above and below.

« Last Edit: September 12, 2010, 02:52:29 AM by m77 »
Weatherlink ip, Vantage Vue,

Offline Cienega32

  • Forecaster
  • *****
  • Posts: 2635
    • East Mesa Weather
Re: "% temperature"
« Reply #1 on: September 11, 2010, 05:45:57 PM »
I like stats like that - the obscure type of "I wonder how many or median - " curiosities. I think anyone that is into "numbers" or general data would enjoy your usage - I know I do!

Since last year, I've been trying to finish a basic count & first/last script for my temps but you know how that goes - you keep coming up with another "thought" which turns into things like  http://www.lascruces-weather.com/wxtempdatathismonth_F7.php  being pulled from each month's link in this screen:


etc.  etc.  etc.

I put the yearly "AVG Temps" breakdown on the back-burner after the Highs & Lows but you may have inspired me to finish that...  #-o

Pat ~ Davis VP2 6153-Weatherlink-Weather Display-StartWatch-VirtualVP-Win7 Pro-64bit
www.LasCruces-Weather.com   www.EastMesaWeather.com

Offline m77

  • Forecaster
  • *****
  • Posts: 878
Re: "% temperature"
« Reply #2 on: September 12, 2010, 02:50:37 AM »
That's great!

I am working on stats such as

Days since .......

Rain
Higher than 30 celcius,
25, 20, 15 etc
Lower than 30, 25, 20 etc etc

I already have scripts that work out all time temp averages, monthly averages etc...

I like to compare the month as it progresses to last month and the year etc...

Weatherlink ip, Vantage Vue,

Offline Cienega32

  • Forecaster
  • *****
  • Posts: 2635
    • East Mesa Weather
Re: "% temperature" and other interesting statistics
« Reply #3 on: September 12, 2010, 04:54:25 AM »
Yeah, that's something like what I've being doing with my monthly script but using the last date it happened not with "how many days". Right now, I have it showing the basic data for every "This Day" in my history and every "This month" as well. And, of course the current data.

Right now, my rain breaks down how many days with x amount of rain, breaking it down into different amounts. When it's currently raining, it'll show the rate and total at that moment. I don't get much rain here so that one is in a holding pattern right now. I got the basics I want in it at this point. The temp analysis is more important to me right now, with all the crazy weather everywhere.

I've been gearing those scripts to my WeatherLink files and WLink generated NOAA files but I did put in an option for the Weather Display history files. I also need to make it "universal" instead of just America - actually, the south west desert area's climate - in case somebody else might want it.

I'm looking forward to see your finished product - sounds interesting.

Pat ~ Davis VP2 6153-Weatherlink-Weather Display-StartWatch-VirtualVP-Win7 Pro-64bit
www.LasCruces-Weather.com   www.EastMesaWeather.com

Offline m77

  • Forecaster
  • *****
  • Posts: 878
Re: "% temperature" and other interesting statistics
« Reply #4 on: September 12, 2010, 06:06:10 AM »
Progress can be seen at

Www.maidenerleghweather.com/11.php

I have the date bit cracked as you can see.......

I am struggling to work out the number of days between though.......

Strtodate(last) - strtodate(first) divided by 60 divided by 60 divided by 24 doesn't seem to be correct.

Weatherlink ip, Vantage Vue,

Offline m77

  • Forecaster
  • *****
  • Posts: 878
Re: "% temperature" and other interesting statistics
« Reply #5 on: September 12, 2010, 11:31:58 AM »
Maybe I should be using

Strtotime instead of strtodate?
Weatherlink ip, Vantage Vue,

Offline Cienega32

  • Forecaster
  • *****
  • Posts: 2635
    • East Mesa Weather
Re: "% temperature" and other interesting statistics
« Reply #6 on: September 12, 2010, 07:09:49 PM »
See if this reference helps you any:

http://www.php.net/manual/en/datetime.diff.php

Pat ~ Davis VP2 6153-Weatherlink-Weather Display-StartWatch-VirtualVP-Win7 Pro-64bit
www.LasCruces-Weather.com   www.EastMesaWeather.com

Offline Bushman

  • Forecaster
  • *****
  • Posts: 7549
    • Eagle Bay Weather
Re: "% temperature" and other interesting statistics
« Reply #7 on: September 12, 2010, 09:51:05 PM »
NOAA charts on steroids.  Nice.
Need low cost IP monitoring?  http://wirelesstag.net/wta.aspx?link=NisJxz6FhUa4V67/cwCRWA or PM me for 50% off Wirelesstags!!

Offline Cienega32

  • Forecaster
  • *****
  • Posts: 2635
    • East Mesa Weather
Re: "% temperature" and other interesting statistics
« Reply #8 on: September 13, 2010, 12:43:17 AM »
NOAA charts on steroids.  Nice.

I like that!

Pat ~ Davis VP2 6153-Weatherlink-Weather Display-StartWatch-VirtualVP-Win7 Pro-64bit
www.LasCruces-Weather.com   www.EastMesaWeather.com

Offline m77

  • Forecaster
  • *****
  • Posts: 878
Re: "% temperature" and other interesting statistics
« Reply #9 on: September 18, 2010, 09:06:23 AM »
ok, all the stats i am interested in - fully completed (until the next time!)

pretty proud of my scripting skills!

http://www.maidenerleghweather.com/11.php
Weatherlink ip, Vantage Vue,

Offline Cienega32

  • Forecaster
  • *****
  • Posts: 2635
    • East Mesa Weather
Re: "% temperature" and other interesting statistics
« Reply #10 on: September 18, 2010, 02:44:31 PM »
You'll find that "the next time" comes a lot sooner than you originally anticipated!  :-P

You've come a long way in the last month! Nice job  =D> - now onward to presentation.

Pat ~ Davis VP2 6153-Weatherlink-Weather Display-StartWatch-VirtualVP-Win7 Pro-64bit
www.LasCruces-Weather.com   www.EastMesaWeather.com

Offline m77

  • Forecaster
  • *****
  • Posts: 878
Re: "% temperature" and other interesting statistics
« Reply #11 on: September 18, 2010, 03:18:03 PM »
Thanks.

Any 'different' stats that you use or I have missed?
Weatherlink ip, Vantage Vue,