I'm working with data from a solar farm; so many of the point values have values that are useful only during daylight hours. Since points are sampled continuously, when the sun's down we get zero values (no generation). Or other inputs like temperatures are lower, so they don't give a useful reading.
How can I sample this data to get an average of values only during daylight hours?