The problem is to calculate the mid-point of every hour in a day when the sun is above horizon.
For Example: When Sunrise is at 8.42 AM, I need the mid timestamp between 8.42 AM and 9.00 AM then again mid timestamp between 9.00 AM and 10:00 AM and so on.
I have generated the Time series using pvlib when the sun is above horizon and here is the time series on January 1st, 2019 for the first hour. The time series is stored in a data frame.
Time series:
2019-01-01 08:42:00+01:00
2019-01-01 08:43:00+01:00
2019-01-01 08:44:00+01:00
2019-01-01 08:45:00+01:00
2019-01-01 08:46:00+01:00
2019-01-01 08:47:00+01:00
2019-01-01 08:48:00+01:00
2019-01-01 08:49:00+01:00
2019-01-01 08:50:00+01:00
2019-01-01 08:51:00+01:00
2019-01-01 08:52:00+01:00
2019-01-01 08:53:00+01:00
2019-01-01 08:54:00+01:00
2019-01-01 08:55:00+01:00
2019-01-01 08:56:00+01:00
2019-01-01 08:57:00+01:00
2019-01-01 08:58:00+01:00
2019-01-01 08:59:00+01:00
2019-01-01 09:00:00+01:00
I need to get the middle one in this minute time series which means I need to get either one of these.
2019-01-01 08:50:00+01:00
2019-01-01 08:51:00+01:00