Thanks Greg, that helped. To be sure I understand what I am doing, this is a simple example that works for one direction at the time
#geometry.rad
void plastic base_material
0
0
5 0.47 0.403 0.337 0.0 0.0
base_material polygon shading_device
0
0
12
10 0 0
10 0 10
10 10 10
10 10 0
#receiver.rad
# Combined ground and sky vault
# Start by telling rfluxmtx to generate a single coefficient for the ground:
#@rfluxmtx u=+Y h=u
void glow groundglow
0 0 4 .8 1.1 .8 0
groundglow source ground
0 0 4 0 0 -1 180
# Now, tell rfluxmtx to generate a set of Tregenza sky patches using Y for "north/up":
#@rfluxmtx u=+Y h=r1
void glow sky_glow
0 0 4 1 1 1 0
sky_glow source sky
0 0 4 0 0 1 180
Now I can test a few directions. For example this ray will hit the shading device
oconv geometry.rad > geometry.oct
echo "0 0 6 1 0.1 .1" | rfluxmtx -dv- - receiver.rad -i geometry.oct > coeffs.mtx
#?RADIANCE
oconv -f -i geometry.oct receiver.rad
rcontrib -fo+ -dv- -faa -c 1 -bn 1 -b if(-Dx*0-Dy*0-Dz*1,0,-1) -m groundglow -f reinhartb.cal -p MF=1,rNx=0,rNy=0,rNz=-1,Ux=0,Uy=1,Uz=0,RHS=+1 -bn Nrbins -b rbin -m sky_glow
SOFTWARE= RADIANCE 5.3 official release 2020-09-03 LBNL (5.3.012cb17835)
CAPDATE= 2022:05:07 10:41:04
GMT= 2022:05:07 09:41:04
NCOMP=3
NCOLS=146
FORMAT=ascii
2.397959e-01 2.056123e-01 1.719388e-01 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 2.397959e-03 2.056123e-03 1.719388e-03 2.397959e-03 2.056123e-03 1.719388e-03 0.000000e+00 0.000000e+00 0.000000e+00 7.193877e-03 6.168368e-03 5.158163e-03 7.193877e-03 6.168368e-03 5.158163e-03 4.795918e-03 4.112245e-03 3.438776e-03 9.591836e-03 8.224490e-03 6.877551e-03 4.795918e-03 4.112245e-03 3.438776e-03 7.193877e-03 6.168368e-03 5.158163e-03 7.193877e-03 6.168368e-03 5.158163e-03 2.397959e-03 2.056123e-03 1.719388e-03 2.397959e-03 2.056123e-03 1.719388e-03 0.000000e+00 0.000000e+00 0.000000e+00 2.397959e-03 2.056123e-03 1.719388e-03 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 2.397959e-03 2.056123e-03 1.719388e-03 0.000000e+00 0.000000e+00 0.000000e+00 2.397959e-03 2.056123e-03 1.719388e-03 7.193877e-03 6.168368e-03 5.158163e-03 4.795918e-03 4.112245e-03 3.438776e-03 2.397959e-03 2.056123e-03 1.719388e-03 4.795918e-03 4.112245e-03 3.438776e-03 7.193877e-03 6.168368e-03 5.158163e-03 7.193877e-03 6.168368e-03 5.158163e-03 0.000000e+00 0.000000e+00 0.000000e+00 7.193877e-03 6.168368e-03 5.158163e-03 2.397959e-03 2.056123e-03 1.719388e-03 2.397959e-03 2.056123e-03 1.719388e-03 2.397959e-03 2.056123e-03 1.719388e-03 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 2.397959e-03 2.056123e-03 1.719388e-03 2.397959e-03 2.056123e-03 1.719388e-03 2.397959e-03 2.056123e-03 1.719388e-03 4.795918e-03 4.112245e-03 3.438776e-03 7.193877e-03 6.168368e-03 5.158163e-03 7.193877e-03 6.168368e-03 5.158163e-03 7.193877e-03 6.168368e-03 5.158163e-03 2.397959e-03 2.056123e-03 1.719388e-03 7.193877e-03 6.168368e-03 5.158163e-03 4.795918e-03 4.112245e-03 3.438776e-03 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 2.397959e-03 2.056123e-03 1.719388e-03 2.397959e-03 2.056123e-03 1.719388e-03 4.795918e-03 4.112245e-03 3.438776e-03 2.397959e-03 2.056123e-03 1.719388e-03 0.000000e+00 0.000000e+00 0.000000e+00 7.193877e-03 6.168368e-03 5.158163e-03 2.397959e-03 2.056123e-03 1.719388e-03 4.795918e-03 4.112245e-03 3.438776e-03 2.397959e-03 2.056123e-03 1.719388e-03 2.397959e-03 2.056123e-03 1.719388e-03 2.397959e-03 2.056123e-03 1.719388e-03 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 2.397959e-03 2.056123e-03 1.719388e-03 4.795918e-03 4.112245e-03 3.438776e-03 2.397959e-03 2.056123e-03 1.719388e-03 4.795918e-03 4.112245e-03 3.438776e-03 0.000000e+00 0.000000e+00 0.000000e+00 2.397959e-03 2.056123e-03 1.719388e-03 2.397959e-03 2.056123e-03 1.719388e-03 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 4.795918e-03 4.112245e-03 3.438776e-03 7.193877e-03 6.168368e-03 5.158163e-03 2.397959e-03 2.056123e-03 1.719388e-03 2.397959e-03 2.056123e-03 1.719388e-03 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00 0.000000e+00
rfluxmtx
generates a matrix that gives the contributions of the sky patches to the radiance from the direction 1 0.1 .1
as seen from 0 0 6
. It is not clear to me why I need -dv-
. Is this an rtrace
options?
If now I multiply this matrix against the output of gendaymtx
dctimestep coeffs.mtx sky.mtx > out.mtx
I get a matrix [1 x 8760] representing the radiance from the “patch” in the direction above in W/m2-sr.
Is this correct? If it is then I do not understand why if I do
echo "0 0 6 0 0 1" | rfluxmtx -dv- - receiver.rad -i geometry.oct > coeffs.mtx
I get
#?RADIANCE
oconv -f -i geometry.oct receiver.rad
rcontrib -fo+ -dv- -faa -c 1 -bn 1 -b if(-Dx*0-Dy*0-Dz*1,0,-1) -m groundglow -f reinhartb.cal -p MF=1,rNx=0,rNy=0,rNz=-1,Ux=0,Uy=1,Uz=0,RHS=+1 -bn Nrbins -b rbin -m sky_glow
SOFTWARE= RADIANCE 5.3 official release 2020-09-03 LBNL (5.3.012cb17835)
CAPDATE= 2022:05:07 11:00:26
GMT= 2022:05:07 10:00:26
NCOMP=3
NCOLS=146
FORMAT=ascii
All 0.000000e+00 .... 1.000000e+00 1.000000e+00 1.000000e+00
Shouldn’t I have all zeros because of the -dv-
option?
Thanks!