Computation of lightcuves