def guessPeriodicity(srcBounds):
    """
    Guess if a src grid is periodic

    Parameters
    ----------
    srcBounds : the nodal src set of coordinates

    Returns
    -------

    1 if periodic, warp around, 0 otherwise
    """
    res = 0
    if srcBounds is not None:
        res = 1
        # assume longitude to be the last coordinate
        lonsb = srcBounds[-1]
        nlon = lonsb.shape[-1]
        dlon = (lonsb.max() - lonsb.min()) / float(nlon)
        tol = 1.e-2 * dlon
        if abs((lonsb[..., -1] - 360.0 - lonsb[..., 0]
                ).sum() / float(lonsb.size)) > tol:
            # looks like a regional model
            res = 0
    return res