Function to batch analyze SPD