mirrored grids code from ncephsb01, and main with local pgutils