'Check the inputs for being in the bounds of the interpolated data.
Parameters
x_new : array
Returns
out_of_bounds : bool array
The mask on x_new of values that are out of the bounds.'

def _check_bounds(self, x_new):

    below_bounds = (x_new < self.x[0])
    above_bounds = (x_new > self.x[(-1)])
    if (self.bounds_error and below_bounds.any()):
        raise ValueError('A    value    in    x_new    is    below    the    interpolation    range.')
    if (self.bounds_error and above_bounds.any()):
        raise ValueError('A    value    in    x_new    is    above    the    interpolation    range.')
    return (below_bounds, above_bounds)
