How to export results from IES using Python

How to export results from IES using Python

This post looks at how to export results from the IES building simulation software using Python.

Why do this?

The results of an IES building simulation can be viewed in the software itself but for professional reports or academic publications it can be useful to export the data and use another tool such as Excel or Python to create figures and tables of the results.

What is this?

I have written a Python script which runs inside the IES software. When run, the following happens:

  • The user is asked to select a IES results file (.aps) in the current project.
  • The script exports all of the results data.
  • The following data is saved as CSV files: Weather results; Room-level results; Apache system results; Building-level results; Surface-level results; and Opening-level results.

Here is an example for the Small Office starter geometry building in IES. The Python script exports 85 individual CSV files.

Article content
Windows File Explorer screenshot of the CSV files created for the Small Office starter geometry building.

How to access this Python script?

The script is saved in a file named "ExportResultsToCSV.py". It can be downloaded from GitHub here.

How to add the Python script into my IES installation?

  • Download the Python script to a local folder
  • In IES, use the menu options: Tools / VEScripts
  • In the file explorer box (left hand box), right click then select "Add script folder" -> select the folder where the Python script is saved.

The Python script should now be visible and available to run.


Article content
The ExportResultsToCSV Python script shown in the IES Python Editor.

For easy access, right click on the Python script file and select "Promote to Navigator".


Article content
The ExportResultsToCSV Pythson script shown in the IES Navigator.

Next steps

  • For more information on using Python with IES, please see this post.
  • View the IES technical documentation on its Python API here.
  • Any issues please let me know. I will update the Python script file on GitHub as needed.
  • Any requests for other Python scripts for IES? Please contact me.

Hi Steven I always find your work fascinating! I'm currently developing grey-box models using Python, and I think it would be a great move to extract building construction and geometry data from an IES model, export it to a CSV file, and then process it in Python to calculate grey-box parameters. This could help link grey-box modelling with BIM, right? Would you be interested in discussing this further?

Like
Reply

Thanks for sharing. Would the script also export results for custom variables?

Like
Reply

To view or add a comment, sign in

More articles by Steven Firth

  • How to plot temperature results in IES using Python

    This post looks at how to use Python to plot temperature data results from an IES building model. What is this? An IES…

    1 Comment
  • How to hack a SAP 10 calculation

    This article provides instructions for "hacking" a Standard Assessment Procedure version 10 (SAP 10) calculation for…

    6 Comments
  • How to run a SAP 10 calculation in Excel

    This article looks at using an Excel workbook to run SAP 10.2 energy calculations for new and existing dwellings.

    1 Comment
  • How to run a SAP 10 calculation in Python

    This post shows how to use the sap10calcs Python package to run a Standard Assessment Procedure 10.2 (SAP10)…

    8 Comments
  • How to run the Home Energy Model

    This article looks at how to run an energy calculation using the latest available version of the Home Energy Model…

    4 Comments

Others also viewed

Explore content categories