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

Edit long output variable names in EnergyPlus

asked 1 year ago

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!

Preview: (hide)

1 Answer

Sort by » oldest newest most voted
1

answered 1 year ago

altamar's avatar

updated 1 year ago

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, https://github.com/AltamarMx/iertools...

Preview: (hide)
link

Your Answer

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

Add Answer

Training Workshops

Careers

Question Tools

1 follower

Stats

Asked: 1 year ago

Seen: 239 times

Last updated: Jan 26 '24