1.2.4
Generally either
import * as waveformplot from 'seisplotjs-waveformplot'
fdsndataselect.xxxx
or
import * as seisplotjs from 'seisplotjs'
seisplotjs.waveformplot.xxxx
Core functions for using plotting seismic data
(string)
void
(string)
Particle motion.
(any)
(Array<miniseed.model.Seismogram>)
(moment)
(moment)
Type: MarginType
Type: any
Type: any
Type: any
Type: any
Type: any
Type: any
Type: any
Type: any
Type: any
(miniseed.model.Seismogram)
(miniseed.model.Seismogram)
(any)
A seismogram plot, using d3. Note that you must have
stroke and fill set in css like:
path.seispath {
stroke: skyblue;
fill: none;
}
in order to have the seismogram display.
(any)
(Array<miniseed.model.Seismogram>)
(moment)
(moment)
Type: any
Type: Array<MarkerType>
Type: MarginType
Type: Array<ScaleChangeListenerType>
Type: any
Type: any
Type: any
Type: any
Type: any
Type: any
Type: any
Type: any
Type: any
Type: any
Type: any
Type: any
Type: any
void
void
void
(miniseed.model.Seismogram)
(any)
void
(any)
void
void
void
void
(Seismograph)
void
(any)
void
(Array<MarkerType>)
(any)
void
(moment)
Seismograph
(moment)
Seismograph
Seismograph
(number)
Seismograph
(number)
Seismograph
(MarginType)
Seismograph
Sets the title as simple string or array of strings. If an array then each item will be in a separate tspan for easier formatting.
Seismograph
(string)
Seismograph
(string)
Seismograph
(string)
Seismograph
(string)
Seismograph
Seismograph
Seismograph
Seismograph
Array<MarkerType>
((Array<MarkerType> | MarkerType))
Seismograph
void
(TimeRangeType)
void
(moment)
Any two of start, end and duration can be specified, or just duration which then assumes end is now. start and end are Moment objects, duration is in seconds. clockOffset is the milliseconds that should be subtracted from the local time to get real world time, ie local - UTC or new Date().getTime() - serverDate.getTime() default is zero.
((Array<miniseed.model.Seismogram> | miniseed.model.Seismogram))
(TimeRangeType)
TimeRangeType
((Array<miniseed.model.Seismogram> | miniseed.model.Seismogram))
Array<number>
Core classes returned from the above functions.
Type: {top: number, right: number, bottom: number, left: number}
Type: {notifyScaleChange: function (value: any): void}
(function (value: any): void)
Type: {name: string, time: moment, type: string}
Type: {segments: Array<Array<miniseed.model.Seismogram>>, startDate: moment, endDate: moment, request: dataselect.DataSelectQuery, svgParent: any, responseText: string, statusCode: number}
Type: {start: moment, end: moment}
Re-exporting imported modules for easier reuse.
Stuff I forgot to put in the TOC.
Deprecated, do not use.
Extends Seismograph
loads and parses data into an array of miniseed records
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
deprecated - use createPlotsBySelectorPromise instead.
create seismogram plots by selecting elements using the supplied css selector. Each element is expected to have attributes defined for net, sta, loc, chan and two of start, end and duration. Optionally, end will default to NOW if neither start or end are given, so only giving duration shows the most recent duration seconds from current time. Optionally, host may be given to choose an Fdsn FDSN dataselect web service for data retrieval, which defaults to service.iris.edu.
Note that css style for the selector should set both stoke to a color
and fill to none in order for the seismogram to display.
This can be done by:
yourselector {
stroke: skyblue;
fill: none;
}
Returns an array of Promises, one per selected element.
(string)
Promise<Array<PlotDataType>>