Esempio n. 1
0
        public static double ExtraTerrestrialRadiation(ILocation position, DateTime date)
        {
            double latitude  = Astronomy.BoundedLatitude(position);
            double dayAngle  = Astronomy.DayAngle(date);
            int    dayOfYear = Astronomy.DayOfYear(date);
            double solarDistanceCorrection = Astronomy.SolarDistanceCorrection(dayAngle);
            double solarDeclination        = Astronomy.SolarDeclination(dayOfYear);
            double daylightTimeFactor      = Astronomy.DaylightTimeFactor(latitude, solarDeclination);

            return(Astronomy.ExtraTerrestrialRadiation(latitude, solarDistanceCorrection, solarDeclination, daylightTimeFactor));
        }
Esempio n. 2
0
 public static double DaylightTimeFactor(ILocation position, DateTime date)
 {
     return(Astronomy.DaylightTimeFactor(Astronomy.BoundedLatitude(position), Astronomy.SolarDeclination(date)));
 }
Esempio n. 3
0
 public static double SolarElevation(ILocation position, DateTime date, double hour)
 {
     return(Astronomy.SolarElevation(Astronomy.BoundedLatitude(position), hour, Astronomy.SolarDeclination(Astronomy.DayOfYear(date))));
 }