generate discrete light curves from on/off data