As a gereneral way to calculate inter-base angles, you could use the following command. Here, I'm using 1ehz as an example:
x3dna-dssr -i=1ehz.pdb --json | jq .nts
x3dna-dssr -i=1ehz.pdb --json | jq -c '.nts[] | { nt_id, "z_axis": .frame.z_axis}'
The nts JSON object contains the reference frame for each identified base. Specifically, pay attention to the z_axis vectors for calculating the inter-base angles of any two bases you are interested in. For your 2.pdb file, the results are as below:
x3dna-dssr -i=2.pdb --json | jq -c '.nts[] | { nt_id, "z_axis": .frame.z_axis}'
------
{"nt_id":"A.DG1","z_axis":[0.956,0.284,-0.073]}
{"nt_id":"A.DT2","z_axis":[-0.138,0.571,-0.809]}
Have a try and report back how it goes.
Xiang-Jun