示例#1
0
        public void Calc2()
        {
            var calc = new AstroLib.VisualDetection.Calculator.Calc
            {
                ScopeTrans          = .85,
                EyeLimitMag         = 6.5,
                ExitPupilmm         = 7,
                ApertureIn          = 20,
                BkgndBrightEye      = 21,
                ObjName             = "copy from earlier ODM unit test",
                ObjMag              = 12,
                MaxObjArcmin        = 2,
                MinObjArcmin        = 2,
                EyepieceExitPupilmm = 7,
                ApparentFoV         = 100,
            };

            calc.Generate();
            calc.DisplayResults();
            // old program LogContrastDiff = 0.51 because of 9mm exit pupil assumption,
            // incorrect application of scope transmission and missing single eye factor
            Assert.Equal(0.48554434146162329, calc.LogContrastDiff);

            Assert.True(true);
        }
示例#2
0
        public void Calc1()
        {
            var calc = new AstroLib.VisualDetection.Calculator.Calc
            {
                ApertureIn          = 13,
                BkgndBrightEye      = 21.5,
                ObjName             = "California Nebula",
                ObjMag              = 5,
                MaxObjArcmin        = 145,
                MinObjArcmin        = 40,
                EyepieceExitPupilmm = 6,
                ApparentFoV         = 100,
            };

            calc.Generate();
            calc.DisplayResults();
            Assert.Equal(0.81793677405235943, calc.LogContrastDiff);

            Assert.True(true);
        }