Difference in Clearsky DNI Results Between PVLib and Solcast #2297
-
Dear friends, I am using the PVLib library to calculate clearsky DNI values on an hourly basis for a specific geographic location. However, I have noticed significant differences between the results obtained using the PVLib method and the values provided by the Solcast API. To test the accuracy of PVLib methods, I used data from Solcast as input for PVLib. The codei s shown below:
For comparison, here are the clearsky DNI results obtained using PVLib and the values returned by the Solcast API: PVLib Clearsky DNI:
The differences are evident, particularly during periods of high solar irradiance. My questions are:
Thank you in advance for your assistance. Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
It's difficult to comment when location, time, and SolCast data are omitted. There may be differences due to the time resolution and alignment: values from pvlib are instantaneous at the timestamp; SolCast may be an average or other statistic for the interval (I don't know). Also, the comparison is between two models one of which isn't public: https://www.solcast.com/irradiance-data-methodology |
Beta Was this translation helpful? Give feedback.
-
In addition to input differences, please note there are several clear sky models. The default in pvlib is “Ineichen” but we don’t know what clear sky model Solcast uses. Please see pvlib clear sky documentation for a list of models implemented in pvlib, & note there may be other models. |
Beta Was this translation helpful? Give feedback.
-
Solcast is based on actual current aerosol data, whereas the pvlib function you use is based on climatological average aerosol data (high uncertainty). I would recommend comparing against the free McClear clear sky data (this can be retrieved using the pvlib.iotools.get_cams function). |
Beta Was this translation helpful? Give feedback.
-
Thank you all for your responses; they have been extremely helpful. Guided by the suggestion @AdamRJensen which we tested, we achieved the most accurate results so far, and we hope they will prove useful in practice. Once again, thank you all! |
Beta Was this translation helpful? Give feedback.
Solcast is based on actual current aerosol data, whereas the pvlib function you use is based on climatological average aerosol data (high uncertainty).
I would recommend comparing against the free McClear clear sky data (this can be retrieved using the pvlib.iotools.get_cams function).