Skip to content

Set negative values of AOI loss to 0 rather than np.nan #338

@cwhanse

Description

@cwhanse

The current AOI loss models set negative values to np.nan, rather than zero. When np.nans are propagated to the effective irradiance model, the beam irradiance (and the effective irradiance) becomes np.nan rather than 0. As a consequence, pvlib cannot compute effective irradiance when AOI>90, i.e., when the sun is behind the array plane. In this circumstance there's still diffuse irradiance on the array plane.

I think it would be better to implement the AOI loss models as

f(AOI) = model value if AOI<90
f(AOI) = 0 otherwise.

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