First time here? Check out the Help page!

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 8 years ago

Chienman's avatar

updated 7 years ago

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).

Preview: (hide)

Comments

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

__AmirRoth__'s avatar __AmirRoth__  ( 8 years ago )

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  ( 7 years ago )

4 Answers

Sort by » oldest newest most voted
4

answered 8 years ago

updated 8 years ago

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.

Preview: (hide)
link

Comments

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

dhollman's avatar dhollman  ( 7 years ago )
4

answered 8 years ago

updated 8 years ago

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.

Preview: (hide)
link
3

answered 8 years ago

Chienman's avatar

updated 8 years ago

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...

Preview: (hide)
link
1

answered 8 years ago

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

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

3 followers

Stats

Asked: 8 years ago

Seen: 934 times

Last updated: Sep 26 '16