Solar hours and the ChartsCompiler
Posted: Thu 15 Feb 2024 10:01 am
Reading this interesting thread on Solar Info and especially when it came to @Cambium asking for how to have that info in a chart, I thought how easily that could be done with the ChartsCompiler. So here it is (created during morning coffee).
If you put the next line in the definition of your Solar radiation chart - assuming you use the chart definitions that come with the distribution - you will get the percentage line. If the radiation is above that line, CMX will count it as the sun is shining, so the time will add to the solar hours. You can view an example on my site (see signature, click Solar pane).
Where TSM stands for TheoreticalSolarMax of course. The percentage if what you define personally in the CMX Solar definition under Station. That is your personal tuning of solar, it is not written in stone.
The complete chart definition of what you see is:
If you put the next line in the definition of your Solar radiation chart - assuming you use the chart definitions that come with the distribution - you will get the percentage line. If the radiation is above that line, CMX will count it as the sun is shining, so the time will add to the solar hours. You can view an example on my site (see signature, click Solar pane).
Code: Select all
Plot Percent75TSM EVAL [ TheoreticalSolarMax * 0.75 ] As Spline LineWidth 1 Colour DeepPink Zindex 10 Opacity 0.2 Axis Solar
The complete chart definition of what you see is:
Code: Select all
Chart Solar Title (Max)Radiation en UV
ConnectsTo 12 23 24
Plot UV zIndex 100
Plot CurrentSolarRad As Area Opacity 0.4 Colour Orange zIndex 50
Plot TheoreticalSolarMax As Area Colour Gold zIndex 10 Opacity 0.2
Plot Percent75TSM EVAL [ TheoreticalSolarMax * 0.75 ] As Spline LineWidth 1 Colour DeepPink Zindex 10 Opacity 0.2 Axis Solar
EndChart