main.cpp 632 Bytes
Newer Older
Zhang Xin's avatar
Zhang Xin committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include <iostream>
#include"StrayLight.h"
using namespace std;

int main()
{
    double ju=2.4608437604166665e+06;//观测时的儒略时
    //以下所有位置和方向均为赤道坐标系三维坐标
    double sat[3] = {5873.752, -1642.066, 2896.744};//卫星所处位置
    double ob[3]={0.445256,0.76061,-0.47246};//观测方向
    //double py[3]={0.484277, 0.239253,0.841565};//某合理Y轴
    double py1[3],py2[3];//未知的Y轴
    ComposeY(ob,py1,py2);//计算Y轴
    double E[7];//7谱段的辐照度
    Init();//初始化
    Calculate(ju,sat,ob,py1,E);//计算
    Calculate(ju,sat,ob,py2,E);
    return 0;
}