blob: 9537c32287e4e785566fcae86982a23d6eb6fc2f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
//Variable Declaration
Pss=-90 //Location of geostationary satellite(degrees)
PE=-100 //Longitude of the earth station antenna(degrees)
LE=35 //Latitude of the earth station antenna(degrees)
//Calculation
B=PE-Pss //Angle between planes containing a and c(degrees)
b=acos(cos(B)*cos(LE)) //Angle of plane containing b(radians)
A=asin(sin(abs(B*3.142/180))/sin(b)) //Angle between planes containing b and c (radians)
A=A*180/3.142 //Converting A into degrees
//LE>0 and B<0 by observation
Az= 180-A //Azimuth angle(degrees)
//Result
printf("The azimuth angle for the given earth station antenna is %.2f degrees",Az)
|