Skip to content

Implement all-sky spectral irradiance model(s) #1669

@kandersolar

Description

@kandersolar

Is your feature request related to a problem? Please describe.
pvlib's spectral irradiance modeling is currently limited to pvlib.spectrum.spectrl2, a clear-sky model. As cloudy-sky spectral irradiance takes a different shape from that of clear-sky irradiance, simulating cloudy-sky spectral irradiance is currently a gap in pvlib's capabilities.

Describe the solution you'd like
SEDES2 and TMYSPEC are extensions/add-ons to SPECTRL2 that use broadband irradiance to calculate modifiers that transform clear-sky spectral irradiance to cloudy-sky spectral irradiance. With a python-native SPECTRL2 already implemented, I think it would not take much code to implement one of these as well. However, although the models aren't very complex, it might be difficult to find all the details (coefficient tables and such) necessary for implementation.

On that note @shirubana has kindly sent me a C# implementation of SEDES2 from Bill Marion (used in NREL/TP-520-47277) as well as a python translation of her own creation. This code claims to be a descendant of Fortran code dated Aug 1 1992 developed by Centre for Solar Energy and Hydrogen Research (ZSW) in Germany by Stefan Nann and Angelika Bakenfelder.

Describe alternatives you've considered
N/A

Additional context
I think @adriesse has been involved with some studies that used SEDES2.

See also #857 (SMARTS) and #71 (PyRTM).

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions