added code to read in weather data