3.2.6Type: string
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
const for big endian, false
Type: boolean
(any)
(any)
parse arrayBuffer into an array of MSeed3Records.
(any)
bytes to extract miniseed3 records from
any:
array of all miniseed3 records contained in the buffer
parse arrayBuffer into an array of MSeed3Records.
(any)
bytes to extract miniseed3 records from
any:
array of all miniseed3 records contained in the buffer
Represents a MSEED3 Data Record, with header, extras and data.
(any)
miniseed3 fixed record header
(any)
json compatible object with extra headers
(any)
waveform data, in correct compression for value in header
Parses an miniseed3 data record from a DataView.
(any)
bytes to parse
any:
parsed record
Calculates the byte size of the miniseed3 record to hold this data. This should be called if the size is needed after modification of the extraHeaders.
any:
size in bytes
Gets the byte size of the miniseed3 record to hold this data. Note that unless calcSize() has been called, this may not take into account modifications to the extra headers.
any:
size in bytes
Decompresses the data , if the compression type is known
any:
decompressed data as a typed array, usually Int32Array or Float32Array
Wraps data in an EncodedDataSegment for future decompression.
any:
waveform data
Just the header.identifier, included as codes() for compatiblility with parsed miniseed2 data records.
any:
string identifier
Parses the identifier into an FDSNSourceId.
any:
header identifier as source id
Saves miniseed3 record into a DataView, recalculating crc.
(any)
DataView to save into, must be large enough to hold the record.
any:
the number of bytes written to the DataView, can be used as offset
for writting the next record.
Calculates crc by saving to a DataView, which sets the crc header to zero and then calculates it based on the rest of the record.
any:
crc pulled from saved miniseed3 record
Fixed header of an MSeed3 data record.
Parses an miniseed3 fixed header from a DataView.
(any)
bytes to parse
any:
parsed header object
Calculates size of the fixed header including the variable length identifier, but without the extra headers.
any:
size in bytes of fixed header
Text representation of the miniseed3 header. This is modeled after the output of mseed3-text from the mseed3-utils package from IRIS.
any:
textual repersentation
Start time in the format output by mseed3-utils from IRIS. Format is yyyy,ooo,HH:mm:ss.SSSSSS
any:
start time
Converts start time header fields to ISO8601 time string. This will include factional seconds to nanosecond precision.
(any
= true)
trim to microsecond precision if nanos are 000
any:
iso start time
sets start time headers.
(any)
start as DateTime
Calculates time of the ith sample.
(any)
sample number
any:
the time
Writes to the given dataview.
(any)
write buffer
(any
= 0)
offset within the buffer
(any
= false)
optionally zero out the crc field in order to recalculate
any:
new offset after this record
Converts header start time to DateTime
any:
start time as DateTime
Parses extra headers as json.
(any)
json bytes as DataView
any:
json object
Creates a string version of a number with zero prefix padding. For example padZeros(5, 3) is 005.
(any)
number to stringify
(any)
total length of string
any:
zero padded string
creates a string from utf-8 bytes in a DataView.
(any)
data bytes
(any)
offset to first byte to use
(any)
number of bytes to convert
any:
string resulting from utf-8 conversion
Checks if two miniseed3 records are (nearly) contiguous.
(any)
first record
(any)
second record
(any
= 1.5)
tolerence expressed as ratio of sample period, default 1.5
any:
true if contiguous
Concatentates a sequence of MSeed3 Records into a single seismogram object. Assumes that they are all contiguous (no gaps or overlaps) and in order. Header values from the first MSeed3 Record are used.
(any)
array of miniseed3 records
any:
seismogram segment for the records
Merges miniseed3 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. Gaps may be present.
(any)
list of miniseed3 records to convert
any:
the seismogram
merges contiguous MSeed3Record into SeismogramSegments.
(any)
array of data records
any:
array of SeismogramSegments for contiguous data
splits a list of data records by channel identifier, returning an object with each NSLC mapped to an array of data records.
(any)
array of miniseed3 records
any:
map of channel id to array of miniseed3 records, possibly not contiguous
splits the records by channel and creates a single SeismogramSegment for each contiguous window from each channel.
(any)
MSeed3Records array
any:
Array of SeismogramSegment
splits the MSeed3Records by channel and creates a single Seismogram for each channel.
(any)
MSeed3Records array
any:
Map of code to Seismogram
splits the MSeed3Records by channel and creates a single SeismogramDisplayData for each channel. BAG extra headers are extracted and Quake and Markers are created.
(any)
MSeed3Records array
any:
Map of code to Seismogram
Convert array of Miniseed2 DataRecords into an array of MSeed3Records.
(any)
array of DataRecords
any:
array of MSeed3Records
Converts a single miniseed2 DataRecord into a single MSeed3Record.
(any)
Miniseed2 DataRecord to convert
any:
MSeed3Record
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 (https://www.tty1.net/pycrc/). Command line used: './pycrc.py --model=crc-32c --generate c --algorithm=table-driven'
(any)
input data
(any
= 0)
starting value, from earlier data
any:
calculated crc32c value
Convert crc as a number into a hex string.
(any)
crc as a number
any:
hex representation