3.1.4
Type: string
Type: {xScaleDomain: Array<Date>, xScaleRange: Array<number>, secondsPerPixel: number, samplesPerPixel: number, highlowArray: Array<number>}
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.
((SeismogramSegment | Array<SeismogramSegment>))
factory method to create a single segment Seismogram from either encoded data or a TypedArray, along with sample rate and start time.
((Array<seedcodec.EncodedDataSegment> | Int32Array | Float32Array | Float64Array))
array of encoded data or typed array
(number)
sample rate, samples per second of the data
(DateTime)
time of first sample
(FDSNSourceId?)
optional source id
Seismogram
:
seismogram initialized with the data
Type: Interval
Type: (null | Int32Array | Float32Array | Float64Array)
(SeismogramSegment)
(SeismogramSegment)
Interval
(MinMaxable?)
MinMaxable
Type: DateTime
DateTime
Type: DateTime
DateTime
Type: DateTime
DateTime
Type: DateTime
DateTime
Type: Interval
Interval
return FDSN source id as a string.
Type: FDSNSourceId
FDSNSourceId
:
FDSN source id
Type: FDSNSourceId
(FDSNSourceId)
Type: NslcId
NslcId
((SeismogramSegment | Seismogram))
Cut the seismogram. Creates a new seismogram with all datapoints contained in the time window.
(Interval)
start and end of cut
(null | Seismogram)
:
new seismogram
Creates a new Seismogram composed of all seismogram segments that overlap the given time window. If none do, this returns null. This is a faster but coarser version of cut as it only removes whole segments that do not overlap the time window. For most seismograms that consist of a single contiguous data segment, this will do nothing.
(Interval)
time range to trim to
(null | Seismogram)
:
new seismogram if data in the window, null otherwise
(Duration)
void
Merges all segments into a single array of the same type as the first segment. No checking is done for gaps or overlaps, this is a simple congatination. Be careful!
(Int32Array | Float32Array | Float64Array)
:
contatenated data
Gets the timeseries as an typed array if it is contiguous.
Type: (Int32Array | Float32Array | Float64Array)
(Int32Array | Float32Array | Float64Array)
:
timeseries as array of number
Type: (Int32Array | Float32Array | Float64Array)
((Int32Array | Float32Array | Float64Array))
Seismogram
((Int32Array | Float32Array | Float64Array))
Seismogram
Extends Error
(string?)
((Seismogram | SeismogramSegment))
Seismogram
(Interval)
(Seismogram)
SeismogramDisplayData
Create a Seismogram from the segment, then call fromSeismogram to create the SeismogramDisplayData;
(SeismogramSegment)
segment of contiguous data
SeismogramDisplayData
:
new SeismogramDisplayData
Useful for creating fake data from an array, sample rate and start time
((Array<seedcodec.EncodedDataSegment> | Int32Array | Float32Array | Float64Array))
fake data
(number)
samples per second
(DateTime)
start of data, time of first point
(FDSNSourceId?)
optional source id
SeismogramDisplayData
:
seismogramdisplaydata
(Channel)
(Interval)
SeismogramDisplayData
(Channel)
(DateTime)
(DateTime)
SeismogramDisplayData
(FDSNSourceId)
(DateTime)
(DateTime)
SeismogramDisplayData
(string)
(string)
(string)
(string)
(DateTime)
(DateTime)
SeismogramDisplayData
Type: (FDSNSourceId | null)
Type: (Channel | null)
Type: (InstrumentSensitivity | null)
Type: Interval
Type: DateTime
Type: (SeismogramDisplayStats | null)
(MarkerType)
Type: (Quake | null)
(Quake | null)
any
((SeismogramSegment | Seismogram))
any
any
return FDSN source id as a string. Uses this.channel if it exists, this.seismogram if not.
Type: FDSNSourceId
FDSNSourceId
:
FDSN source id
Type: NslcId
NslcId
Type: DateTime
DateTime
Type: DateTime
DateTime
Type: DateTime
DateTime
Type: DateTime
DateTime
Create a time window relative to the alignmentTime if set, or the start time if not. Negative durations are allowed.
(Duration)
offset duration from the alignment time
(Duration)
duration from the offset for the window
Interval
:
time window as an Interval
Type: (InstrumentSensitivity | null)
(InstrumentSensitivity | null)
Type: (InstrumentSensitivity | null)
((InstrumentSensitivity | null))
Type: (Seismogram | null)
(Seismogram | null)
Type: (Seismogram | null)
((Seismogram | null))
SeismogramDisplayStats
Calculates distance and azimuth for the first event in quakeList. This is a convienence method as usually there will only be one quake.
Type: (null | DistAzOutput)
(null | DistAzOutput)
:
DistAzOutput, null if no quakes.
SeismogramDisplayData
((Seismogram | null))
SeismogramDisplayData
Cut the seismogram. Creates a new seismogramDisplayData with the cut seismogram and the timeRange set to the new time window.
(Interval)
start and end of cut
(null | SeismogramDisplayData)
:
new seismogramDisplayData
Coarse trim the seismogram. Creates a new seismogramDisplayData with the trimmed seismogram and the timeRange set to the new time window. If timeRange is not given, the current time range of the SeismogramDisplayData is used, effectively trimming data to the current window.
(Interval?)
start and end of cut
(null | SeismogramDisplayData)
:
new seismogramDisplayData
Coarse trim the seismogram in place. The seismogram is trimmed to the given time window. If timeRange is not given, the current time range of the SeismogramDisplayData is used, effectively trimming data to the current window.
(Interval?)
start and end of cut
(Array<SeismogramDisplayData>)
Interval
(Array<SeismogramDisplayData>)
Duration
Finds max duration of from one of starttime of sdd, origin time of earthquake, or alignmentTime.
(string)
one of start, origin or align
(Array<SeismogramDisplayData>)
list of seis data
Duration
:
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.
(Array<SeismogramDisplayData>)
list of seismogramdisplaydata
(any
= false
)
should gain be used
(AMPLITUDE_MODE
= AMPLITUDE_MODE.MinMax
)
centering style
MinMaxable
:
min max
(Array<SeismogramDisplayData>)
((Interval | null)
= null
)
(any
= false
)
(AMPLITUDE_MODE
= AMPLITUDE_MODE.MinMax
)
MinMaxable
(Array<SeismogramDisplayData>)
(Duration)
(Duration)
(any
= false
)
(AMPLITUDE_MODE
= AMPLITUDE_MODE.MinMax
)
MinMaxable
(SeismogramDisplayData)
((Interval | null)
= null
)
(any
= false
)
(AMPLITUDE_MODE
= AMPLITUDE_MODE.MinMax
)
(MinMaxable | null)
(Array<Seismogram>)
(Interval?)
Interval
(Array<Seismogram>)
(MinMaxable?)
MinMaxable
(Array<SeismogramDisplayData>)
(MinMaxable?)
MinMaxable
(Array<SeismogramDisplayData>)
Array<Station>
(Array<SeismogramDisplayData>)
Array<Channel>
(Array<SeismogramDisplayData>)
Array<Quake>