obspy.core.trace.Trace.getId

Trace.getId()[source]

Returns a SEED compatible identifier of the trace.

Return type:str
Returns:SEED identifier

The SEED identifier contains the network, station, location and channel code for the current Trace object.

Example

>>> meta = {'station': 'MANZ', 'network': 'BW', 'channel': 'EHZ'}
>>> tr = Trace(header=meta)
>>> tr.getId()
'BW.MANZ..EHZ'
>>> tr.id
'BW.MANZ..EHZ'

This Page