Python in the VE: VE Scripts – Accessing Weather Data & Calculating Degree Days

Date Published

30th Mar 2022

Richard Quincey
Technical Director

For this article in our VE Python series we look at accessing weather data & calculating degree days.

Two scripts ... a module for calculating degree days which then call from a separate s cript to demonstrate the use of modular code.

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:

Latest from DiscoverIES