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)); }
public static double DaylightTimeFactor(ILocation position, DateTime date) { return(Astronomy.DaylightTimeFactor(Astronomy.BoundedLatitude(position), Astronomy.SolarDeclination(date))); }
public static double SolarElevation(ILocation position, DateTime date, double hour) { return(Astronomy.SolarElevation(Astronomy.BoundedLatitude(position), hour, Astronomy.SolarDeclination(Astronomy.DayOfYear(date)))); }