The reputation of climate science is taking a battering, but don't just blame the media or closed-minded sceptics, says Jim Giles