Skip to content

Return sky diffuse and components as dataframe in irradiance.perez #434

Closed
@cwhanse

Description

@cwhanse

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions