gridding and dotmap