QML_NS

Type: string

BED_NS

Type: string

IRIS_NS

Type: string

ANSS_NS

Type: string

ANSS_CATALOG_NS

src/quakeml.ts
ANSS_CATALOG_NS

Type: string

USGS_HOST

Type: string

UNKNOWN_MAG_TYPE

src/quakeml.ts
UNKNOWN_MAG_TYPE

Type: string

UNKNOWN_PUBLIC_ID

src/quakeml.ts
UNKNOWN_PUBLIC_ID

Type: string

FAKE_ORIGIN_TIME

src/quakeml.ts
FAKE_ORIGIN_TIME

Represent a QuakeML Event. Renamed to Quake as Event conflicts with other uses in javascript.

new Quake(publicId: string)
Parameters
publicId (string)
Static Members
createFromXml(qml, host?)
extractEventId(qml, host?)
Instance Members
eventId
publicId
description
magnitudeList
originList
pickList
preferredOriginId
_preferredOrigin
preferredMagnitudeId
_preferredMagnitude
preferredOrigin
origin
preferredMagnitude
magnitude
time
latitude
longitude
depth
depthKm
arrivals
picks
toString()

Represents a QuakeML Origin.

new Origin()
Static Members
createFromXml(qml, allPicks)
Instance Members
time
latitude
longitude
depth
arrivalList
publicId
toString()
arrivals

Represents a QuakeML Magnitude.

new Magnitude(mag: number, type: string)
Parameters
mag (number)
type (string)
Static Members
createFromXml(qml)
Instance Members
type
publicId
toString()

Represents a QuakeML Arrival, a combination of a Pick with a phase name.

new Arrival(phase: string, pick: Pick)
Parameters
phase (string)
pick (Pick)
Static Members
createFromXml(arrivalQML, allPicks)
Instance Members
phase
pick
publicId

Represents a QuakeML Pick.

new Pick(time: DateTime, networkCode: string, stationCode: string, locationCode: string, channelCode: string)
Parameters
time (DateTime)
networkCode (string)
stationCode (string)
locationCode (string)
channelCode (string)
Static Members
createFromXml(pickQML)
Instance Members
time
networkCode
stationCode
locationCode
channelCode
publicId
isAtStation(station)
isOnChannel(channel)
toString()

parseQuakeML

src/quakeml.ts

Parses a QuakeML xml document into seisplotjs objects

parseQuakeML(rawXml: Document, host: string?): Array<Quake>
Parameters
rawXml (Document) the xml Document to parse
host (string?) optional source of the xml, helpful for parsing the eventid
Returns
Array<Quake>: array of Quake objects

createQuakeFromValues

src/quakeml.ts
createQuakeFromValues(publicId: string, time: DateTime, latitude: number, longitude: number, depth: number): Quake
Parameters
publicId (string)
time (DateTime)
latitude (number)
longitude (number)
depth (number)
Returns
Quake
parseUtil
Static Members
_grabFirstEl
_grabFirstElNS
_grabFirstElText
_grabFirstElFloat
_grabFirstElInt
_grabAttribute
_requireAttribute
_grabAttributeNS