Calculation "Remaining day" #458
-
|
Hello! Solcast allows 10 API calls in the free subscription. These calls are usually recognizable by changes in the forecast values. (Thx to google translator...) |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
|
Good question! That is a gap in the documentation! The remaining sensors (including the The interpolation is very briefly mentioned in the readme, but only as an aside. The primary reason is to smooth the curve. The remaining forecast is smoothed into a curve in solcastapi.py - look for def_spline |
Beta Was this translation helpful? Give feedback.
-
|
To correct you slightly, @felixheyne (and it might be a translation thing), the values are interpolated (and updated) every five minutes, and not seconds. Historically (before BJ and I became custodians of the code) this value was interpolated for many moons. When we took over it was a simple linear interpolation, or followed a straight line between per-half hour intervals. While good, this was visually jarring when historical data was charted using something like an Apex chart. I implemented a much more sophisticated 'spline' interpolation later, which follows an interpolated curve to more closely match what the sun does. In fact, two distinct types of splines are built. One set for the "remaining" sensors, and another set for the "momentary" sensors. If 'estimate 10', 'estimate 50' and 'estimate 90' are all enabled then there will be a total of six splines built at each forecast update or on startup. For the "momentary" sensors you can see this at work by examining and comparing 'Forecast next hour' (enabled by default) with 'Forecast next X hours' (disabled by default). The 'Forecast next hour' is not interpolated. 'Forecast next X hours' is, and when set to an 'X' of |
Beta Was this translation helpful? Give feedback.
-
|
At first: seconds was wrong by me, minutes is correct. |
Beta Was this translation helpful? Give feedback.
To correct you slightly, @felixheyne (and it might be a translation thing), the values are interpolated (and updated) every five minutes, and not seconds.
Historically (before BJ and I became custodians of the code) this value was interpolated for many moons. When we took over it was a simple linear interpolation, or followed a straight line between per-half hour intervals. While good, this was visually jarring when historical data was charted using something like an Apex chart.
I implemented a much more sophisticated 'spline' interpolation later, which follows an interpolated curve to more closely match what the sun does.
In fact, two distinct types of splines are built. One set for the …