Create sc_pdist