针对卫星精密定轨中常用的地固系与空固系坐标转换的程序实现问题,该文研究了IERS 2010规范对坐标系转换的定义和步骤,提出了基于C和FORTRAN混合编程技术的程序实现方法:将IAU2006提供的C版本的SOFA天文计算程序和IERS2010规范提供的FORTRAN版本的海潮改正程序制作成静态链接库,并对FORTRAN程序按照C语言的标准进行接口声明,最后使用C语言编写主程序调用静态库实现了坐标变换。实验结果表明,提出的混合编程技术具有实际应用价值和跨平台跨系统的优势,易于推广。
Aiming at the problem of transformation between the Earth-Centered Earth-Fixed(ECEF)and the Earth-Centered Inertial(ECI)in precise orbit determination of satellite,the paper analyzed the definition and steps of the coordinate system transformation according to IERS2010 Conventions,and proposed the program implementation based on hybrid programming of C and FORTRAN:a static link library was made with the SOFA astronomical calculation program provided by IAU2006 and the ocean tide correction program of FORTRAN version provided by IERS2010Conventions;and the interface statement of FORTRAN program was made according to the standard of C language;finally the coordinate transformation was realized by using the main program written by C language to invoke the static lib.Result showed that the proposed hybrid programming would have practical application value due to its advantage of crossplatform and cross-system and easier to be popularized.