This code is an algorithm to remove systematic effects in a large set of light curves based on a paper by O. Tamuz, T. Mazeh and S. Zucker (2004) titled "Correcting systematic effects in a large set of photometric light curves".
Copyright (c) 2016 Stephanie Douglas, Aida Ahmadi, and Marcel Agüeros
Use at your own risk. This is free and open source software made available under the MIT License. For details see the LICENSE file.
This code was originally written for PTF data, and has now been adapted to K2 data. It should be applicable to any set of light curves, though further editing may be required.