QML_NS

Type: string

BED_NS

Type: string

IRIS_NS

Type: string

ANSS_NS

Type: string

ANSS_CATALOG_NS

src/quakeml.js
ANSS_CATALOG_NS

Type: string

USGS_HOST

Type: string

UNKNOWN_MAG_TYPE

src/quakeml.js
UNKNOWN_MAG_TYPE

Type: string

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

new Quake()
Static Members
createFromXml(qml, host?)
extractEventId(qml, host?)
Instance Members
eventId
publicId
_time
latitude
longitude
depth
description
magnitude
magnitudeList
originList
pickList
preferredOriginId
preferredOrigin
preferredMagnitudeId
preferredMagnitude
time
time
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: moment, networkCode: string, stationCode: string, locationCode: string, channelCode: string)
Parameters
time (moment)
networkCode (string)
stationCode (string)
locationCode (string)
channelCode (string)
Static Members
createFromXml(pickQML)
Instance Members
time
networkCode
stationCode
locationCode
channelCode
publicId

parseQuakeML

src/quakeml.js

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
parseUtil
Static Members
_grabFirstEl
_grabFirstElNS
_grabFirstElText
_grabFirstElFloat
_grabFirstElInt
_grabAttribute
_grabAttributeNS