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

results extraction CSVs

asked 2 years ago

qirachel's avatar

updated 2 years ago

Hi,

I am trying to exact this circled value from the report 'Component Cost Economics Summary' in the eplustbl.csv output file. However, I have no idea how to differentiate the row from the others since they all start with "--".

Any ideas on how to solve this problem? Thanks in advance :)

image description

Preview: (hide)

2 Answers

Sort by » oldest newest most voted
2

answered 2 years ago

Assuming this is an EnergyPlus output table, I would recommend using the SQL output file and executing a query such as

SELECT Value FROM TabularDataWithStrings WHERE TableName = ...

This could be accomplished with a Python script using the sqlite3 library.

Preview: (hide)
link
1

answered 2 years ago

Jim Dirkes's avatar

Making some assumptions: 1) You're using EnergyPlus

2) It appears you've imported the data into Excel, since there are no commas separating each field

3) an Excel Vlookup(datarange,linenumber,7) should work (or something similar)

4) If you're trying to extract the data from another software, a similar lookup function should be available

ps, the format of eplustbl files varies depending on the reports you specify. For a particular set of reports, though, the format will remain stable and you can make your formula appropriately.

Another idea: I use a macro for extracting tariff information which first looks for a unique text string, then offsets specific rows and columns for the data I'm interested in

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: 2 years ago

Seen: 214 times

Last updated: Apr 18 '22