IRIS_HOST

Type: string

TEXT_FORMAT

Type: string

JSON_FORMAT

Type: string

SVG_FORMAT

Type: string

TraveltimeJsonType

src/traveltime.ts

Type for json returned by iris traveltime web service

TraveltimeJsonType

Type: {model: string, sourcedepth: number, receiverdepth: number, phases: Array<string>, arrivals: Array<TraveltimeArrivalType>}

Properties
model (string)
sourcedepth (number)
receiverdepth (number)
phases (Array<string>)

TraveltimeArrivalType

src/traveltime.ts
TraveltimeArrivalType

Type: {distdeg: number, phase: string, time: number, rayparam: number, takeoff: number, incident: number, puristdist: number, puristname: string}

Properties
distdeg (number)
phase (string)
time (number)
rayparam (number)
takeoff (number)
incident (number)
puristdist (number)
puristname (string)

isValidTraveltimeJsonType

src/traveltime.ts

Verifies that JSON matches the types we expect, for typescript.

isValidTraveltimeJsonType(v: any): any
Parameters
v (any) JSON object, usually from the traveltime web service
Returns
any: true if matches expected structure

isValidTraveltimeArrivalType

src/traveltime.ts
isValidTraveltimeArrivalType(v: any): any
Parameters
v (any)
Returns
any

convertTravelTimeLineToObject

src/traveltime.ts

converts a text line from the text format into an TraveltimeArrivalType object like what is returned by the json format.

convertTravelTimeLineToObject(ttimeline: string): TraveltimeArrivalType
Parameters
ttimeline (string) travel time output line for an arrival
Returns
TraveltimeArrivalType: parsed travel time arrival

createOriginArrival

src/traveltime.ts

Creates a fake arrival for the origin time, useful to display a flag at origin time similar to the P and S arrival.

createOriginArrival(distdeg: number): TraveltimeArrivalType
Parameters
distdeg (number) earthquake to station distance, in degrees
Returns
TraveltimeArrivalType: an arrival for the origin

TraveltimeQuery

src/traveltime.ts

Query to the IRIS traveltime webservice, based on the TauP Toolkit. See https://service.iris.edu/irisws/traveltime/1/ and https://www.seis.sc.edu/TauP/

new TraveltimeQuery(host: (string | null)?)

Extends FDSNCommon

Parameters
host ((string | null)?) optional host to connect to, defaults to IRIS
Instance Members
protocol(value?)
getProtocol()
host(value?)
getHost()
port(value?)
getPort()
nodata(value?)
getNodata()
specVersion(value?)
getSpecVersion()
evdepth(value?)
evdepthInMeter(value?)
getEvdepth()
distdeg(value?)
getDistdeg()
model(value?)
getModel()
phases(value?)
getPhases()
stalat(value?)
getStalat()
stalon(value?)
getStalon()
latLonFromStation(station)
receiverdepth(value?)
receiverdepthInMeter(value?)
receiverdepthFromChannel(channel)
getReceiverdepth()
evlat(value?)
getEvlat()
evlon(value?)
getEvlon()
latLonFromQuake(quake)
format(value?)
getFormat()
noheader(value?)
getNoheader()
timeout(value?)
getTimeout()
queryText()
querySvg()
queryWadl()
formBaseURL()
formURL()
queryTauPVersion()
formTauPVersionURL()
formWadlURL()

FAKE_EMPTY_TEXT_MODEL

src/traveltime.ts
FAKE_EMPTY_TEXT_MODEL

FAKE_EMPTY_TEXT_HEADERS

src/traveltime.ts
FAKE_EMPTY_TEXT_HEADERS

createEmptyTraveltimeJson

src/traveltime.ts
createEmptyTraveltimeJson(ttquery: TraveltimeQuery): TraveltimeJsonType
Parameters
ttquery (TraveltimeQuery)
Returns
TraveltimeJsonType

FAKE_EMPTY_SVG

src/traveltime.ts
FAKE_EMPTY_SVG