1.2.1
Generally either
import * as miniseed from 'seisplotjs-miniseed'
miniseed.xxxx
or
import * as seisplotjs from 'seisplotjs'
seisplotjs.miniseed.xxxx
Core functions for parsing miniseed
parse arrayBuffer into an array of DataRecords.
(ArrayBuffer)
parse a single DataRecord starting at the beginning of the DataView.
(DataView)
parse the DataHeader from a single DataRecord starting at the beginning of the DataView.
(DataView)
DataHeader
parses a Blockette within the DataView.
(DataView)
containing the data
(number)
offset into the DataView to start
(number)
size in bytes of the Blockette
(boolean)
Blockette
BTime
Determines if two DataRecords are contiguous, ie if the second starts after the end of the first and the start time of the second is within 1.5 times the sample period of the end of the first.
(DataRecord)
(DataRecord)
Concatentates a sequence of DataRecords into a single seismogram object. Assumes that they are all contiguous and in order. Header values from the first DataRecord are used.
(Array<DataRecord>)
model.Seismogram
Merges data records into a arrary of seismogram segment objects containing the data as a float array, y. Each seismogram has sampleRate, start, end, netCode, staCode, locCode, chanCode as well as the function timeOfSample(integer) set. This assumes all data records are from the same channel, byChannel can be used first if multiple channels may be present.
(Array<DataRecord>)
Array<model.Seismogram>
Finds the min and max values of a Seismogram, with an optional accumulator for use with gappy data.
Array<number>
Splits a list of data records by channel code, returning a Map with each NSLC string mapped to an array of data records.
(Array<DataRecord>)
Map<string, Array<DataRecord>>
Core classes returned from the above functions.
Represents a SEED Data Record, with header, blockettes and data. Currently only blockette 1000 is parsed, others are separated, but left as just a DataView.
(DataHeader)
(DataView)
Type: DataHeader
Decompresses the data into the decompData field, if the compression type is known. This only needs to be called once and the result will be cached.
Concatenates the net, station, loc and channel codes, separated by periods.
Represents the header part of the DataRecord, including all the actual fixed header plus fields pulled from a blockette 1000 if present.
Type: model.moment
Type: model.moment
Extends Blockette
model.moment
Re-exporting imported modules for easier reuse.
Stuff I forgot to put in the TOC.