SEEDLINK_PATH

Type: string

DATALINK_PATH

Type: string

EARTHSCOPE_HOST

Type: string

IRIS_HOST

RingserverConnection

dist/ringserverweb4.mjs

Web connection to a Ringserver.

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

stationsFromStreams

dist/ringserverweb4.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
calcLatency(stat: any)
Parameters
stat (any)

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

extracts the source id from a ringserver id, ie the source id from NN_SSSSS_LL_CCC/type or FDSN:NN_SSSSS_LL_B_S_S/type

sidForId(id: any): any
Parameters
id (any) ringserver/datalink style id
Returns
any: FDSN source id or null