seisplotjs

3.0.0-alpha.1
COUNT_UNIT

Type: string

HighLowType

Type: {xScaleDomain: Array<Date>, xScaleRange: Array<number>, secondsPerPixel: number, samplesPerPixel: number, highlowArray: Array<number>}

Properties
xScaleDomain (Array<Date>)
xScaleRange (Array<number>)
secondsPerPixel (number)
samplesPerPixel (number)
highlowArray (Array<number>)
MarkerType

Type: {name: string, time: DateTime, markertype: string, description: string, link: string?}

Properties
name (string)
time (DateTime)
markertype (string)
description (string)
link (string?)

Represents time window for a single channel that may contain gaps or overlaps, but is otherwise more or less continuous, or at least adjacent data from the channel. Each segment within the Seismogram will have the same units, channel identifiers and sample rate, but cover different times.

new Seismogram(segmentArray: (SeismogramSegment | Array<SeismogramSegment>))
Parameters
segmentArray ((SeismogramSegment | Array<SeismogramSegment>))
Static Members
createFromContiguousData(yArray, sampleRate, startTime)
Instance Members
_segmentArray
_startTime
_endTime
checkAllSimilar()
checkSimilar(f, s)
findStartEnd()
findMinMax(minMaxAccumulator?)
mean()
start
startTime
end
endTime
timeRange
timeWindow
networkCode
networkCode
stationCode
stationCode
locationCode
locationCode
channelCode
channelCode
sourceId
sampleRate
samplePeriod
yUnit
numPoints
hasCodes()
nslc
nslcId
codes()
segments
append(seismogram)
cut(timeRange)
trim(timeRange)
break(duration)
isContiguous()
merge()
y
clone()
cloneWithNewData(newY)

NonContiguousData

src/seismogram.ts
new NonContiguousData(message: string?)

Extends Error

Parameters
message (string?)

ensureIsSeismogram

src/seismogram.ts
ensureIsSeismogram(seisSeismogram: (Seismogram | SeismogramSegment)): Seismogram
Parameters
seisSeismogram ((Seismogram | SeismogramSegment))
Returns
Seismogram

SeismogramDisplayData

src/seismogram.ts
new SeismogramDisplayData(timeRange: Interval)
Parameters
timeRange (Interval)
Static Members
fromSeismogram(seismogram)
fromContiguousData(yArray, sampleRate, startTime)
fromChannelAndTimeWindow(channel, timeRange)
fromChannelAndTimes(channel, startTime, endTime)
fromCodesAndTimes(networkCode, stationCode, locationCode, channelCode, startTime, endTime)
Instance Members
_id
_sourceId
label
markerList
traveltimeList
channel
channelCodesHolder
_instrumentSensitivity
quakeList
timeRange
alignmentTime
doShow
_statsCache
addQuake(quake)
addMarker(marker)
addMarkers(markers)
addTravelTimes(ttimes)
hasQuake()
quake
hasSeismogram()
hasChannel()
hasSensitivity()
id
id
networkCode
stationCode
locationCode
channelCode
sourceId
nslc
nslcId
codes(sep)
startTime
start
endTime
end
timeWindow
numPoints
associateChannel(nets)
alignStartTime()
alignOriginTime()
alignPhaseTime(phaseRegExp)
relativeTimeWindow(startOffset, duration)
sensitivity
sensitivity
min
max
mean
middle
seismogram
seismogram
segments
distazList
distaz
cloneWithNewSeismogram(seis)
cut(timeRange)
toString()

SeismogramDisplayStats

src/seismogram.ts
new SeismogramDisplayStats()
Instance Members
trendSlope
middle

findStartEnd

src/seismogram.ts
findStartEnd(sddList: Array<SeismogramDisplayData>): Interval
Parameters
Returns
Interval

findMaxDuration

src/seismogram.ts
findMaxDuration(sddList: Array<SeismogramDisplayData>): Duration
Parameters
Returns
Duration

findMaxDurationOfType

src/seismogram.ts
findMaxDurationOfType(type: string, sddList: Array<SeismogramDisplayData>): Duration
Parameters
type (string)
Returns
Duration
findMinMax(sddList: Array<SeismogramDisplayData>, doGain: any, centeredAmp: any): Array<number>
Parameters
doGain (any = false)
centeredAmp (any = false)
Returns
Array<number>

findMinMaxOverTimeRange

src/seismogram.ts
findMinMaxOverTimeRange(sddList: Array<SeismogramDisplayData>, timeRange: Interval, doGain: any, centeredAmp: any): Array<number>
Parameters
timeRange (Interval)
doGain (any = false)
centeredAmp (any = false)
Returns
Array<number>

findMinMaxOverRelativeTimeRange

src/seismogram.ts
findMinMaxOverRelativeTimeRange(sddList: Array<SeismogramDisplayData>, startOffset: Duration, duration: Duration, doGain: any, centeredAmp: any): Array<number>
Parameters
startOffset (Duration)
duration (Duration)
doGain (any = false)
centeredAmp (any = false)
Returns
Array<number>

findStartEndOfSeismograms

src/seismogram.ts
findStartEndOfSeismograms(data: Array<Seismogram>, accumulator: Interval?): Interval
Parameters
data (Array<Seismogram>)
accumulator (Interval?)
Returns
Interval

findMinMaxOfSeismograms

src/seismogram.ts
findMinMaxOfSeismograms(data: Array<Seismogram>, minMaxAccumulator: Array<number>?): Array<number>
Parameters
data (Array<Seismogram>)
minMaxAccumulator (Array<number>?)
Returns
Array<number>

findMinMaxOfSDD

src/seismogram.ts
findMinMaxOfSDD(data: Array<SeismogramDisplayData>, minMaxAccumulator: Array<number>?): Array<number>
Parameters
minMaxAccumulator (Array<number>?)
Returns
Array<number>

uniqueStations

src/seismogram.ts
uniqueStations(seisData: Array<SeismogramDisplayData>): Array<Station>
Parameters
Returns
Array<Station>

uniqueChannels

src/seismogram.ts
uniqueChannels(seisData: Array<SeismogramDisplayData>): Array<Channel>
Parameters
Returns
Array<Channel>

uniqueQuakes

src/seismogram.ts
uniqueQuakes(seisData: Array<SeismogramDisplayData>): Array<Quake>
Parameters
Returns
Array<Quake>