Code for the Galaxy Zoo 2 data reduction and analysis