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, |
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))), |