rast2comm function

Convert raw input distribution data to community