# Annual Daylight Glare Probability for multiple Test\_points

**URL:** <https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889>\
**Category:** honeybee\[+\]\
**Created:** [September 4, 2020, 6:03pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889 "2020-09-04T18:03:49Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Asisnath](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/asisnath/32/27788_2.png) [@Asisnath](https://discourse.ladybug.tools/u/Asisnath)\
**Post date:** [September 4, 2020, 6:03pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/1 "2020-09-04T18:03:49Z")

</div>

Hello everyone. Today I read about Radiance 5.3 [updates](https://github.com/LBNL-ETA/Radiance/releases) and the new possibilities that have been added. I also came across @Nathaniel documentation about Annual DGP and sGA ([here](https://github.com/nljones/Accelerad/wiki/The-Imageless-Method-for-Spatial-and-Annual-Glare-Analysis)).Using Accelrade program with radiance, simulation time have also greatly shrunk from hours to some minutes. Therefore I have a question regarding the possibilities of simulating dgp for multiple Test points using the new feature dcglare and acclerad. To make myself clearer I am talking about something Climate Studio does for annual glare studies for various test points. Is it possible with Honeybee plus? @chris @mostapha

 ![Capture.PNG](https://discourse.ladybug.tools/uploads/default/original/3X/2/3/23ac8de0b1439dbccb93a406188e939fc980af76.jpeg)

---

<div class="post-metadata">

**Author:** ![chris](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/chris/32/10179_2.png) [@chris](https://discourse.ladybug.tools/u/chris)\
**Post date:** [September 4, 2020, 9:10pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/2 "2020-09-04T21:10:13Z")

</div>

@Asisnath ,

There’s no built-in functionality for producing a graphic like that but you can always set up a Grasshopper definition to iterate through a bunch of points and a bunch of vectors for each point. Then you can assemble the resulting DGP values and color some vectors or other geometry.

We may add some out-of-the-box functionality to produce graphics like that in the future. But it’s currently a lot of computation time to correctly produce a graphic like that, even when using Accelerad to render each view. And it’s all still just for a single point in time. We are working on implementing Honeybee[+] recipes in a way that can scale for cloud computing purposes and this type of study might be a good candidate for such cloud resources.

---

<div class="post-metadata">

**Author:** ![Asisnath](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/asisnath/32/27788_2.png) [@Asisnath](https://discourse.ladybug.tools/u/Asisnath)\
**Post date:** [September 4, 2020, 9:17pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/3 "2020-09-04T21:17:33Z")

</div>

Thanks for the clarification Chris. Hope to see such simulation in future updates with cloud computing power.

---

<div class="post-metadata">

**Author:** ![Nathaniel](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/nathaniel/32/11215_2.png) [@Nathaniel](https://discourse.ladybug.tools/u/Nathaniel)\
**Post date:** [December 8, 2020, 2:25pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/4 "2020-12-08T14:25:57Z")

</div>

Hi @chris,

You might want to take a look at the recipe that @Asisnath linked to ([here](https://github.com/nljones/Accelerad/wiki/The-Imageless-Method-for-Spatial-and-Annual-Glare-Analysis)). The point of imageless DGP calculation is that it doesn’t need to render each view, which is why it’s so fast with or without Accelerad.

---

<div class="post-metadata">

**Author:** ![chris](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/chris/32/10179_2.png) [@chris](https://discourse.ladybug.tools/u/chris)\
**Post date:** [December 9, 2020, 8:11pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/5 "2020-12-09T20:11:39Z")

</div>

Thanks for the useful reference, @Nathaniel . I’ll take a read through your docs once I get the chance.

---

<div class="post-metadata">

**Author:** ![mikkel](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mikkel/32/14362_2.png) [@mikkel](https://discourse.ladybug.tools/u/mikkel)\
**Post date:** [December 12, 2020, 7:06pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/6 "2020-12-12T19:06:06Z")

</div>

I wanted to see if I could replicate Nathaniel’s annual tutorial with the rays file “screenviews.ray” (32 views) using HB[+]. Below is the occupied GA for the views. The red is from HB[+] and the blue is from Nathaniel’s tutorial. It seems promising but I did not test it further.

 ![comparison](https://discourse.ladybug.tools/uploads/default/original/3X/d/6/d6166bbfd910a62c17513896454cf6a79455e810.png)

I used identical Radiance parameters for each run - but since I copied the DC gridbased recipe and built on that, HB[+] also writes other parameters that are not included in Nathaniel’s tutorial. For the 1 ab matrix HB[+] uses the blacked geometry.

Below is the sample Grasshopper script.  
[imagelessGlare\_Test.gh](https://discourse.ladybug.tools/uploads/short-url/mAnFv51R5lr3ePCnRCOds1vugbi.gh) (495.2 KB)

Below is the Python script (“imagelessglare” folder), which must be placed here:

 ![billede](https://discourse.ladybug.tools/uploads/default/original/3X/b/8/b871d58982bd557207291a5f12c9080eb37c81d7.png)  
[imagelessglare.zip](https://discourse.ladybug.tools/uploads/short-url/km1j8cs0hSpnxwLtCU2P60dVr6Q.zip) (8.6 KB)

Below is the files that HB[+] writes.

> **[gridbased\_imagelessglare.zip](https://www.dropbox.com/s/n92p4qfcq915vl3/gridbased_imagelessglare.zip?dl=0)**
>
> Shared with Dropbox

---

<div class="post-metadata">

**Author:** ![nataliaqueiroz](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/n/58956e/32.png) [@nataliaqueiroz](https://discourse.ladybug.tools/u/nataliaqueiroz)\
**Post date:** [April 27, 2021, 7:08pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/7 "2021-04-27T19:08:35Z")

</div>

Hi Chris. I´m working with optimal facades solutions, and testing some fast daylighting simulation models. I tested 2-phase, accelerade, and now Climate studio. That is a way to reproduce the same simulation method from Climate Studio in Honeybee+? Also, I´m really interested in the cloud computing. 🙂

---

<div class="post-metadata">

**Author:** ![masoome](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@masoome](https://discourse.ladybug.tools/u/masoome)\
**Post date:** [July 21, 2021, 6:37pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/8 "2021-07-21T18:37:18Z")

</div>

Hi @Nathaniel,

I am wondering if the imageless approach could be applicable for space with different specifications. I tried the file but seems it does not work.

Thanks

---

<div class="post-metadata">

**Author:** ![Nathaniel](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/nathaniel/32/11215_2.png) [@Nathaniel](https://discourse.ladybug.tools/u/Nathaniel)\
**Post date:** [July 21, 2021, 6:50pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/9 "2021-07-21T18:50:18Z")

</div>

Hi @masoome ,

Can you be more specific about what you tried to do and what errors you received? If your question is specific to the method presented in the [tutorial](https://github.com/nljones/Accelerad/wiki/The-Imageless-Method-for-Spatial-and-Annual-Glare-Analysis), you can use [https://discourse.radiance-online.org/](https://discourse.radiance-online.org/) to ask your question, as this forum is dedicated to Ladybug Tools.

Nathaniel

---

<div class="post-metadata">

**Author:** ![masoome](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@masoome](https://discourse.ladybug.tools/u/masoome)\
**Post date:** [July 21, 2021, 7:05pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/10 "2021-07-21T19:05:00Z")

</div>

@Nathaniel Thanks for the prompt response.  
I have this error as shown in the picture. Also, I do not know how I could produce computerlab.rad and  
screenviews.ray files for my project. Hope it is clear

Thanks

 ![Error](https://discourse.ladybug.tools/uploads/default/original/3X/b/5/b5f822690d3d18fe140542bf2a447e41f4fa1843.jpeg)

---

<div class="post-metadata">

**Author:** ![mikkel](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mikkel/32/14362_2.png) [@mikkel](https://discourse.ladybug.tools/u/mikkel)\
**Post date:** [July 21, 2021, 7:40pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/11 "2021-07-21T19:40:55Z")

</div>

@masoome, are you sure you have the folder `imagelessglare` as seen below?

 ![billede](https://discourse.ladybug.tools/uploads/default/original/3X/f/2/f24e04a56bc6a883ec9b7a60574ee378a56b2056.png)

For your own project you can import the model as `_HB_objects`. You do not need `computerlab.rad` - this was just to compare with Nathaniel’s model. You can create your own view rays by inputting your view points in `_test_points` and view directions in `pts_vectors_`.

![billede](https://discourse.ladybug.tools/uploads/default/original/3X/e/b/eb415b2df118c32d5963ca846e547560b4ca72e7.png)

---

<div class="post-metadata">

**Author:** ![masoome](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/m/d26b3c/32.png) [@masoome](https://discourse.ladybug.tools/u/masoome)\
**Post date:** [July 22, 2021, 3:11pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/12 "2021-07-22T15:11:33Z")

</div>

Thanks @mikkel. I thought I copied it there but seems did not. Now it recognizes it.

---

<div class="post-metadata">

**Author:** ![HamidrezaSh](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/hamidrezash/32/23444_2.png) [@HamidrezaSh](https://discourse.ladybug.tools/u/HamidrezaSh)\
**Post date:** [August 16, 2021, 1:37pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/13 "2021-08-16T13:37:33Z")

</div>

@mikkel Thanks for sharing.  
I am facing an issue, could you please help? I used the code file and set it up as you have done using Nathaniel’s annual tutorial. I ran it but it doesn’t write anything on the “occupied…scene…default.ga” and “views…scene…default.dgp” files. It only generates an empty file for these. What could have caused this?

 ![image](https://discourse.ladybug.tools/uploads/default/original/3X/0/f/0f69eb2a411cdd32797d8e3ab83fd2da8ac91cbb.png)

---

<div class="post-metadata">

**Author:** ![mikkel](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mikkel/32/14362_2.png) [@mikkel](https://discourse.ladybug.tools/u/mikkel)\
**Post date:** [August 16, 2021, 2:44pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/14 "2021-08-16T14:44:05Z")

</div>

Hi @HamidrezaSh,

Are you able to share the folder _gridbased\_imagelessglare_?

---

<div class="post-metadata">

**Author:** ![HamidrezaSh](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/hamidrezash/32/23444_2.png) [@HamidrezaSh](https://discourse.ladybug.tools/u/HamidrezaSh)\
**Post date:** [August 16, 2021, 2:52pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/15 "2021-08-16T14:52:00Z")

</div>

Yeah Sure! Here is the [link](https://drive.google.com/file/d/11CSbtW7VPlBWVPsQ27a1z0nBzcMgNNIi/view?usp=sharing)  
Thanks!

---

<div class="post-metadata">

**Author:** ![mikkel](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mikkel/32/14362_2.png) [@mikkel](https://discourse.ladybug.tools/u/mikkel)\
**Post date:** [August 16, 2021, 3:26pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/16 "2021-08-16T15:26:42Z")

</div>

I can run the script fine. Can you try add “pause” at the end of commands.bat, and then execute the batch file outside Grasshopper? Let me know if you get any error messages.

![billede](https://discourse.ladybug.tools/uploads/default/original/3X/6/b/6b8bdba6b576341851cf455ed8c7537c39ef1727.png)

---

<div class="post-metadata">

**Author:** ![HamidrezaSh](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/hamidrezash/32/23444_2.png) [@HamidrezaSh](https://discourse.ladybug.tools/u/HamidrezaSh)\
**Post date:** [August 16, 2021, 3:34pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/17 "2021-08-16T15:34:02Z")

</div>

I did as per your instruction and this is the result:

 ![image](https://discourse.ladybug.tools/uploads/default/original/3X/0/1/0161a3379b8deaf31a7d2fcae222d704a94eca41.png)  
Still the .ga and .dgp files are empty

---

<div class="post-metadata">

**Author:** ![mikkel](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/mikkel/32/14362_2.png) [@mikkel](https://discourse.ladybug.tools/u/mikkel)\
**Post date:** [August 16, 2021, 3:42pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/18 "2021-08-16T15:42:23Z")

</div>

It looks like you have an older Radiance version than 5.3, or you somehow removed `dcglare` from the Radiance/bin folder. You should install version [5.3](https://github.com/LBNL-ETA/Radiance/releases/tag/012cb178) or any of the newer [pre-releases](https://github.com/LBNL-ETA/Radiance/releases). Then I assume it will work for you as well.

---

<div class="post-metadata">

**Author:** ![HamidrezaSh](https://discourse.ladybug.tools/user_avatar/discourse.ladybug.tools/hamidrezash/32/23444_2.png) [@HamidrezaSh](https://discourse.ladybug.tools/u/HamidrezaSh)\
**Post date:** [August 17, 2021, 7:50am UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/19 "2021-08-17T07:50:56Z")

</div>

Thanks, as you said something was missing, and reinstalling the radiance solved the issue.

---

<div class="post-metadata">

**Author:** ![hiwa](https://discourse.ladybug.tools/letter_avatar_proxy/v4/letter/h/bbe5ce/32.png) [@hiwa](https://discourse.ladybug.tools/u/hiwa)\
**Post date:** [August 19, 2021, 12:05pm UTC](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889/20 "2021-08-19T12:05:27Z")

</div>

> [@masoome](#):
>
> I thought I copied it there but seems did not. Now it recognizes it.

hi masoome  
i have a same problem . i unlocked those files (imageless glare file 3.8 mb) and copied As shown in the image above but now i have a same error . can you help me

[Next page](https://discourse.ladybug.tools/t/annual-daylight-glare-probability-for-multiple-test-points/10889.md?page=2)
