Пример #1
0
        public void TestSyncNortheast()
        {
            Point  scopePosition = new Point(47.13, 6.6);
            double hourAngle     = 7.83812 * 15.0;         // in degrees
            bool   isPierWest    = true;

            DomeSynchronize ds       = new DomeSynchronize(_layout, _siteLatitude);
            Point           position = ds.DomePosition(scopePosition, hourAngle, isPierWest);

            Assert.AreEqual(45.50, position.X, 0.5);
            Assert.AreEqual(0.91, position.Y, 0.5);
        }
Пример #2
0
        public void TestSyncSoutheast()
        {
            Point  scopePosition = new Point(137.1, 5.4);
            double hourAngle     = 7.83812 * 15.0;         // in degrees
            bool   isPierWest    = false;

            DomeSynchronize ds       = new DomeSynchronize(_layout, _siteLatitude);
            Point           position = ds.DomePosition(scopePosition, hourAngle, isPierWest);

            Assert.AreEqual(136.85, position.X, 0.5);
            Assert.AreEqual(10.0, position.Y, 0.5);
        }
Пример #3
0
        public void TestSyncNorthwest()
        {
            Point  scopePosition = new Point(318.0, 2.6);
            double hourAngle     = 7.83812 * 15.0;         // in degrees
            bool   isPierWest    = false;

            DomeSynchronize ds       = new DomeSynchronize(_layout, _siteLatitude);
            Point           position = ds.DomePosition(scopePosition, hourAngle, isPierWest);

            Assert.AreEqual(318.26, position.X, 0.5);
            Assert.AreEqual(7.40, position.Y, 0.5);
        }