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

Run Weather Statistics and Conversions tool (EnergyPlus) from Python

asked 2017-11-23 03:00:47 -0600

Gio gravatar image

updated 2017-11-27 10:12:39 -0600

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.

edit retag flag offensive close merge delete

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 gravatar image TomB  ( 2017-11-23 22:18:16 -0600 )edit

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 gravatar image Gio  ( 2017-11-25 08:28:20 -0600 )edit

Are you talking about Weather.exe?

JasonGlazer gravatar image JasonGlazer  ( 2017-11-27 10:19:01 -0600 )edit

@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 gravatar image Julien Marrec  ( 2017-11-28 07:56:31 -0600 )edit

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

Gio gravatar image Gio  ( 2017-11-28 08:32:39 -0600 )edit

1 Answer

Sort by ยป oldest newest most voted
3

answered 2017-11-28 08:34:23 -0600

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.

edit flag offensive delete link more

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 gravatar image Gio  ( 2017-11-28 08:55:43 -0600 )edit

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 gravatar image JasonGlazer  ( 2017-11-28 09:01:09 -0600 )edit

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

Gio gravatar image Gio  ( 2017-11-28 09:08:20 -0600 )edit

Your Answer

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

Add Answer

 

Question Tools

1 follower

Stats

Asked: 2017-11-23 03:00:47 -0600

Seen: 1,302 times

Last updated: Nov 28 '17