seisplotjs

3.2.6
COUNT_UNIT

Type: 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: any)
Parameters
segmentArray (any)
Static Members
fromContiguousData(yArray, sampleRate, startTime, sourceId)
Instance Members
checkAllSimilar()
checkSimilar(f, s)
findStartEnd()
findMinMax(minMaxAccumulator)
mean()
startTime
endTime
timeRange
networkCode
stationCode
locationCode
channelCode
sourceId
sourceId
sampleRate
samplePeriod
isYUnitCount()
numPoints
hasCodes()
nslc
codes()
segments
append(seismogram)
cut(timeRange)
trim(timeRange)
break(duration)
isContiguous()
merge()
y
y
clone()
cloneWithNewData(newY)

NonContiguousData

dist/seismogram.mjs
new NonContiguousData(message: any)

Extends Error

Parameters
message (any)

ensureIsSeismogram

dist/seismogram.mjs
ensureIsSeismogram(seisSeismogram: any)
Parameters
seisSeismogram (any)

SeismogramDisplayData

dist/seismogram.mjs
new SeismogramDisplayData(timeRange: any)
Parameters
timeRange (any)
Static Members
fromSeismogram(seismogram)
fromSeismogramSegment(seisSegment)
fromContiguousData(yArray, sampleRate, startTime, sourceId)
fromChannelAndTimeWindow(channel, timeRange)
fromChannelAndTimes(channel, startTime, endTime)
fromSourceIdAndTimes(sourceId, startTime, endTime)
fromCodesAndTimes(networkCode, stationCode, locationCode, channelCode, startTime, endTime)
Instance Members
addQuake(quake)
addQuakeId(publicId)
addMarker(marker)
addMarkers(markers)
getMarkers()
clearMarkers()
addTravelTimes(ttimes)
hasQuake()
hasSeismogram()
append(seismogram)
hasChannel()
hasSensitivity()
id
id
networkCode
stationCode
locationCode
channelCode
sourceId
nslc
codes(sep)
startTime
endTime
numPoints
associateChannel(nets)
alignStartTime()
alignOriginTime()
alignPhaseTime(phaseRegExp)
relativeTimeWindow(alignmentOffset, duration)
sensitivity
sensitivity
seismogram
seismogram
segments
calcStats()
distazList
distaz
clone()
cloneWithNewSeismogram(seis)
cut(timeRange)
trim(timeRange)
trimInPlace(timeRange)
toString()

SeismogramDisplayStats

dist/seismogram.mjs
new SeismogramDisplayStats()
Instance Members
findStartEnd(sddList: any)
Parameters
sddList (any)

findMaxDuration

dist/seismogram.mjs
findMaxDuration(sddList: any)
Parameters
sddList (any)

findMaxDurationOfType

dist/seismogram.mjs

Finds max duration of from one of starttime of sdd, origin time of earthquake, or alignmentTime.

findMaxDurationOfType(type: any, sddList: any): any
Parameters
type (any) one of start, origin or align
sddList (any) list of seis data
Returns
any: max duration

Finds the min and max amplitude over the seismogram list, considering gain and how to center the seismograms, either Raw, MinMax or Mean.

findMinMax(sddList: any, doGain: any, amplitudeMode: any): any
Parameters
sddList (any) list of seismogramdisplaydata
doGain (any = false) should gain be used
amplitudeMode (any = AMPLITUDE_MODE.MinMax) centering style
Returns
any: min max

findMinMaxOverTimeRange

dist/seismogram.mjs
findMinMaxOverTimeRange(sddList: any, timeRange: any, doGain: any, amplitudeMode: any)
Parameters
sddList (any)
timeRange (any = null)
doGain (any = false)
amplitudeMode (any = AMPLITUDE_MODE.MinMax)

findMinMaxOverRelativeTimeRange

dist/seismogram.mjs
findMinMaxOverRelativeTimeRange(sddList: any, alignmentOffset: any, duration: any, doGain: any, amplitudeMode: any)
Parameters
sddList (any)
alignmentOffset (any)
duration (any)
doGain (any = false)
amplitudeMode (any = AMPLITUDE_MODE.MinMax)
calcMinMax(sdd: any, timeRange: any, doGain: any, amplitudeMode: any)
Parameters
sdd (any)
timeRange (any = null)
doGain (any = false)
amplitudeMode (any = AMPLITUDE_MODE.MinMax)

findStartEndOfSeismograms

dist/seismogram.mjs
findStartEndOfSeismograms(data: any, accumulator: any)
Parameters
data (any)
accumulator (any)

findMinMaxOfSeismograms

dist/seismogram.mjs
findMinMaxOfSeismograms(data: any, minMaxAccumulator: any)
Parameters
data (any)
minMaxAccumulator (any)

findMinMaxOfSDD

dist/seismogram.mjs
findMinMaxOfSDD(data: any, minMaxAccumulator: any)
Parameters
data (any)
minMaxAccumulator (any)

uniqueStations

dist/seismogram.mjs
uniqueStations(seisData: any)
Parameters
seisData (any)

uniqueChannels

dist/seismogram.mjs
uniqueChannels(seisData: any)
Parameters
seisData (any)

uniqueLocationCodes

dist/seismogram.mjs
uniqueLocationCodes(seisData: any)
Parameters
seisData (any)

uniqueBandCodes

dist/seismogram.mjs
uniqueBandCodes(seisData: any)
Parameters
seisData (any)

uniqueSourceCodes

dist/seismogram.mjs
uniqueSourceCodes(seisData: any)
Parameters
seisData (any)

uniqueSubsourceCodes

dist/seismogram.mjs
uniqueSubsourceCodes(seisData: any)
Parameters
seisData (any)

uniqueSourceIds

dist/seismogram.mjs
uniqueSourceIds(seisData: any)
Parameters
seisData (any)
uniqueQuakes(seisData: any)
Parameters
seisData (any)