all values initialized properly, but just need to figure out why the code is blowing up at a few points around land, suspect landmask