simpledali.dali2jsonl

Archive JSON Datalink records as JSON Lines.

Module Contents

Classes

Dali2Jsonl

Archive JSON Datalink records as JSONL.

Functions

do_parseargs

main

Data

DEFAULT_HOST

DEFAULT_PORT

Allowed_Flags

API

simpledali.dali2jsonl.DEFAULT_HOST = 'localhost'
simpledali.dali2jsonl.DEFAULT_PORT = 16000
simpledali.dali2jsonl.Allowed_Flags = ['n', 's', 'l', 'c', 'Y', 'j', 'H']
class simpledali.dali2jsonl.Dali2Jsonl(match, writePattern, host=DEFAULT_HOST, port=DEFAULT_PORT, websocketurl=None, verbose=False)

Archive JSON Datalink records as JSONL.

Initialization

classmethod from_config(conf, verbose=False)

Configured Dali2Jsonl using dict, eg from .toml config file.

async run()
async do_dali(dali)
async stream_data(dali)
saveToJSONL(daliPacket)
fileFromSidPattern(sid: simplemseed.FDSNSourceId, time)
fillBaseSidPattern(sid: simplemseed.FDSNSourceId)
fillTimePattern(base, time)
checkPattern(p)

checks pattern for allowed flags as not all that are supported by ringserver are supported here. Must only include: * n network code, white space removed * s station code, white space removed * l location code, white space removed * c channel code, white space removed * Y year, 4 digits * j day of year, 3 digits zero padded * H hour, 2 digits zero padded

@param p mseed archive pattern string @returns true if all flags are allowed

static configure_defaults(conf)
simpledali.dali2jsonl.do_parseargs()
simpledali.dali2jsonl.main()