seisplotjs

3.2.6
QML_NS

Type: string

BED_NS

Type: string

IRIS_NS

Type: string

ANSS_NS

Type: string

ANSS_CATALOG_NS

dist/quakeml.mjs
ANSS_CATALOG_NS

Type: string

USGS_HOST

Type: string

UNKNOWN_MAG_TYPE

dist/quakeml.mjs
UNKNOWN_MAG_TYPE

Type: string

UNKNOWN_PUBLIC_ID

dist/quakeml.mjs
UNKNOWN_PUBLIC_ID

Type: string

FAKE_ORIGIN_TIME

dist/quakeml.mjs
FAKE_ORIGIN_TIME

FAKE_EMPTY_XML

dist/quakeml.mjs
FAKE_EMPTY_XML

Type: string

QUAKE_CLICK_EVENT

dist/quakeml.mjs
QUAKE_CLICK_EVENT

Type: string

isQuakeClickCustomEvent

dist/quakeml.mjs

Typescript guard for quakeclick CustomEvents.

isQuakeClickCustomEvent(event: any): any
Parameters
event (any) generic event to ensure is a CustomEvent
Returns
any: true if is correct type

createQuakeClickEvent

dist/quakeml.mjs

Utility function to create CustomEvent for clicking on a Quake, for example in a map or table.

createQuakeClickEvent(q: any, mouseclick: any): any
Parameters
q (any) Quake clicked on
mouseclick (any) original mouse click Event
Returns
any: CustomEvent populated with quake field in detail.

EventParameters

dist/quakeml.mjs

Represent a QuakeML EventParameters.

new EventParameters()

Extends BaseElement

Static Members
createFromXml(eventParametersQML, host)

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

new Quake()

Extends BaseElement

Static Members
createFromXml(qml, host)
extractEventId(qml, _host, host)
Instance Members
hasPreferredOrigin()
hasOrigin()
origin
hasPreferredMagnitude()
hasMagnitude()
magnitude
latitude
longitude
depthKm
description
arrivals
toString()

EventDescription

dist/quakeml.mjs

Represents a QuakeML EventDescription.

new EventDescription(text: any)
Parameters
text (any)
Static Members
createFromXml(descriptionQML)
Instance Members
toString()

Represents a QuakeML Amplitude.

new Amplitude(genericAmplitude: any)

Extends BaseElement

Parameters
genericAmplitude (any)
Static Members
createFromXml(amplitudeQML, allPicks)

StationMagnitude

dist/quakeml.mjs

Represents a QuakeML StationMagnitude.

new StationMagnitude(origin: any, mag: any)

Extends BaseElement

Parameters
origin (any)
mag (any)
Static Members
createFromXml(stationMagnitudeQML, allOrigins, allAmplitudes)

Represents a QuakeML TimeWindow.

new TimeWindow(begin: any, end: any, reference: any)
Parameters
begin (any)
end (any)
reference (any)
Static Members
createFromXml(timeWindowQML)

Represents a QuakeML Origin.

new Origin(time: any, latitude: any, longitude: any)

Extends BaseElement

Parameters
time (any)
latitude (any)
longitude (any)
Static Members
createFromXml(qml, allPicks)
Instance Members
toString()
time
latitude
latitude
longitude
longitude
depthKm
depth
arrivals

CompositeTime

dist/quakeml.mjs

Represents a QuakeML CompositeTime.

new CompositeTime()
Static Members
createFromXml(qml)

OriginUncertainty

dist/quakeml.mjs

Represents a QuakeML OriginUncertainty.

new OriginUncertainty()
Static Members
createFromXml(qml)

ConfidenceEllipsoid

dist/quakeml.mjs

Represents a QuakeML ConfidenceEllipsoid.

new ConfidenceEllipsoid(semiMajorAxisLength: any, semiMinorAxisLength: any, semiIntermediateAxisLength: any, majorAxisPlunge: any, majorAxisAzimuth: any, majorAxisRotation: any)
Parameters
semiMajorAxisLength (any)
semiMinorAxisLength (any)
semiIntermediateAxisLength (any)
majorAxisPlunge (any)
majorAxisAzimuth (any)
majorAxisRotation (any)
Static Members
createFromXml(qml)

OriginQuality

dist/quakeml.mjs

Represents a QuakeML OriginQuality.

new OriginQuality()
Static Members
createFromXml(qml)

Represents a QuakeML Magnitude.

new Magnitude(mag: any, type: any)

Extends BaseElement

Parameters
mag (any)
type (any)
Static Members
createFromXml(qml, allOrigins, allStationMagnitudes)
Instance Members
toString()
mag

StationMagnitudeContribution

dist/quakeml.mjs

Represents a QuakeML StationMagnitudeContribution.

new StationMagnitudeContribution(stationMagnitude: any)
Parameters
stationMagnitude (any)
Static Members
createFromXml(qml, allStationMagnitudes)

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

