2.0.0-alpha.4
const for unknown data version, 0
Type: number
const for offset to crc in record, 28
Type: number
const for size of fixed header part of record, 40
Type: number
const for fdsn prefix for extra headers, FDSN
Type: string
const for little endian, true
Type: boolean
parse arrayBuffer into an array of XSeedRecords.
(ArrayBuffer)
Represents a xSEED Data Record, with header, extras and data.
(DataView)
XSeedRecord
Type: XSeedHeader
Type: any
Decompresses the data , if the compression type is known.
(DataView?)
Type: any
Type: moment
Type: moment
moment
(DataView)
string
(XSeedRecord)
(XSeedRecord)
boolean
concatentates a sequence of XSeedRecords into a single seismogram object. Assumes that they are all contiguous and in order. Header values from the first XSeedRecord are used.
(Array<XSeedRecord>)
SeismogramSegment
Merges xseed records into a Seismogram object, each of which consists of SeismogramSegment objects containing the data as EncodedDataSegment objects. DataRecords are sorted by startTime. This assumes all data records are from the same channel, byChannel can be used first if multiple channels may be present.
(Array<XSeedRecord>)
Seismogram
splits a list of data records by channel code, returning an object with each NSLC mapped to an array of data records.
(Array<XSeedRecord>)
Map<string, Array<XSeedRecord>>
splits the XSeedRecords by channel and creates a single Seismogram for each channel.
(Array<XSeedRecord>)
XSeedRecords array
Array<Seismogram>
:
Map of code to Seismogram
Convert array of Miniseed2 DataRecords into an array of XSeedRecords.
([type])
array of DataRecords
[type]
:
array of XSeedRecords
Converts a single miniseed2 DataRecord into a single XSeedRecord.
(DataRecord)
Miniseed2 DataRecord to convert
XSeedRecord
:
XSeedRecord
Copy from https://github.com/ashi009/node-fast-crc32c/blob/master/impls/js_crc32c.js and modify to use ArrayBuffer. Rename calculateCRC32C
This code is a manual javascript translation of c code generated by pycrc 0.7.1 (http://www.tty1.net/pycrc/). Command line used: './pycrc.py --model=crc-32c --generate c --algorithm=table-driven'
((ArrayBuffer | Uint8Array))
(number
= 0
)
(number)
string