IRIS_HOST

const for json format, json

FORMAT_JSON

Type: string

const for text format, text

FORMAT_TEXT

Type: string

const for geocsv format, geocsv

FORMAT_GEOCSV

Type: string

const for request format, request

FORMAT_REQUEST

Type: string

const of completely empty json, {}

EMPTY_JSON

Type: RootType

Static Members
datasources

Major version of the FDSN spec supported here. Currently is 1.

SERVICE_VERSION

Type: number

Service name as used in the FDSN DataCenters registry, https://www.fdsn.org/datacenters

SERVICE_NAME

AvailabilityQuery

src/fdsnavailability.ts

Query to a FDSN Availability web service.

const avail = AvailabilityQuery()
   .networkCode("CO")
   .stationCode("BIRD")
   .startTime("2021-12-27T19:18:54Z")
   .endTime("2021-12-27T19:22:54Z");
avail.query().then(sddList => {
  sddList.forEach(sdd => console.log(sdd))
});
new AvailabilityQuery(host: string?)

Extends FDSNCommon

Parameters
host (string?) optional host to connect to, defaults to IRIS
Related
https://www.fdsn.org/webservices/
Instance Members
specVersion(value?)
getSpecVersion()
protocol(value?)
getProtocol()
host(value?)
getHost()
nodata(value?)
getNodata()
port(value?)
getPort()
networkCode(value?)
getNetworkCode()
stationCode(value?)
getStationCode()
locationCode(value?)
getLocationCode()
channelCode(value?)
getChannelCode()
startTime(value?)
getStartTime()
endTime(value?)
getEndTime()
timeRange(se)
quality(value?)
getQuality()
merge(value?)
getMerge()
mergeGaps(value?)
getMergeGaps()
show(value?)
getShow()
limit(value?)
getLimit()
orderby(value?)
getOrderBy()
includeRestricted(value?)
getIncludeRestricted()
format(value?)
getFormat()
timeout(value?)
getTimeout()
query()
queryJson()
extent()
extentJson()
postQuery(channelTimeList)
postExtent(channelTimeList)
postExtentJson(channelTimeList)
postQueryJson(channelTimeList)
postJson(channelTimeList, method)
postRaw(channelTimeList, method)
extractFromJson(jsonChanTimes)
createPostBody(channelTimeList)
formBaseURL()
formVersionURL()
queryVersion()
makePostParm(name, val)
formURL(method?)

Root type of availablility json query.

RootType

Type: any

FdsnDateTime

Type: string

Datasource

Type: any

isValidRootType(jsonValue: any): any
Parameters
jsonValue (any)
Returns
any

isValidDatasource

src/fdsnavailability.ts
isValidDatasource(jsonValue: any): any
Parameters
jsonValue (any)
Returns
any