question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Spectral mismatch calculation

See original GitHub issue

Is your feature request related to a problem? Please describe. Currently the only function in pvlib that uses spectral irradiance is spectrl2.

Describe the solution you’d like This feature will provide a function to calculate the spectral mismatch for a given spectral response and spectral irradiance in relation to the reference spectrum. Its intended application is to estimate module performance gains or losses due spectral irradiance in the field differing from the reference spectrum used in the lab for module power rating.

Additional context Efforts are ongoing to assemble and publish both spectral irradiance and spectral response data, such as: https://datahub.duramat.org/project/about/spectral-irradiance-data-and-resources The new feature will make it easier to make use of those spectral resources.

Issue Analytics

  • State:closed
  • Created a year ago
  • Reactions:2
  • Comments:18 (17 by maintainers)

github_iconTop GitHub Comments

2reactions
shirubanacommented, Aug 29, 2022

FYI cool educative video on calculating M https://www.youtube.com/watch?v=398v4irJsKw&t=4s

1reaction
markcampanellicommented, Aug 26, 2022

IIRC, the issue between the IEC and ASTM standards had to due with the “tail” of the spectral irradiance past 4 microns. In IEC, the tail function was not provided, but it’s integral was (i.e., the energy in the tail of the distribution). In ASTM, the tail function and energy were both left essentially undefined. This typically led to a discrepancy when using broadband cavity radiometers for primary reference cell calibrations. For most spectral mismatch calculations the tail indeed did not matter, as you point out. In any case, I’m 99% sure that ASTM addressed the discrepancy after I discovered it at NREL 😃.

In addition to issues of extrapolation below 280 nm and above 4 micron, another issue that I have with the standards is that they do NOT define an interpolation scheme between points, so essentially the spectra are not fully defined, which raises all sorts of inter-comparison questions. For an arbitrary standard spectrum with a reasonably dense partition, I see no harm in the standard DEFINING the curve to be piecewise-linear (or using a PCHIP if they want more smoothness and to respect the extrema in the data points). In addition, they should defined the low wavelength (in the UV) where the spectrum becomes zero and stays zero, and I have already mentioned above the problem of defining the full spectrum out to very large wavelengths.

Of course, the measured quantum efficiencies are certainly NOT piecewise-linear in reality, and we cannot simply define them to be that. In my code, I made the assumption that QE measurements are typically sufficiently dense so that the piecewise-linear interpolation is sufficiently accurate, which has a beneficial numerical advantage of producing an analytic and fast-to-compute summation formula for the common refinement of the partitions of the two functions being multiplied and integrated.

I realistically cannot take a look at the PR until next week, but I would be happy to do so! I am very interested in running inter-comparison calculations for the benefit of validating both methods. It was also on my roadmap for PVfit to accommodate additional interpolation schemes, although that was low priority,

Read more comments on GitHub >

github_iconTop Results From Across the Web

Spectral mismatch calculator - PV Lighthouse
This calculator determines the short-circuit current density of a solar cell under two separate spectra. It can be used to quantify 'spectral mismatch' ......
Read more >
Spectral Mismatch Corrections Video Text Version - NREL
We can calculate the spectral mismatch with four terms. First, we measure the external quantum efficiency (EQE) and spectral response. We multiply the...
Read more >
Calculation of Spectral Mismatch - Bentham
Where the spectral response of the reference cell differs from the test cell, the mismatch factor should be computed from:- Spectral Mismatch Formula...
Read more >
Spectral Mismatch Correction Factor a* / F - Gigahertz-Optik
To clearly illustrate the spectral mismatch effect, the difference function between the actual and nominal V(λ) function can be multiplied with the spectral...
Read more >
APPLICATION NOTE - The Spectral Mismatch Factor - Newport
A reference solar cell is calibrated when its short-circuit current is known with respect to an internationally accepted set of test conditions called...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found