Fantastic blog I really learned a lot, thank you! Just one question, in weather_df you named the column air_temp and based on my research it should be temp_air, do you agree or am I missing something?
Thanks Uroš for your comment! I did a little investigation and indeed the pvlib variable name for air temperature is "temp_air", not "air_temp". If you pass a dataframe with a different variable name, pvlib won’t throw an error but will default to a 20 °C temperature.
In this particular case, it doesn’t affect the results much, but in scenarios with larger temperature changes, it could make a bigger difference. Good catch!
Fantastic blog I really learned a lot, thank you! Just one question, in weather_df you named the column air_temp and based on my research it should be temp_air, do you agree or am I missing something?
Thanks Uroš for your comment! I did a little investigation and indeed the pvlib variable name for air temperature is "temp_air", not "air_temp". If you pass a dataframe with a different variable name, pvlib won’t throw an error but will default to a 20 °C temperature.
In this particular case, it doesn’t affect the results much, but in scenarios with larger temperature changes, it could make a bigger difference. Good catch!