Ground Motion Signal Processing

Implements short-time Fourier transform (STFT) based processing of strong-motion time series: time-grid regularisation, STFT-window and anti-alias-resampling strategy selection, edge tapering, and frequency-domain integration and differentiation, mapping a single input (acceleration, velocity, or displacement) to a consistent triplet under a chosen analysis bandwidth. Also provides intrinsic-mode-function decomposition via empirical mode decomposition (EMD), ensemble EMD (EEMD), and variational mode decomposition (VMD) with optional band-rule filtering; elastic single-degree-of-freedom (SDOF) domain-normalised acceleration, velocity, and displacement response spectra from their corresponding time-series domains by exact state-space integration; intensity measures including peak, root-mean-square (RMS), Arias intensity, significant-duration, cumulative absolute velocity, mean period, and the derived indices earthquake destructiveness potential (EPI) and power-of-input (PDI); and D50 and D100 horizontal response spectra. Methods: Huang et al. (1998) , Wu and Huang (2009) , Dragomiretskiy and Zosso (2014) , Boore (2010) . An optional indexing layer parses provider files in formats including 'PEER' 'NGA-West2' 'AT2', 'CESMD' 'V2'/'V2c', 'NWZ' 'V2A', Geological Survey of Canada 'TR', 'IGP'/'UCR' 'AC' variants, and generic two-column ASCII text, normalises components, writes per-record CSV (comma-separated values) and JSON (JavaScript Object Notation) pairs, and computes per-record intensity tables.


R library

gmsp processes ground-motion time histories, computes response spectra and intensity measures, selects and matches records, and composes modal decomposition and reconstruction through xemd.

library(gmsp)
describeModule()
help(package = "gmsp")

describeModule() returns the installed package name and version. The function help documents arguments, returned objects and effects.

Public functions

Work Entry points Result
Time histories buildTSL(), normalizeTSL() Acceleration, velocity and displacement histories; scaling by a reference peak
Spectra and intensities computeSpectraTSL(), measureIntensitiesTSL() Response spectra and scalar intensity measures
Provider records parseRecord(), selectRecords() Native-unit samples and selected record identities
Modal analysis decomposeRecords(), reconstructRecords() Native xemd tables, mode selection and reintegrated histories
Project products selectProject(), rankProject(), processProject(), matchProject(), exportProject() Selection, processing, matching and delivery files from JSON contracts

Time-history tables use OCID, ID, t and s for component, quantity, time in seconds and sample value. The explicit by argument identifies record metadata; character() declares one record without metadata. buildTSL() returns AT, VT and DT on a common grid per record. Its unit arguments declare the source and target length bases.

computeSpectraTSL() requires damping ratios and positive periods; rotated D50 or D100 components also require nTheta. reconstructRecords() selects modes by a frequency band or energy fraction with an explicit keep/remove action. The modal results retain native diagnostics and termination fields, including iteration limits and non-convergence. Stochastic decomposeRecords() calls consume the caller's random stream.

Project functions read their JSON contract relative to root and publish the products described in their help. processProject() supports the gmsp, trim, imf, imfTS and psa stages with explicit scientific controls. Its stochastic modal stage requires an explicit seed and serial execution settings and records execution evidence.

Documentation

The function manuals describe arguments, data requirements and publication behavior. The documentation site, https://kanameishi.github.io/gmsp/, publishes the function reference and the books Mathematical Basis and Numerical Implementation.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("gmsp")

1.1.1 by Alejandro Daniel Verri, 19 days ago


https://kanameishi.github.io/gmsp/


Browse source code at https://github.com/cran/gmsp


Authors: Alejandro Daniel Verri [aut, cre, cph] (ORCID:


Documentation:   PDF Manual  


AGPL (>= 3) license


Imports data.table, digest, expm, jsonlite, Matrix, osqp, parallel, pracma, seewave, signal, stats, tools, utils, xemd

Suggests bit64, knitr, rmarkdown

System requirements: tar (for archived record metadata)


See at CRAN