3.2.6Type: 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.
(any)
factory method to create a single segment Seismogram from either encoded data or a TypedArray, along with sample rate and start time.
(any)
array of encoded data or typed array
(any)
sample rate, samples per second of the data
(any)
time of first sample
(any)
optional source id
any:
seismogram initialized with the data
(any)
(any)
(any)
calculates the mean of a seismogrma.
any:
mean value
return FDSN source id as a string.
any:
FDSN source id
(any)
return network, station, location and channels codes as one string. Uses this.channel if it exists, this.seismogram if not.
any:
net.sta.loc.chan
(any)
Cut the seismogram. Creates a new seismogram with all datapoints contained in the time window.
(any)
start and end of cut
any:
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.
(any)
time range to trim to
any:
new seismogram if data in the window, null otherwise
(any)
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 concatination. Be careful!
any:
contatenated data
Gets the timeseries as an typed array if it is contiguous.
any:
timeseries as array of number
(any)
(any)
Extends Error
(any)
(any)
(any)
(any)
Create a Seismogram from the segment, then call fromSeismogram to create the SeismogramDisplayData;
(any)
segment of contiguous data
any:
new SeismogramDisplayData
Useful for creating fake data from an array, sample rate and start time
(any)
fake data
(any)
samples per second
(any)
start of data, time of first point
(any)
optional source id
any:
seismogramdisplaydata
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
Adds a public id for a Quake to the seismogram. For use in case where the quake is not yet available, but wish to retain the connection.
(any)
id of the earthquake assocated with this seismogram
(any)
(any)
(any)
(any)
Allows id-ing a seismogram. Optional.
any:
string id
Allows iding a seismogram. Optional.
(any)
string id
return network code as a string. Uses this.channel if it exists, this.seismogram if not.
any:
network code
return station code as a string. Uses this.channel if it exists, this.seismogram if not.
any:
station code
return location code a a string. Uses this.sourceId if it exists, this.seismogram if not.
any:
location code
return channels code as a string. Uses this.sourceId if it exists, this.seismogram if not.
any:
channel code
return FDSN source id as a string. Uses this.channel if it exists, this.seismogram if not.
any:
FDSN source id
return network, station, location and channels codes as one string. Uses this.channel if it exists, this.seismogram if not
any:
net.sta.loc.chan
return network, station, location and channels codes as one string. Uses this.channel if it exists, this.seismogram if not.
(any
= ".")
separator, defaults to '.'
any:
nslc codes separated by sep
(any)
(any)
Create a time window relative to the alignmentTime if set, or the start time if not. Negative durations are allowed.
(any)
offset duration from the alignment time
(any)
duration from the offset for the window
any:
time window as an Interval
(any)
(any)
Calculates distance and azimuth for each event in quakeList.
any:
Array of DistAzOutput, empty array if no quakes.
Calculates distance and azimuth for the first event in quakeList. This is a convienence method as usually there will only be one quake.
any:
DistAzOutput, null if no quakes.
(any)
Cut the seismogram. Creates a new seismogramDisplayData with the cut seismogram and the timeRange set to the new time window.
(any)
start and end of cut
any:
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.
(any)
start and end of cut
any:
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.
(any)
start and end of cut
(any)
(any)
Finds max duration of from one of starttime of sdd, origin time of earthquake, or alignmentTime.
(any)
one of start, origin or align
(any)
list of seis data
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.
(any)
list of seismogramdisplaydata
(any
= false)
should gain be used
(any
= AMPLITUDE_MODE.MinMax)
centering style
any:
min max
(any)
(any
= null)
(any
= false)
(any
= AMPLITUDE_MODE.MinMax)
(any)
(any)
(any)
(any
= false)
(any
= AMPLITUDE_MODE.MinMax)
(any)
(any
= null)
(any
= false)
(any
= AMPLITUDE_MODE.MinMax)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)
(any)