# Error with IWEC weather file-Honeybee+ climate sky

**URL:** <https://discourse.ladybug.tools/t/error-with-iwec-weather-file-honeybee-climate-sky/2233>\
**Category:** honeybee\[+\]\
**Created:** [October 31, 2017, 11:01pm UTC](https://discourse.ladybug.tools/t/error-with-iwec-weather-file-honeybee-climate-sky/2233 "2017-10-31T23:01:05Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![AndreaZani905](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/andreazani905/32/46_2.png) [@AndreaZani905](https://discourse.ladybug.tools/u/AndreaZani905)\
**Post date:** [October 31, 2017, 11:01pm UTC](https://discourse.ladybug.tools/t/error-with-iwec-weather-file-honeybee-climate-sky/2233/1 "2017-10-31T23:01:05Z")

</div>

Hi everyone,

I tried to run point in time grid-based and image-based analysis in Honeybee +, but if I use an IWEC weather file the simulation doesn’t work.  
The sky component generates the sky in the command line, but the calculation does not produce any results.  
Same test with a TMY3.epw works. I tried different IWEC and dates, using also the sample file.  
Furthermore, the same weather IWEC file (you can find attached) works for annual analysis.

Does anyone have the same problem?

Thank you so much.

Best

Andrea

[ITA\_Milan.160660\_IWEC.epw](https://discourse.ladybug.tools/uploads/default/original/2X/e/e548e866f8f34cba12eb4b58e61c66a7b9333907.epw) (1.5 MB)

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [November 6, 2017, 1:30pm UTC](https://discourse.ladybug.tools/t/error-with-iwec-weather-file-honeybee-climate-sky/2233/2 "2017-11-06T13:30:49Z")

</div>

I think this is similar to the issue that @AbrahamYezioro has reported before. I [opened an issue](https://github.com/ladybug-tools/honeybee/issues/181) but didn’t get the chance to test and fix it.

---

<div class="post-metadata">

**Author:** ![AndreaZani905](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/andreazani905/32/46_2.png) [@AndreaZani905](https://discourse.ladybug.tools/u/AndreaZani905)\
**Post date:** [November 6, 2017, 5:24pm UTC](https://discourse.ladybug.tools/t/error-with-iwec-weather-file-honeybee-climate-sky/2233/3 "2017-11-06T17:24:00Z")

</div>

Sorry, didn’t find the post.

Thank you so much.

Andrea

---

<div class="post-metadata">

**Author:** ![sarith](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/sarith/32/17511_2.png) [@sarith](https://discourse.ladybug.tools/u/sarith)\
**Post date:** [November 6, 2017, 7:28pm UTC](https://discourse.ladybug.tools/t/error-with-iwec-weather-file-honeybee-climate-sky/2233/4 "2017-11-06T19:28:54Z")

</div>

@mostapha I did little investigation and found that the issue is occurring because gendaylit is not getting the meridian values assigned to it.

`c:\radiance\bin\gendaylit 6 21 12 -W 773.0 253.0 -o -34.8 -O 0 -a 31.25`

The default value for gendaylit corresponds to San Francisco (-m 120). So as long as we do a simulation for a location within the continental United States (or locations with longitudes in the vicinity of 120 degrees Standard Meridian, the results will _look_ okay, but still be slightly off. The error will increase for other locations. That’s why Abraham is getting a dark sky as the local time as per gendaylit is 10:30 PM

![exe](https://discourse.ladybug.tools/uploads/default/original/2X/e/e0f3151f797ebf5ceb299d312c96b29bc8a35b76.png)

This is only an issue with HB[+] point-in-time simulations at present, which I hope people are still doing through Honeybee legacy. For all the matrix based stuff, the meridian values are added automatically through Radiance based `epw2wea` and `gendaymtx`. The fix should be simple, just add the `-m` flag in gendaylit either in the plus plugin or downstream in core ( I will let you handle that 😛 ! ).

This might also explain the difference in results that @MingboPeng was getting. Thank you to @AbrahamYezioro and @AndreaZani905 for pointing this out.

---

<div class="post-metadata">

**Author:** ![AbrahamYezioro](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/abrahamyezioro/32/3_2.png) [@AbrahamYezioro](https://discourse.ladybug.tools/u/AbrahamYezioro)\
**Post date:** [November 6, 2017, 8:30pm UTC](https://discourse.ladybug.tools/t/error-with-iwec-weather-file-honeybee-climate-sky/2233/5 "2017-11-06T20:30:28Z")

</div>

Thanks @sarith,  
Hopefully this will fix the issue.  
-A.

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [November 7, 2017, 12:16am UTC](https://discourse.ladybug.tools/t/error-with-iwec-weather-file-honeybee-climate-sky/2233/6 "2017-11-07T00:16:28Z")

</div>

Thank you for checking this out. I don’t think it will change the results for @MingboPeng’s study. In the annual run [we use the gendaylit.py](https://github.com/ladybug-tools/honeybee/blob/4226a250a13890e4179e99d44226629a589bf035/honeybee/radiance/sky/sunmatrix.py#L188) and sun position [is calculated using the `SunPath` class](https://github.com/ladybug-tools/honeybee/blob/4226a250a13890e4179e99d44226629a589bf035/honeybee/radiance/sky/sunmatrix.py#L165). It should address the issue for the point-in-time cases though.

---

<div class="post-metadata">

**Author:** ![mostapha](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mostapha/32/15244_2.png) [@mostapha](https://discourse.ladybug.tools/u/mostapha)\
**Post date:** [February 4, 2018, 5:51pm UTC](https://discourse.ladybug.tools/t/error-with-iwec-weather-file-honeybee-climate-sky/2233/7 "2018-02-04T17:51:55Z")

</div>

This is finally addressed. As @sarith mentioned meridian was missing from gendaylit. This change should address the issue here and for @AbrahamYezioro’s case.

> <https://github.com/ladybug-tools/honeybee/commit/0e71c41907022d03e9b1766ddb7e9f95b62fac2d>

I’m going to check @MingboPeng’s case next by comparing `gendaylit.py` vs Radiance’s gendaylit command.
