ViewVC Help
View File | Revision Log | Show Annotations | Download File | Root Listing
root/radiance/ray/src/cal/cal/tregsrc.cal
(Generate patch)

Comparing ray/src/cal/cal/tregsrc.cal (file contents):
Revision 1.1 by greg, Wed Jun 15 17:46:08 2005 UTC vs.
Revision 1.2 by greg, Wed Jul 1 00:39:34 2009 UTC

# Line 11 | Line 11
11          final altitude at the zenith (90 degrees).  Azimuth is evenly
12          divided among 30, 30, 24, 24, 18, 12, 6, and 1 divisions per row.
13  
14 <        Input is Tbin from 1-145
14 >        Input is Tbin from 1-145 and optional random variables x1 & x2
15          Output is Dx Dy Dz theta (degree full angle of source)
16   }
17   DEGREE : PI/180;
18  
19 + x1 = .5; x2 = .5;               { default random variable settings for midpoint }
20 +
21   Trow = if(30.5-Tbin, 1,
22          if(60.5-Tbin, 2,
23          if(84.5-Tbin, 3,
# Line 32 | Line 34 | Tazi_width = 2*PI / cols_row;
34  
35   TAH : 12*DEGREE;
36  
37 < Tazi = (Tcol - 1)*Tazi_width;
38 < Talt = (Trow - .5)*TAH;
37 > Tazi = (Tcol - .5 - x2)*Tazi_width;
38 > Talt = (Trow - x1)*TAH;
39  
40   Tomega = if(144.5-Tbin,
41          Tazi_width*(sin(TAH*Trow) - sin(TAH*(Trow-1))),

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines