rectililear: add code for nonuniform grid spacing