obspy.core.stream.Stream._groupby

Stream._groupby(group_by)[source]

Group traces by same metadata.

Parameters:group_by Group traces together which have the same metadata given by this parameter. The parameter should name the corresponding keys of the stats object, e.g. '{network}.{station}'. This parameter can take the value 'id' which groups the traces by SEED id.
Returns:dictionary {group: stream}