Rosetta/database/scoring/score_functions/rama/Rama08.dat is actually for the two-body Ramachadran score (rama2b). The score table for the default rama term (single residue) is actually Rosetta/database/scoring/score_functions/rama/Rama_smooth_dyn.dat_ss_6.4
The format of the single residue file is
aa_num ss_type phi_bin psi_bin counts prob energy
(Note that in current versions of Rosetta, the value that’s used to compute energy is actually the “prob” column, rather than the “energy” column.)
And the format for the two-body file is
aa_num aa_num_left aa_num_right ss_type phi_bin psi_bin counts prob energy
You are correct that the aa_num is from the enumeration in the core::chemical::AA module – specifically, it’s based off the one letter code. So Alanine is 1, cystine is 2, aspartic acid is 3 … and tryptophan is 20.