Description
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:
Additional context
Some questions:
-
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 asscipy.optimize
andstatsmodels
in order to fit to the published model parameterisation. -
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?
-
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?