Posted on

卫星天线方位角、仰角、极化角的javascript算法实现

var Radian=Angle*(Math.PI/180);     //角度转换为弧度

var Angle=Radian*(180/Math.PI);    //弧度转换为角度

double x = atan(tan(LongitudeOfSatellite - LongitudeOfReceivStation) / sin(LatitudeForReceivStation));
x=180 - RadianToAngle(x) ; //方位角

double a = cos(LongitudeOfSatellite - LongitudeOfReceivStation) * cos(LatitudeForReceivStation);
double b = 1.0f - powf(a, 2.0f);
b=sqrt(b);
a=a - 0.1512695;
double x =(a / b);
x=atan(x);
x=RadianToAngle(x); //仰角

double x = atan(sin(LongitudeOfSatellite - LongitudeOfReceivStation) / tan(LatitudeForReceivStation));
x=RadianToAngle(x); //极化角,逆时针为负

发表评论

电子邮件地址不会被公开。