Question-and-Answer Resource for the Building Energy Modeling Community
Get started with the Help page
Ask Your Question

Edit long output variable names in EnergyPlus

asked 2024-01-24 06:19:38 -0500

Zakaria's avatar

Hello community,

I'm currently working with EnergyPlus, and I am facing an issue with the output variables in the CSV files. I have defined numerous outputs, and during postprocessing using Matlab, I've encountered a problem where some output headers in the CSV file are too long, exceeding the maximum Matlab variable name length. As a result, Matlab truncates the variable names, making it challenging to distinguish between different variables during analysis..

I'm wondering if there is a way to modify the output variable names directly in EnergyPlus to make them more manageable for Matlab postprocessing.

Any insights or suggestions would be greatly appreciated!

edit retag flag offensive close merge delete

1 Answer

Sort by ยป oldest newest most voted

answered 2024-01-26 09:33:49 -0500

altamar's avatar

updated 2024-01-26 09:34:15 -0500

I can imagine two solutions:

1) Read from the SQL, from there, the name of the variables are "decomposed' and you can shorten it.

2) Use Python, i have written a package that reads the SQL and renames common variables, and also Python and Pandas do not have issues with the extension of the names. Take a look at my package, specifically to the function read_sql,

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Training Workshops


Question Tools

1 follower


Asked: 2024-01-24 06:19:38 -0500

Seen: 115 times

Last updated: Jan 26