3.0.0-alpha.0
Type: string
Type: {xScaleDomain: Array<Date>, xScaleRange: Array<number>, secondsPerPixel: number, samplesPerPixel: number, highlowArray: Array<number>}
Type: {name: string, time: DateTime, type: 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.
((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
Seismogram
:
seismogram initialized with the data
Type: DateTime
Type: DateTime
Type: (null | Int32Array | Float32Array | Float64Array)
(SeismogramSegment)
(SeismogramSegment)
[DateTime, DateTime]
Type: DateTime
DateTime
Type: DateTime
DateTime
Type: DateTime
DateTime
Type: DateTime
DateTime
Type: Interval
Interval
Type: Interval
Interval
return FDSN source id as a string.
Type: (FDSNSourceId | null)
(FDSNSourceId | null)
:
FDSN source id
((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)
:
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
Useful for creating fake data from an array, sample rate and start time
((Array<seedcodec.EncodedDataSegment> | Int32Array | Float32Array | Float64Array))
(number)
(DateTime)
SeismogramDisplayData
:
[description]
(Channel)
(Interval)
SeismogramDisplayData
(Channel)
(DateTime)
(DateTime)
SeismogramDisplayData
(string)
(string)
(string)
(string)
(DateTime)
(DateTime)
SeismogramDisplayData
Type: (FDSNSourceId | null)
Type: Array<MarkerType>
Type: (Channel | null)
Type: (NslcId | null)
Type: (InstrumentSensitivity | null)
Type: Interval
Type: DateTime
Type: (SeismogramDisplayStats | null)
(MarkerType)
((MarkerType | Array<MarkerType>))
Type: (Quake | null)
(Quake | null)
any
any
any
return FDSN source id as a string. Uses this.channel if it exists, this.seismogram if not.
Type: (FDSNSourceId | null)
(FDSNSourceId | null)
:
FDSN source id
Type: DateTime
DateTime
Type: DateTime
DateTime
Type: DateTime
DateTime
Type: DateTime
DateTime
Type: Interval
Interval
(Duration)
(Duration)
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
(Array<SeismogramDisplayData>)
Interval
(Array<SeismogramDisplayData>)
Duration
(string)
(Array<SeismogramDisplayData>)
Duration
Array<number>
(Array<SeismogramDisplayData>)
(Interval)
(any
= false
)
(any
= false
)
Array<number>
(Array<SeismogramDisplayData>)
(Duration)
(Duration)
(any
= false
)
(any
= false
)
Array<number>
(Array<Seismogram>)
(Interval?)
Interval
(Array<Seismogram>)
Array<number>
(Array<SeismogramDisplayData>)
Array<number>
(Array<SeismogramDisplayData>)
Array<Station>
(Array<SeismogramDisplayData>)
Array<Quake>