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

Run Weather Statistics and Conversions tool (EnergyPlus) from Python

asked 7 years ago

Gio's avatar

updated 7 years ago

I made some epw files with python and I need to run them with the Wheather Statistics and Conversions tool to be able to run the E+ simulation.

Is there a way to run it from a python script?

I need to do it more than 500 times.

Preview: (hide)

Comments

1

if they are .epw files, why do you need to convert them? if they are not in the required format for e+, perhaps it will be easier to fix that using your python method, rather than find a way to batch run the e+ weather utility...?

TomB's avatar TomB  ( 7 years ago )

Because I created an epw file with a couple of errors I couldn't fix: the weather converter fixed them automatically. Finally, I was able to find the error so it works. Secondly I was also interested to ddy audit and stat files...

Gio's avatar Gio  ( 7 years ago )

Are you talking about Weather.exe?

JasonGlazer's avatar JasonGlazer  ( 7 years ago )

@JasonGlazer: I bet he is indeed talking about https://github.com/NREL/EnergyPlus/tr... (bonus question that I have: why are these utilities in "/bin/" already compiled? They become blackboxes, atop of only being usable on windows. Are these non open-source or just old?)

Julien Marrec's avatar Julien Marrec  ( 7 years ago )

Yes, the executable file should be "weather.exe"

Gio's avatar Gio  ( 7 years ago )

1 Answer

Sort by » oldest newest most voted
3

answered 7 years ago

The Weather Converter Program (often just called Weather) which comes with EnergyPlus is documented here. The program can accept individual weather files to process or a list of files. To process a list of files, create a file with a text editor with the extension .LST and follow the instructions from that link on the specific columns or use of tabs between the input and output file names.

If you are a programmer, an alternative is to use the same DLL that the Weather program uses called EPlusWth.dll which is documented here.

Preview: (hide)
link

Comments

So you advise me not to call "weather.exe" in python but to use this .LST text file, right? As I see from the documentation, I can only run 45 station at a time...

Gio's avatar Gio  ( 7 years ago )

I do not think there is a limit to the number of weather files being processed in a LST file. The 45 is related to the column number in the file if you aren't using tabs between the input and output file names

JasonGlazer's avatar JasonGlazer  ( 7 years ago )

Ok, this can be a valid alternative. Thank you!

Gio's avatar Gio  ( 7 years ago )

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

Seen: 2,119 times

Last updated: Nov 28 '17