March 5th, 2007


Catching up: birthdays, memory, festivities, cupcakes

Sometimes a weekend's perspective is all it takes to fix broken code.

I'm working on regridding a bunch of land/ocean masks to a different spatial resolution. On Friday, the code took twenty minutes to run and produced some stripes that probably would have looked nice on a sweater, but were not helpful for analyzing climate change. Today, I looked at the same code, moved some short-circuiting if statements outside the relevant loops, deleted a stray statement that was clobbering the height calculation, and now it runs in 20 seconds and produces landmasses. (Now I just have to do special-case stuff for the poles and the prime meridian.)

Collapse )