Local SPD for testing new codes