Change order of 'xorigkm', 'yorigkm', and 'dgridkm'