temperature spatial interpolation clean up code