Reworked SDSS calibration

Still nowhere near done, and currently doesn't work. Needs to be more
organized, too.