new Arrival(phase: any, pick: any)

Extends BaseElement

Parameters
phase (any)
pick (any)
Static Members
createFromXml(arrivalQML, allPicks)

Represents a QuakeML Pick.

new Pick(time: any, waveformID: any)

Extends BaseElement

Parameters
time (any)
waveformID (any)
Static Members
createFromXml(pickQML)
Instance Members
time
networkCode
stationCode
locationCode
channelCode
isAtStation(station)
isOnChannel(channel)
toString()

FocalMechanism

dist/quakeml.mjs

Represents a QuakeML Focal Mechanism.

new FocalMechanism()

Extends BaseElement

Static Members
createFromXml(focalMechQML, allOrigins, allMagnitudes)

NodalPlanes

dist/quakeml.mjs

Represents a QuakeML NodalPlanes.

new NodalPlanes()
Static Members
createFromXml(nodalPlanesQML)

Represents a QuakeML NodalPlane.

new NodalPlane(strike: any, dip: any, rake: any)
Parameters
strike (any)
dip (any)
rake (any)
Static Members
createFromXml(nodalPlaneQML)

PrincipalAxes

dist/quakeml.mjs

Represents a QuakeML PrincipalAxes.

new PrincipalAxes(tAxis: any, pAxis: any)
Parameters
tAxis (any)
pAxis (any)
Static Members
createFromXml(princpalAxesQML)

Represents a QuakeML Axis.

new Axis(azimuth: any, plunge: any, length: any)
Parameters
azimuth (any)
plunge (any)
length (any)
Static Members
createFromXml(axisQML)

MomentTensor

dist/quakeml.mjs

Represents a QuakeML MomentTensor.

new MomentTensor(derivedOrigin: any)

Extends BaseElement

Parameters
derivedOrigin (any)
Static Members
createFromXml(momentTensorQML, allOrigins, allMagnitudes)

Represents a QuakeML Tensor.

new Tensor(Mrr: any, Mtt: any, Mpp: any, Mrt: any, Mrp: any, Mtp: any)
Parameters
Mrr (any)
Mtt (any)
Mpp (any)
Mrt (any)
Mrp (any)
Mtp (any)
Static Members
createFromXml(tensorQML)

SourceTimeFunction

dist/quakeml.mjs

Represents a QuakeML SourceTimeFunction.

new SourceTimeFunction(type: any, duration: any)
Parameters
type (any)
duration (any)
Static Members
createFromXml(sourceTimeFunctionQML)

Represents a QuakeML DataUsed.

new DataUsed(waveType: any)
Parameters
waveType (any)
Static Members
createFromXml(dataUsedQML)

Represents a QuakeML WaveformID.

new WaveformID(networkCode: any, stationCode: any)
Parameters
networkCode (any)
stationCode (any)
Static Members
createFromXml(waveformQML)
Instance Members
toString()
new Quantity(value: any)
Parameters
value (any)
Static Members
_createFromXml(quantityQML, grab, grabUncertainty)
createRealQuantityFromXml(realQuantityQML)
createIntegerQuantityFromXml(integerQuantityQML)
createTimeQuantityFromXml(timeQuantityQML)

Represents a QuakeML comment.

new Comment(text: any)
Parameters
text (any)
Static Members
createFromXml(commentQML)

CreationInfo

dist/quakeml.mjs
new CreationInfo()
Static Members
createFromXml(creationInfoQML)

parseQuakeML

dist/quakeml.mjs

Parses a QuakeML xml document into seisplotjs objects

parseQuakeML(rawXml: any, host: any): any
Parameters
rawXml (any) the xml Document to parse
host (any) optional source of the xml, helpful for parsing the eventid
Returns
any: EventParameters object

createQuakeFromValues

dist/quakeml.mjs
createQuakeFromValues(publicId: any, time: any, latitude: any, longitude: any, depth_meter: any)
Parameters
publicId (any)
time (any)
latitude (any)
longitude (any)
depth_meter (any)

fetchQuakeML

dist/quakeml.mjs

Fetches and parses QuakeML from a URL. This can be used in instances where a static quakeML file is available on a web site instead of via a web service with query paramters.

fetchQuakeML(url: any, timeoutSec: any, nodata: any): any
Parameters
url (any) the url to download from
timeoutSec (any = 10) timeout seconds in case of failed connection
nodata (any = 204) nodata http error code
Returns
any: Promise to parsed quakeML as an EventParameters object

mightBeQuakeML

dist/quakeml.mjs
mightBeQuakeML(buf: any)
Parameters
buf (any)

createUnknownId

dist/quakeml.mjs
createUnknownId()

ZERO_MAGNITUDE

dist/quakeml.mjs
ZERO_MAGNITUDE
parseUtil
Static Members
_grabFirstEl
_grabFirstElNS
_grabFirstElText
_grabFirstElFloat
_grabFirstElInt
_grabAttribute
_requireAttribute
_grabAttributeNS