a pipeline to automatically calibrate astronomical images, and identify periodic variable stars