fix for craaazy sort-of-curvilinear grids crossing the dateline