I am trying to generate an EPW file with th DF Urban Weather generator.
In doing so I get the following error:
Runtime error (DivideByZeroException): Attempted to divide by zero.
Traceback:
line 86, in script
line 154, in average_shgc, “C:\Users\ebe.KNR\ladybug_tools\python\Lib\site-packages\dragonfly_uwg\properties\model.py”
line 35, in model_to_uwg, “C:\Users\ebe.KNR\ladybug_tools\python\Lib\site-packages\dragonfly_uwg\writer.py”
line 48, in run_uwg, “C:\Users\ebe.KNR\ladybug_tools\python\Lib\site-packages\dragonfly_uwg\run.py”
I do not understand why this is hapening. Below the json file:
I updated Ladybug and even added windows to the model. Now it generates an UWG.json but no EPW file. I tried to simplify the geometry but with no luck. Now I do not know what could be the issue here. KRAP_19_3dmodel.gh (416.4 KB) in.bat (398 Bytes) unnamed_uwg.json (3.9 KB)
It looks like your model is somehow getting “5C” assigned as its climate zone. I’ll see if I can investigate further. But you can always change this to 5A in you .json file and then rerun the .bat file.
Hm. I think the original issue might actually have been related to the obstacle height that you have in your successful case there since I was able to get a math domain error in the wind profile calculation with your original uploaded file. I just pushed a fix that will catch the case of the failure of the UWG here:
You should be able to get it with the LB versioner in an hour or so if you still need it.