Calculate distance between each residue and center of mass of the protein for all frames

GROMACS version:
GROMACS modification: Yes/No
I would like to calculate the distance between the Cα atoms (each C-alpha) to the geometric center of the protein in each snapshot. How can I do it using Gromacs?

Thank you.

maybe you can look at gmx pairdist gmx pairdist — GROMACS 2022.1 documentation