get.locations function

Return coordinates of subset of pixels