For this article in our VE Python series we look at accessing weather data & calculating degree days.
What?
Two scripts ... a module for calculating degree days which then call from a separate s cript to demonstrate the use of modular code.
Why?
Shows the use the WeatherFileReader API to call the data; we use slices on the list data to carry out the degree day calculations. As this calculation may well be called from many scripts it is practical to add this as a function to an external module; it is then easier to use again and maintain.
Check out the full guide here.
You can also view sample weather and degree day files here: www.iesve.com/support/faq/zip/weather-and-degree-days.zip
You can view other articles in my VE Python series HERE.