Problem with sorting time data (hrs and minutes) for one day

sunlighthours
#1

Hello,

As part of a bigger analysis I have problems with sorting some data. Specifically, I have a list of minutes during one day, when the sun is visible at the calculated geometri. I now need to make a list of all the minutes of one day (1440 minutes), indicating wether the sun is visible or not - a list of 0 and 1. But I am struggling with sorting the data correctly.

In the attached file I have only included the specific problem, and not the whole sunlight analysis I am working on.

Match times.gh (12.6 KB)

#2

Hi @idas,

you can solve it by using GH native components or a custom script.
Match times_.gh (17.3 KB)

Regards,
Antonello

#3

Thanks a lot! It works perfectly :slight_smile: