3.1.4
const for json format, json
Type: string
const for text format, text
Type: string
const for geocsv format, geocsv
Type: string
const for request format, request
Type: string
const of completely empty json, {}
Type: RootType
Major version of the FDSN spec supported here. Currently is 1.
Type: number
Service name as used in the FDSN DataCenters registry, https://www.fdsn.org/datacenters
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))
});
Extends FDSNCommon
(string?)
optional host to connect to, defaults to IRIS
Gets/Sets the version of the fdsnws spec, 1 is currently the only value. Setting this is probably a bad idea as the code may not be compatible with the web service.
(string?)
spec version, usually 1
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the protocol, http or https. This should match the protocol of the page loaded, but is autocalculated and generally need not be set.
(string?)
protocol, usually http or https
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the remote host to connect to.
(string?)
host
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the nodata parameter, usually 404 or 204 (default), controlling the status code when no matching data is found by the service.
(number?)
number for nodata, usually 404 or 204
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the port, not usually set unless not on standard http or https ports
(number?)
port
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the network code to check.
(string?)
network code like IU
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the station code to check.
(string?)
station code like ANMO
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the location code to check.
(string?)
location code like 00
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the channel code to check.
(string?)
channel code like BHZ
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the start time parameter for the query.
((DateTime | string)?)
start time
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the end time parameter for the query.
((DateTime | string)?)
end time
AvailabilityQuery
:
the query when setting, the current value when no argument
Sets startTime and endTime using the given time window
(Interval)
time window
AvailabilityQuery
:
the query
Gets/Sets the quality parameter for the query.
(string?)
quality
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the merge parameter for the query.
(string?)
merge
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the mergegaps parameter for the query.
(number?)
merge gaps
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the show parameter for the query.
(string?)
show
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the limit parameter for the query.
(number?)
limit
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the order by parameter for the query.
(string?)
order by
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the include restricted data parameter for the query.
(boolean?)
true to include restricted data
AvailabilityQuery
:
the query when setting, the current value when no argument
Gets/Sets the format parameter for the query. Usually not needed as is set by the various query methods.
(string?)
format
AvailabilityQuery
:
the query when setting, the current value when no argument
Get/Set the timeout in seconds for the request. Default is 30.
(number?)
timeout in seconds
AvailabilityQuery
:
the query when setting, the current value when no argument
Calls query on the remote service using POST, using configured parameters and forms the POST body using the channelTimeList. Calls postQueryJson internally, then unpacks the result into array of SeismogramDisplayData objects.
(Array<SeismogramDisplayData>)
array of channel-time windows for the request
Promise<Array<SeismogramDisplayData>>
:
promise to array of SeismogramDisplayData, each representing
a channel-time window
Root type of availablility json query.
Type: any
Type: string
Type: any
(any)
any
(any)
any