pystrata.motion.TimeSeriesMotion¶
- class pystrata.motion.TimeSeriesMotion(filename: str, description: str, time_step: float, accels, fa_length=None)[source]¶
Time-series motion for time series based site response analysis.
- __init__(filename: str, description: str, time_step: float, accels, fa_length=None)[source]¶
Initialize the class from specified acceleration values.
The filename and description parameters are only used to help track the motion.
- Parameters:
filename (str) – Source of data
description (str) – Description to store helpful information
time_step (float) – Time step of the accleration values
accels (array_like) – Accelerations in units of g
fa_length (optional int) – Length to use for the Fourier amplitude spectrum. If not provided, will be automatically computed to the next power of 2.
Methods
__init__(filename, description, time_step, ...)Initialize the class from specified acceleration values.
calc_arias_intensity([tf])calc_cav([tf])calc_osc_accels(osc_freqs[, osc_damping, tf])Compute the pseudo-acceleration spectral response of an oscillator with a specific frequency and damping.
calc_peak([tf])calc_pga([tf])calc_pgv([tf])calc_time_series([tf])load_at2_file(filename[, scale])Read an AT2 formatted time series.
load_smc_file(filename[, scale])Read an SMC formatted time series.
Attributes
accelsangular_freqsarias_intensityArias intensity [m/s].
cavCumulative absolute velocity [m/s].
descriptionfilenameReturn the frequencies.
Return the frequencies.
pgaPeak ground acceleration [g]
pgvPeak ground velocity [cm/sec].
time_steptimes