Пример #1
0
        public TangentalNormalizedDirectionAstrometry(TangentalTransRotAstrometry baseAstrometry)
        {
            m_Astrometry = baseAstrometry;

            double fovDeg = baseAstrometry.Image.GetMaxFOVInArcSec() / 3600;
            double raFrom = baseAstrometry.m_RA0Deg - fovDeg / 2.0;
            double raTo   = baseAstrometry.m_RA0Deg + fovDeg / 2.0;
            double deFrom = baseAstrometry.m_DE0Deg - fovDeg / 2.0;
            double deTo   = baseAstrometry.m_DE0Deg + fovDeg / 2.0;

            double x1, y1, x2, y2;

            baseAstrometry.GetImageCoordsFromRADE(raFrom, deFrom, out x1, out y1);
            baseAstrometry.GetImageCoordsFromRADE(raTo, deTo, out x2, out y2);

            m_ReverseX = x1 > x2;
            m_ReverseY = y1 > y2;
        }
Пример #2
0
        public void GetImageCoordsFromRADE(double RADeg, double DE, out double x, out double y)
        {
            m_Astrometry.GetImageCoordsFromRADE(RADeg, DE, out x, out y);

            if (m_ReverseX)
            {
                x = CenterXImage - x;
            }
            if (m_ReverseY)
            {
                y = CenterYImage - y;
            }
        }
        public TangentalNormalizedDirectionAstrometry(TangentalTransRotAstrometry baseAstrometry)
        {
            m_Astrometry = baseAstrometry;

            double fovDeg = baseAstrometry.Image.GetMaxFOVInArcSec() / 3600;
            double raFrom = baseAstrometry.m_RA0Deg - fovDeg / 2.0;
            double raTo = baseAstrometry.m_RA0Deg + fovDeg / 2.0;
            double deFrom = baseAstrometry.m_DE0Deg - fovDeg / 2.0;
            double deTo = baseAstrometry.m_DE0Deg + fovDeg / 2.0;

            double x1, y1, x2, y2;

            baseAstrometry.GetImageCoordsFromRADE(raFrom, deFrom, out x1, out y1);
            baseAstrometry.GetImageCoordsFromRADE(raTo, deTo, out x2, out y2);

            m_ReverseX = x1 > x2;
            m_ReverseY = y1 > y2;
        }