Niwa sacks top climate scientist