Code for RAMPS (the Radio Ammonia Mid-Plane Survey)