Hi,
Is this problem solved? Because I have the same problem with getting hourly values for the total radiation (from sun) on a surface. I can't get the hourly values from the calculation cmd("calc.insolation", "objects", "incidence", true, "hourly").
I used this command (from someone else on this forum) to cycle through the hours during the year:
for day = 1,365 do
for hour = 0,23 do
set("juliandate", day);
set("model.time", hour)
But the problem is that it will not show the results in a table by using the print or printf function.
I hope someone can help me with a script for geting the hourly values of the radiation [W/m2] from the sun on a object (sensor point).
Thanks in advance.
Maikel
Hello Maikel,
Not sure where your script went wrong, but here is another one that should work for a selected object - note that it will not work on point objects as they have no surface area and the solar exposure calculation will not work on them.
You can always copy and paste the results in an Excel spreadsheet; alternatively, I can also update the script to send the results into Excel directly.
Also note that when selecting "Run on remote server (F9) in the Script manager menu > Script, the results will come out within the Ecotect window and can be access via the Calculate menu > script output.
I hope this helps.
Let me know if you have more questions on this topic, otherwise please accept as a solution so that others can benefit from this information.
Cheers,