seisplotjs.seismogram

2.0.0
COUNT_UNIT

Type: string

HighLowType

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

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

Type: {name: string, time: moment, type: string, description: string}

Properties
name (string)
time (moment)
type (string)
description (string)

SeismogramSegment

src/seismogram.js

A contiguous segment of a Seismogram.

new SeismogramSegment(yArray: (Array<seedcodec.EncodedDataSegment> | Int32Array | Float32Array | Float64Array), sampleRate: number, startTime: moment)
Parameters
yArray ((Array<seedcodec.EncodedDataSegment> | Int32Array | Float32Array | Float64Array)) array of Y sample values, ie the timeseries
sampleRate (number) sample rate of the seismogram, hertz
startTime (moment) start time of seismogrm as a momentjs moment in utc or a string that can be parsed
Instance Members
_y
_compressed
_endTime_cache
_endTime_cache_numPoints
networkCode
stationCode
locationCode
channelCode
yUnit
_highlow
y
startTime
startTime
endTime
timeWindow
sampleRate
sampleRate
numPoints
netCode
staCode
locId
locCode
chanCode
isEncoded()
getEncoded()
yAtIndex(i)
findMinMax(minMaxAccumulator?)
timeOfSample(i)
indexOfTime(t)
hasCodes()
codes(sep)
seisId()
cloneWithNewData(clonedData, clonedStartTime)
cut(timeWindow)
_invalidate_endTime_cache()

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
Static Members
createFromContiguousData(yArray, sampleRate, startTime)
Instance Members
_segmentArray
_startTime
_endTime
checkAllSimilar()
checkSimilar(f, s)
findStartEnd()
findMinMax(minMaxAccumulator?)
mean()
startTime
endTime
timeRange
networkCode
networkCode
stationCode
stationCode
locationCode
locationCode
channelCode
channelCode
sampleRate
yUnit
numPoints
hasCodes()
codes()
append(seismogram)
cut(timeWindow)
trim(timeWindow)
break(duration)
isContiguous()
y
clone()
cloneWithNewData(newY)

NonContiguousData

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

Extends Error

Parameters
message (string?)

ensureIsSeismogram

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

SeismogramDisplayData

src/seismogram.js
new SeismogramDisplayData(timeWindow: StartEndDuration)
Parameters
timeWindow (StartEndDuration)
Static Members
fromSeismogram(seismogram)
fromChannelAndTimeWindow(channel, timeWindow)
fromChannelAndTimes(channel, startTime, endTime)
Instance Members
_id
label
markerList
channel
_instrumentSensitivity
quakeList
timeWindow
alignmentTime
doShow
_statsCache
addQuake(quake)
addMarkers(markers)
hasQuake()
hasSeismogram()
hasChannel()
hasSensitivity()
id
id
networkCode
stationCode
locationCode
channelCode
codes(sep)
startTime
endTime
sensitivity
sensitivity
seismogram
seismogram
calcStats()
cloneWithNewSeismogram(seis)
cut(timeWindow)

SeismogramDisplayStats

src/seismogram.js
new SeismogramDisplayStats()
Instance Members
trendSlope

findStartEnd

src/seismogram.js
findStartEnd(sddList: Array<SeismogramDisplayData>): StartEndDuration
Parameters
Returns
StartEndDuration
findMinMax(sddList: Array<SeismogramDisplayData>): Array<number>
Parameters
Returns
Array<number>

findMinMaxOverTimeRange

src/seismogram.js
findMinMaxOverTimeRange(sddList: Array<SeismogramDisplayData>, timeWindow: StartEndDuration): Array<number>
Parameters
timeWindow (StartEndDuration)
Returns
Array<number>

findStartEndOfSeismograms

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

findMinMaxOfSeismograms

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