Reduction code for the VUW Puoko-nui photometer