Closed
Description
irradiance.perez
can return isotropic, circumsolar and horizon components of sky diffuse irradiance if return_components = True
. Currently, if return_components
then results are returned as a tuple (sky_diffuse, diffuse_components)
with the elements being a pandas.Series and pandas.Dataframe, respectively.
I propose that we always return a Dataframe with column sky_diffuse
and optionally columns for isotropic, circumsolar, horizon
. This avoids having the output of the perez model of a different type (tuple instead of pandas object) and having to unpack the tuple when diffuse_components are requested.