SEEDLINK_PATH

Type: string

DATALINK_PATH

Type: string

RingserverIdType

src/ringserverweb4.ts
RingserverIdType

Type: z.infer<any>

StreamStatType

Type: z.infer<any>

StreamsResultType

src/ringserverweb4.ts
StreamsResultType

Type: z.infer<any>

IRIS_HOST

Type: string

RingserverConnection

src/ringserverweb4.ts

Web connection to a Ringserver.

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

stationsFromStreams

src/ringserverweb4.ts

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: Array<StreamStatType>): Array<StreamStatType>
Parameters
streams (Array<StreamStatType>) array of channel level StreamStats
Returns
Array<StreamStatType>: array of station level StreamStats

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

typeForId(id: string): (string | null)
Parameters
id (string) ringserver/datalink style id
Returns
(string | null): 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: string): (FDSNSourceId | StationSourceId | NetworkSourceId | null)
Parameters
id (string) ringserver/datalink style id
Returns
(FDSNSourceId | StationSourceId | NetworkSourceId | null): FDSN source id or null