def _get_offsets(stream):
    ' Return offsets.\n    '
    nr = len(stream)
    offsets = np.zeros(nr)
    scalco = stream[0].stats.su.trace_header.scalar_to_be_applied_to_all_coordinates
    if (scalco == 0):
        scalco = 0.001
    else:
        scalco = (0.001 / scalco)
    for (i, tr) in enumerate(stream):
        offsets[i] = ((tr.stats.su.trace_header.group_coordinate_x - tr.stats.su.trace_header.source_coordinate_x) * scalco)
    return offsets
Return offsets.
def _get_offsets(stream):
    ' \n    '
    nr = len(stream)
    offsets = np.zeros(nr)
    scalco = stream[0].stats.su.trace_header.scalar_to_be_applied_to_all_coordinates
    if (scalco == 0):
        scalco = 0.001
    else:
        scalco = (0.001 / scalco)
    for (i, tr) in enumerate(stream):
        offsets[i] = ((tr.stats.su.trace_header.group_coordinate_x - tr.stats.su.trace_header.source_coordinate_x) * scalco)
    return offsets