Skip to content

Fitting functions for spectral mismatch factor models #2242

Open
@RDaxini

Description

@RDaxini

Is your feature request related to a problem? Please describe.
The spectrum.spectral_factor.* functions offer model coefficients but pvlib currently has no functionality for users to derive model coefficients from their own data.

Describe the solution you'd like
I'd like to implement surface fitting functions for:

spectrum.spectral_factor_pvspec()
spectrum.spectral_factor_jrc()
spectrum.spectral_factor_firstsolar()

and a polynomial fitting function for:

spectrum.spectral_factor_sapm

Additional context
Some questions:

  1. Following on from the discussion about references and fitting functions in Add method to fit Huld model #1979 (related: What is the standard for inclusion of features in pvlib? #1898), would the fitting functions here need to reproduce the fitting methods adopted in the original publications, or would a generic fitting tool be okay?
    By generic tool, I mean, for example, a common method like Ordinary Least Squares using established python packages such as scipy.optimize and statsmodels in order to fit to the published model parameterisation.

  2. If the former (reproducing the published method), but the precise method is not mentioned in the reference, would communication from the author confirming the adopted method be sufficient?

  3. If a generic tool is okay then what would a suitable reference be? A maths/stats papers corroborating the method's validity? Reputable examples (PV or non-PV?) of its application?

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