compute night time K-Means for windows light curves