@staticmethod
    def _extrap_1d(delta, npoints, arr, new_shape, normal):
        imax, = arr.shape
        new_arr = numpy.zeros(new_shape)

        if delta > 0:
            v = arr[-1]
            if imax > 1:
                dv = (v - arr[-2]) * delta
            else:
                dv = normal * delta
            indx = imax
            new_arr[0:indx] = arr
            for i in range(npoints):
                new_arr[indx+i:] = v + (i+1)*dv
        else:
            v = arr[0]
            if imax > 1:
                dv = (arr[1] - v) * delta
            else:
                dv = normal * -delta
            indx = npoints
            new_arr[indx:] = arr
            indx -= 1
            for i in range(npoints):
                new_arr[indx-i] = v + (i+1)*dv
        return new_arr
Return extrapolated `arr`.
dataset/ETHPy150Open OpenMDAO/OpenMDAO-Framework/openmdao.lib/src/openmdao/lib/datatypes/domain/grid.py/GridCoordinates._extrap_1d