Example #1
0
        private static double JPL_EPHEM_END_DATE   = 2525008.5; // Last date of data in the ephemerides file

        static NOVAS()
        {
            DllLoader.LoadDll(Path.Combine("NOVAS", DLLNAME));

            short a             = 0;
            var   ephemLocation = Path.Combine(System.AppDomain.CurrentDomain.BaseDirectory, "External", "JPLEPH");
            var   code          = EphemOpen(ephemLocation, ref JPL_EPHEM_START_DATE, ref JPL_EPHEM_END_DATE, ref a);

            if (code > 0)
            {
                Logger.Warning($"Failed to load ephemerides file due to error {code}");
            }
        }
Example #2
0
 static SOFA()
 {
     DllLoader.LoadDll(Path.Combine("SOFA", DLLNAME));
 }