both functions tested on CCSM4 - no errors! check data and investigate parallel computing