First time here? Check our help page!
2

Edit EPW file to remove Solar Radiation and Wind

Hi,

I am trying to manually edit a TMY3 epw file to set solar radiation and wind speed to 0 for each timestep throughout the year.

I tried using Elements, but I can only edit one cell at a time.

I also tried using Excel, but there are no column headers when I open the file using comma separated values, so I don't know which variable corresponds to which column of data.

I could not use the WeatherConverter Weather.exe application in EnergyPlus folder because my computer threw an error.

image description

Is there a way to convert epw to csv without using the WeatherConverter? Is there a way to use Elements to easily set the entire annual timeseries for a variable to 0?

sashadf1's avatar
1.1k
sashadf1
asked 2021-03-31 05:12:24 -0500
shorowit's avatar
11.8k
shorowit
updated 2021-03-31 07:36:35 -0500
edit flag offensive 0 remove flag close merge delete

Comments

I ended up using an awk script to automate the changes.

sashadf1's avatar sashadf1 (2021-03-31 10:11:35 -0500) edit

Which version of E+ are you using, and how did you install it? (from the .exe or just extracted the .zip one?)

Julien Marrec's avatar Julien Marrec (2021-04-01 02:59:46 -0500) edit

I am using E+ v9.2, and installed it with OpenStudio + PAT download.

sashadf1's avatar sashadf1 (2021-04-01 03:59:34 -0500) edit
add a comment see more comments

1 Answer

1

You need to install EnergyPlus separately.

OpenStudio doesn't install these OCX / DLL.

Get the latest EnergyPlus 9.5.0 at https://github.com/NREL/EnergyPlus/re..., and install that.

The weather converter will work after that (whether it'd be the one installer with 9.5 or the 9.2 one inside your OpenStudio install directory)

Julien Marrec's avatar
29.7k
Julien Marrec
answered 2021-04-01 08:03:56 -0500
edit flag offensive 0 remove flag delete link

Comments

I installed EnergyPlus v9.2 separately and opened the Weather.exe file in that newly downloaded directory.

I.E. EnergyPlus not through the OpenStudio download.

I still got the same OCX error thrown.

sashadf1's avatar sashadf1 (2021-04-01 08:32:30 -0500) edit

Try 9.5 installer?

Julien Marrec's avatar Julien Marrec (2021-04-01 08:33:15 -0500) edit

Do you have C:\Windows\SysWOW64\ComDlg32.OCX on your system?

Julien Marrec's avatar Julien Marrec (2021-04-01 08:35:37 -0500) edit

The E+ 9.5 installer should register all OCX properly, so you shouldn't have to do anything. Prior to 9.4 (so 9.3 included and below), it wouldn't try to register the OCX if it was found on your system already. See this commit that changed it: https://github.com/NREL/EnergyPlus/co...

Julien Marrec's avatar Julien Marrec (2021-04-01 08:40:26 -0500) edit

If not, you can get it from https://github.com/NREL/EnergyPlus/ra...

Copy it to C:\Windows\SysWOW64\ComDlg32.OCX. Once you do, you need to register it.

open an elevated (administator) Command Prompt (cmd.exe)

Type: C:\Windows\SysWOW64\regsvr32.exe /s C:\Windows\SysWOW64\ComDlg32.OCX

Julien Marrec's avatar Julien Marrec (2021-04-01 08:40:42 -0500) edit
add a comment see more comments