Convert angular coordinates into Galactic or Cartesian coordinates