Allowed_Flags

src/mseedarchive.js
Allowed_Flags

A web based connection to an archive of miniseed files arranged based on a pattern using n, s, l, c, Y, j, H for network, station, locid, channel, year, day of year and hour. This is a subset of the options available within the IRIS Ringserver MSeedArchive option, on which this is based. Retrieved seismograms are cut from the larger miniseed files retrieved via http(s), and so there is wasted bandwidth to the server. On the other hand this requires no extra software on the server side beyond a directory structure with suitably small miniseed files. Generally we find channel-hour is a reasonable size for most seismic channels. The URL to needed files is constructed by concatenating the rootUrl with the pattern using a time range large enough to get all overlaps based on the smallest sample rate per channel band code and record size, which defaults to 512.

new MSeedArchive(rootUrl: string, pattern: string)
Parameters
rootUrl (string)
pattern (string)
Instance Members
_rootUrl
_pattern
_recordSize
_timeoutSec
rootUrl
pattern
recordSize
checkPattern(p)
loadSeismograms(channelTimeList)
loadDataForChannel(channel, startTime, endTime)
loadData(net, sta, loc, chan, startTime, endTime, sampleRate)
fillBasePattern(net, sta, loc, chan)
fillTimePattern(basePattern, t)

loadDataRecords

src/mseedarchive.js
loadDataRecords(urlList: Array<string>, fetchInit: {}?, timeoutSec: number?): Promise<Array<miniseed.DataRecord>>
Parameters
urlList (Array<string>)
fetchInit ({}?)
timeoutSec (number?)
Returns
Promise<Array<miniseed.DataRecord>>

maxSampleRate

src/mseedarchive.js

Gives the maximum sample rate for the channel, based on the band code, first char, of the channel code.

maxSampleRate(chan: string): number
Parameters
chan (string) channel code like BHZ, only the first letter is used
Returns
number: mimumum sample rate this could be

minSampleRate

src/mseedarchive.js

Gives the minimum sample rate for the channel, based on the band code, first char, of the channel code.

minSampleRate(chan: string): number
Parameters
chan (string) channel code like BHZ, only the first letter is used
Returns
number: mimumum sample rate this could be *

maxTimeForRecord

src/mseedarchive.js

Calculates the maximum time coverage for a single miniseed record given the record size (usually 512 or 4096) and the sample rate (Hertz). This assumes 40 bytes of header and maximum compression of 2 samples per byte (4 bit per sample) which is the best Steim2.

maxTimeForRecord(recordSize: number, sampleRate: number): number
Parameters
recordSize (number) record size (usually 512 or 4096)
sampleRate (number) sample rate of record
Returns
number: maximum interval of time that a full record could cover when compression is at its most efficient