Functions and scripts for reading, writing, and analyzing climate and paleoclimate code