public List <string> GetFifthDayHours() { var fifthDay = Forecast3hrs.Skip(fourthDayEnd).Take(40 - fourthDayEnd + 1); List <string> dayHours = fifthDay.Select(d => d.Time.TimeOfDay.ToString()).ToList(); return(dayHours); }
public List <string> GetFourthDayHours() { var fourthDay = Forecast3hrs.Skip(thirdDayEnd).Take(fourthDayEnd - thirdDayEnd); List <string> dayHours = fourthDay.Select(d => d.Time.TimeOfDay.ToString()).ToList(); return(dayHours); }
public List <double> GetFifthDayTemp() { var fifthDay = Forecast3hrs.Skip(fourthDayEnd).Take(40 - fourthDayEnd + 1); List <double> dayTemp = fifthDay.Select(d => d.Parameters.MaxTemperature).ToList(); return(dayTemp); }
public List <string> GetThirdDayHours() { var thirdDay = Forecast3hrs.Skip(secondDayEnd).Take(thirdDayEnd - secondDayEnd); List <string> dayHours = thirdDay.Select(d => d.Time.TimeOfDay.ToString()).ToList(); return(dayHours); }
public List <double> GetFourthDayTemp() { var fourthDay = Forecast3hrs.Skip(thirdDayEnd).Take(fourthDayEnd - thirdDayEnd); List <double> dayTemp = fourthDay.Select(d => d.Parameters.MaxTemperature).ToList(); return(dayTemp); }
public List <double> GetThirdDayTemp() { var thirdDay = Forecast3hrs.Skip(secondDayEnd).Take(thirdDayEnd - secondDayEnd); List <double> dayTemp = thirdDay.Select(d => d.Parameters.MaxTemperature).ToList(); return(dayTemp); }
public List <string> GetSecondDayHours() { var secondDay = Forecast3hrs.Skip(firstDayEnd).Take(secondDayEnd - firstDayEnd); List <string> dayHours = secondDay.Select(d => d.Time.TimeOfDay.ToString()).ToList(); return(dayHours); }
public List <double> GetSecondDayTemp() { var secondDay = Forecast3hrs.Skip(firstDayEnd).Take(secondDayEnd - firstDayEnd); List <double> dayTemp = secondDay.Select(d => d.Parameters.MaxTemperature).ToList(); return(dayTemp); }
public List <string> GetFirstDayHours() { var firstDay = Forecast3hrs.Take(firstDayEnd); List <string> dayHours = firstDay.Select(d => d.Time.TimeOfDay.ToString()).ToList(); return(dayHours); }
public List <double> GetFirstDayTemp() { var firstDay = Forecast3hrs.Take(firstDayEnd); List <double> dayTemp = firstDay.Select(d => d.Parameters.MaxTemperature).ToList(); return(dayTemp); }
public void CalculateDaysEnd() { int day = Forecast3hrs[0].Time.Day; firstDayEnd = Forecast3hrs.Where(f => f.Time.Day == day).Count(); day = Forecast3hrs[firstDayEnd].Time.Day; secondDayEnd = firstDayEnd + Forecast3hrs.Where(f => f.Time.Day == day).Count(); day = Forecast3hrs[secondDayEnd].Time.Day; thirdDayEnd = secondDayEnd + Forecast3hrs.Where(f => f.Time.Day == day).Count(); day = Forecast3hrs[thirdDayEnd].Time.Day; fourthDayEnd = thirdDayEnd + Forecast3hrs.Where(f => f.Time.Day == day).Count(); }