# a bug with rtcontrib?

**URL:** <https://discourse.radiance-online.org/t/a-bug-with-rtcontrib/3085>\
**Category:** radiance-general\
**Created:** [May 22, 2008, 9:26am UTC](https://discourse.radiance-online.org/t/a-bug-with-rtcontrib/3085 "2008-05-22T09:26:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pavlina\_Akritas](https://discourse.radiance-online.org/letter_avatar_proxy/v4/letter/p/6bbea6/32.png) [@Pavlina\_Akritas](https://discourse.radiance-online.org/u/Pavlina_Akritas)\
**Post date:** [May 22, 2008, 9:26am UTC](https://discourse.radiance-online.org/t/a-bug-with-rtcontrib/3085/1 "2008-05-22T09:26:03Z")

</div>

Hello everyone,

I am trying to run 'rtcontrib' with the latest Radiance version to  
compute the illuminance contributions according to a Tregenza sky.

The code that I am using looks like this:

rtcontrib -w- -h- -I+ -ad 1000 -as 500 -ab 1 -V -b tbin -o  
results/sky/%s$i.data -m skyglow -b 0 -o results/ground/%s$i.data -m  
groundglow -f tregenza.cal model.oct \< grid/grid.grd

The code works fine when the grid used points up (+z). However, I would  
like to find the illuminance on a wall grid, thus the grid points must  
point in either +y, -y, +x or -x. When I run 'rtcontrib' in this case  
the number of columns varies between 438 and 435 (since rtcontrib  
outputs r g b values). Thus, 'rtcontrib' seems to be skipping a patch  
every now and then. I have tried also to increasing the settings but the  
same problem occured.

Is it possible to resolve this problem somehow so that the number of  
columns is consistent all the time (i.e. 438 including the ground)? If  
yes, how?

Thank you,

Pavlina Akritas

> **···**
>
> \_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_\_  
> Electronic mail messages entering and leaving Arup business  
> systems are scanned for acceptability of content and viruses

---

<div class="post-metadata">

**Author:** ![Greg\_Ward](https://discourse.radiance-online.org/user_avatar/discourse.radiance-online.org/greg_ward/32/471_2.png) [@Greg\_Ward](https://discourse.radiance-online.org/u/Greg_Ward)\
**Post date:** [May 22, 2008, 3:14pm UTC](https://discourse.radiance-online.org/t/a-bug-with-rtcontrib/3085/2 "2008-05-22T15:14:58Z")

</div>

Hi Pavlina,

You should set -bn 146 on your rtcontrib line, so that even if nothing comes back in certain bins, the number of output values is held constant.

Also note that the -as parameter gets overridden to 0 because it is incompatible with the MC technique used by rtcontrib. Indirect calculation settings in general should be different from what you would use for rtrace. Large values for -ad do not necessarily help you that much in rtcontrib, but I haven't explored the parameter space enough myself to really offer sound advice.

Best,  
-Greg

> **···**
>
> > From: "Pavlina Akritas" \<Pavlina.Akritas@arup.com\>  
> > Date: May 22, 2008 2:26:03 AM PDT
> > 
> > Hello everyone,
> > 
> > I am trying to run 'rtcontrib' with the latest Radiance version to  
> > compute the illuminance contributions according to a Tregenza sky.
> > 
> > The code that I am using looks like this:
> > 
> > rtcontrib -w- -h- -I+ -ad 1000 -as 500 -ab 1 -V -b tbin -o  
> > results/sky/%s$i.data -m skyglow -b 0 -o results/ground/%s$i.data -m  
> > groundglow -f tregenza.cal model.oct \< grid/grid.grd
> > 
> > The code works fine when the grid used points up (+z). However, I would  
> > like to find the illuminance on a wall grid, thus the grid points must  
> > point in either +y, -y, +x or -x. When I run 'rtcontrib' in this case  
> > the number of columns varies between 438 and 435 (since rtcontrib  
> > outputs r g b values). Thus, 'rtcontrib' seems to be skipping a patch  
> > every now and then. I have tried also to increasing the settings but the  
> > same problem occured.
> > 
> > Is it possible to resolve this problem somehow so that the number of  
> > columns is consistent all the time (i.e. 438 including the ground)? If  
> > yes, how?
> > 
> > Thank you,
> > 
> > Pavlina Akritas
