def METHOD_NAME(data, full=True):
    """Distance vector between shot and for each 's' and 'g' in data.
    Parameters
    ----------
    data : pg.DataContainerERT
    full : bool [True]
        Get distances between shot and receiver position when full is True or
        only form x coordinate if full is False
    Returns
    -------
    dists :  array
        Array of distances
    """
    if full:
        pos = data.sensors()
        s, g = data.id("s"), data.id("g")
        off = [pos[s[i]].distance(pos[g[i]]) for i in range(data.size())]
        return np.absolute(off)
    else:
        px = pg.x(data)
        gx = np.array([px[g] for g in data.id("g")])
        sx = np.array([px[s] for s in data.id("s")])
        return np.absolute(gx - sx)