Sample preparation for urban mining