PPPWizard笔记

1、A_DATE类(结构体)

 A_DATE date;
 js=(_mjd*86400.0+_sec+A_PPP::_settings._dt;
date.setDay((int) floor(js/86400)-33282.0);    
date.setSecond(js-date.getDay()*86400.0);
  unsigned int _mjd; ///< modified Julian date
  double       _sec; ///< seconds of day

有以上代码可以猜测PPPWizard作者的Day是MJD-33282.0, Second是天内秒
计算太阳坐标:

 A_VECTOR3D posSun = sunPos(date.getDay(), date.getSecond(), 0);
©️2020 CSDN 皮肤主题: 游动-白 设计师:上身试试 返回首页