Reputation: 29
I want to calculate the weighted average of temperatures of the nearest weather stations around a city. I have data on the latitude, longitude, altitude and temperature of some stations. Mostly, I'm trying to find the formula used by the weatherspark website, so i'm using the real exemple from the image below, but i'm having issues with the formula, as it computes the Altitude for the weighted average of the individual contributions (Joinville city 68% contibuition and Curitiba city 32% contibuition).
Pontal do Paraná city : latitude -25.674°, longitude -48.511° and 7 m above sea level;
Joinville city : latitude -26.304°, longitude -48.846° e 4 m above sea level;
Curitiba city : latitude -25.428°, longitude -49.273° e 910 m above sea level;
*Joinville: 42 miles = 68 km; -10 ft = -3 m
*Curitiba 43 miles = 69 km; 2,963 ft = 903 m
*values from the image show miles and ft.
The image below shows my excel sheet: enter image description here
Does anyone have an idea?
Thank you for any kind of help!
Upvotes: 1
Views: 243