/// <summary> /// Create solar vectors for each hour of the year, depending on geographic location and year. /// </summary> /// <param name="sunvectors"></param> /// <param name="longitude"></param> /// <param name="latitude"></param> /// <param name="year"></param> public static void Create8760SunVectors(out List <SunVector> sunvectors, double longitude, double latitude, int year) { sunvectors = new List <SunVector>(); for (int m = 1; m <= 12; m++) { int daysInMonth = System.DateTime.DaysInMonth(year, m); for (int d = 1; d <= daysInMonth; d++) { for (int i = 0; i <= 23; i++) { SunVector sunvec = new SunVector(year, m, d, i, 0, 0, longitude, latitude); sunvectors.Add(sunvec); } } } }