Unsuccessful attempt at function to get temps for all years