gmx rdf calculates radial distribution functions from one reference set of position (set with -ref) to one or more sets of positions (set with -sel).