30yr average on HDD/CDD

  • 1
  • Question
  • Updated 5 years ago
I need to get a 30yr average on Cooling Degree/Heating Degree days for a particular zipcode and Month/Year. Can one get this from the weather Underground API? If so, is there a code example somewhere or can someone show me how to achieve this?
Photo of stellemd

stellemd

  • 3 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of WunderWilliam

WunderWilliam

  • 267 Posts
  • 18 Reply Likes
You can use the historical data request, which includes CDD and HDD for most major locations.

Here's documentation on history requests:

http://www.wunderground.com/weather/a...

Since each historical call can only provide data for one location on one day, you would need to create a script to increment the date over the 30 years. You would also need to parse the data for the CDD / HDD numbers, and average the return out. I can't really help you with that side of this, but I can help you with the API request itself.