SEEDLINK_PATH

Type: string

DATALINK_PATH

Type: string

IRIS_HOST

Type: string

RingserverConnection

dist/ringserverweb.mjs

Web connection to a Ringserver.

new RingserverConnection(host: any, port: any)
Parameters
host (any) optional host to connect to, defaults to IRIS. This maybe a full URL.
port (any) optional host to connect to, defaults to 80
Instance Members
host(value)
getHost()
port(value)
getPort()
prefix(value)
getPrefix()
timeout(value)
getTimeout()
pullId()
pullStreamIds(level, matchPattern)
pullStreams(matchPattern)
getDataLinkURL()
getSeedLinkURL()
formBaseURL()
formIdURL()
formStreamsURL(queryParams)
formStreamIdsURL(queryParams)

stationsFromStreams

dist/ringserverweb.mjs

Extract one StreamStat per station from an array of channel level StreamStats. The start and end times are the min and max times for all the channels within the station. Can be used to get most time of most recent packet from the stations to give an idea of current latency.

stationsFromStreams(streams: any): any
Parameters
streams (any) array of channel level StreamStats
Returns
any: array of station level StreamStats

Holds ringserver/datalink id split into nslc and type.

new NslcWithType(type: any, nslc: any)
Deprecated: This is deprecated.
Parameters
type (any) [description]
nslc (any) [description]

extracts the type from a ringserver id, ie the type from xxx/type.

typeForId(id: any): any
Parameters
id (any) ringserver/datalink style id
Returns
any: type, usually MSEED, MSEED3, JSON or TEXT

Split type, networkCode, stationCode, locationCode and channelCode from a ringserver id formatted like net_sta_loc_chan/type or FDSN:net_sta_loc_b_s_s/type for new FDSN SourceIds

nslcSplit(id: any): any
Deprecated: This is deprecated.
Parameters
id (any) id string to split
Returns
any: object with the split fields

Object to hold start and end times for a key, usually channel or station.

new StreamStat(key: any, start: any, end: any)
Parameters
key (any) id, usually station or channel
start (any) start time
end (any) end time
Instance Members
calcLatency(accessTime)