Stuff related to irregular gridding and shifting to using slopes