Code to convert CDMS grids to uniform grids. Required before they can be rendered to images with PIL.