Skip to contents

Time-series conversion

End-to-end workflows that produce consistent AT (acceleration), VT (velocity) and DT (displacement) time series from a single input type. Each combines regularisation, STFT parameter selection, anti-alias resampling, edge tapering and spectral-domain integration/differentiation.

AT2TS()
Convert acceleration time series into AT/VT/DT bundles
VT2TS()
Convert velocity time series into AT/VT/DT bundles
DT2TS()
Convert displacement time series into AT/VT/DT bundles
TSL2TSW()
Convert canonical long time-series tables to wide form.
TSW2TSL()
Convert wide time-series tables to canonical long form.
normalizeTS()
Normalize a long time-series table to unit amplitude per channel.

Decomposition and spectra

Empirical / variational mode decomposition with mode-based filtering, and elastic SDOF response spectra including D50 and D100 horizontal spectra through TSL2PS.

TS2IMF()
Decompose one time series into intrinsic mode functions.
TSL2PS()
Convert canonical long time series to response spectra.
PSL2PSW()
Convert long response spectra to wide form.
PSW2PSL()
Convert wide response spectra to long form.
rotateComponents()
Rotate horizontal components to principal axes.

Intensity measures

TSL2IM()
Compute intensity measures from a canonical long time-series table.
getIntensity()
Compute intensity measures from a long time-series table.
IML2IMW()
Convert long intensity tables to wide form.

Provider-format parsers

Read one record file from a single provider format and return a long (t, OCID, s) table. Used by parseRecord() and reusable on their own.

readAT2()
Read a PEER NGA-West2 AT2 acceleration record.
readV2()
Read a CESMD V2 acceleration record (multi-channel V2 or single-channel V2c).
readV2A()
Read a NWZ V2A acceleration record (3D-BLOCK, 1 file = 3 components).
readAC()
Read a 3D-COL acceleration record (ACA, ACB, LIS).
readTR()
Read a TRA/TRZ/TRB/TRC acceleration record (GSC and SGC families).
readTwoCol()
Read a 2-column whitespace-delimited ASCII record.

Record extraction pipeline

Parse one record across components, classify channels by direction (H1/H2/UP), align lengths, scale to canonical units (mm), and write raw/AT.<RecordID>.csv plus its sidecar JSON.

parseRecord()
Parse one record (event x station x owner) into a LONG time-series table.
mapComponents()
Map provider components to canonical processed components.
alignComponents()
Equalize NP across components of a parsed record.
extractRecord()
Extract one record to raw/<KIND>.<RecordID>.csv + <KIND>.<RecordID>.json.
archiveRawOwner()
Compress raw.owner/ to raw.owner.tar.gz and delete the directory.

Indexing

Build the per-owner index tables and the master record catalog from the per-record CSV/JSON pairs produced by extractRecord().

buildRawFileTable()
Build the per-owner RawFileTable CSV (provider file inventory, post-archive safe).
buildRawRecordTable()
Build the canonical RawRecordTable for one or more owners.
buildRawIntensityTable()
Build the canonical RawIntensityTable for one or more owners (WIDE).
buildMaster()
Build the master record table.
getRawIntensities()
Compute KIND-derivable intensities for one raw record.

Selection and IO

selectRecords()
Select records from the master, keyed at the record level.
writeSelection()
Write a selection (subset of master) to selection/<name>.csv / .json.
readAT()
Read acceleration records via readTS() with kind = "AT".
readTS()
Read parsed time-series records into the shape AT2TS() / VT2TS() / DT2TS() expect.
readVT()
Read velocity records via readTS() with kind = "VT".
readDT()
Read displacement records via readTS() with kind = "DT".
readISEE()
Read a Micromate ISEE blasting record.

Audit

auditSite()
Audit site / station information in the master table – sanity v1.
auditDistances()
Audit distances in the master table – sanity v1.
auditParsers()
Audit parsers: dry-run parseRecord on every record of an owner.