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

open source epw file interpreter exists (to parse and turn into classes for easy use)?

asked 2016-05-25 10:17:58 -0600

Chienman's avatar

updated 2017-05-29 09:32:50 -0600

Just curious if there are any open source projects for grabbing an epw file and turning it into classes with simple commands to extract and make use of the data (in any language).

edit retag flag offensive close merge delete

Comments

Elements probably has an internal data model that you could potentially extract and use as a library.

__AmirRoth__'s avatar __AmirRoth__  ( 2016-05-25 12:32:03 -0600 )edit

Elements seems to be written in Flash / ActionScript or something like that; so unless that is the development platform or can interface with that code, it may not be possible to utilize it.

dhollman's avatar dhollman  ( 2018-01-12 07:51:47 -0600 )edit

4 Answers

Sort by ยป oldest newest most voted
4

answered 2016-05-25 13:34:35 -0600

updated 2016-05-25 13:43:07 -0600

OpenStudio provides some basic capabilities to parse the EPW and return data in a couple different forms. I don't have a great example of the usage, but here is a link to the unit test that demonstrates (kind of) what can be done using the Ruby bindings.

You can access individual rows in the file, most of the header content, and you can get OpenStudio time series objects for the columns.

edit flag offensive delete link more

Comments

I think this is the class you have in mind: https://openstudio-sdk-documentation....

dhollman's avatar dhollman  ( 2017-09-19 10:43:34 -0600 )edit
4

answered 2016-06-15 13:10:06 -0600

updated 2016-09-26 15:46:52 -0600

I've found the following epw file parsers:

python

javascript

  • (EDIT): I made an epw2json script for epwvis.

There are also some tools in the OpenStudio ruby SDK.

Haven't found any opensource C# or C++ ones yet. Seems pretty straightforward. Just reference the epw.idd.

edit flag offensive delete link more
3

answered 2016-05-27 19:20:48 -0600

Chienman's avatar

updated 2016-05-27 19:27:56 -0600

Hi Everybody-

Thanks for your feedback. For what it is worth, I couldn't find anything that could quickly meet my needs, but all of your help and comments helped point me in the right direction. Good to see people posting comments!

Anyhow, since I'm really pretty wedded to the .NET environment, and I'm familiar with those code libraries and dependencies, I just decided that it would be easiest to make a library that I wanted with the functionality that meet my current use cases and publish it on Github. This first version lets you grab data from any epw file and returns the hourly data with some statistical analysis of the data. Github explains the rest. I'll be adding to the project over the next couple of days.

https://github.com/chiensiTB/EnergyPl...

edit flag offensive delete link more
1

answered 2016-05-25 14:16:16 -0600

I've not used it myself (yet) but you could take a look at pyepw.

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

Careers

Question Tools

3 followers

Stats

Asked: 2016-05-25 10:17:58 -0600

Seen: 904 times

Last updated: Sep 26 '16