analyze_raw_data calculates dam, N, and c properly