S5.Weather.readgrib.ssr_to_direct_and_diffuse#

S5.Weather.readgrib.ssr_to_direct_and_diffuse(weather: DataFrame) DataFrame[source]#

Temporary implementation to convert surface net solar radiation (ssr) to direct and diffuse.

The fact is it is just not the same thing, this may give you some somewhat realistic data to play with but you should really use a different datasource.

Parameters:

weather – dataframe with columns “ssr”, and “SunElevation(deg)”

Returns:

This function modifies the original dataframe but also returns a copy of the modified dataframe.