mini code to extract the positions of a subsample in a mock catalog