obspy.clients.seedlink.client.seedlinkconnection.SeedLinkConnection.add_stream
- SeedLinkConnection.add_stream(net, station, selectors_str, seqnum, timestamp)[source]
Add a new stream entry to the stream chain for the given net/station parameters.
If the stream entry already exists do nothing and return 1. Also sets the multi-station flag to true.
- Parameters
net – network code.
station – station code.
selectors_str – selectors for this net/station, null if none.
seqnum – SeedLink sequence number of last packet received, -1 to start at the next data.
timestamp – SeedLink time stamp in a UTCDateTime format for last packet received, null for none.
- Returns
0 if successfully added, 1 if an entry for network and station already exists.
- Raises
SeedLinkException – on error.