Made sure that the sand profile is stored as integer points (Apparently, older numpy version don't like floats for indexing)