Exemplo n.º 1
0
        public void GetSolarZenithAngleTest2()
        {
            SolarCalculator solCalc  = new SolarCalculator();
            double          latitude = 40.0;
            double          sd       = 23.43782475;
            double          ha       = 44.53743745;
            double          sza      = solCalc.GetSolarZenithAngle(latitude, sd, ha);

            Assert.AreEqual(40.83025006, Math.Round(sza, 8));
        }
Exemplo n.º 2
0
        public void GetSolarZenithAngleTest1()
        {
            SolarCalculator solCalc  = new SolarCalculator();
            double          latitude = 40.0;
            double          sd       = -13.19798007;
            double          ha       = -3.555549918;
            double          sza      = solCalc.GetSolarZenithAngle(latitude, sd, ha);

            Assert.AreEqual(53.30063602, Math.Round(sza, 8));
        }