Radial velocity code