seisgo.types
The types module defines the core data container classes used throughout SeisGo:
FFTData, CorrData, and DvvData.
Class Summary
FFTData
Frequency-domain representation of one station–component time series, with all processing (windowing, normalization, FFT) already applied.
Constructor
from seisgo.types import FFTData
fftdata = FFTData(
trace, # obspy.Trace
win_len=3600,
step=1800,
stainv=None, # obspy.Inventory or None
freqmin=0.05,
freqmax=2.0,
time_norm="one_bit",
freq_norm="rma",
smooth=20,
smooth_spec=None,
taper_frac=0.05,
df=None,
)
Key attributes
Attribute |
Description |
|---|---|
|
Complex 2-D array, shape |
|
Per-window standard deviation, shape |
|
Window start times (UTC) |
|
Frequency vector (Hz) |
|
Sampling interval (s) |
|
Analysis window length (s) |
|
Window step / overlap (s) |
|
SEED channel identifiers |
|
Station coordinates |
CorrData
Time-lag cross-correlation (or auto-correlation) between a station pair over multiple time windows.
Constructor
CorrData is normally created by seisgo.noise.correlate() or loaded with
seisgo.noise.extract_corrdata(). Direct construction is also supported.
Key attributes
Attribute |
Description |
|---|---|
|
2-D float array, shape |
|
Sampling interval (s) |
|
Maximum lag (s) |
|
Inter-station distance (km) |
|
Forward and back azimuths (°) |
|
Component pair string, e.g. |
|
|
|
|
|
|
|
Window timestamps |
|
Auxiliary metadata dictionary |
Key methods
# Bandpass filter in-place
corrdata.filter(fmin=0.05, fmax=2.0, corners=4, zerophase=True)
# Collapse to a single stacked trace (returns new CorrData)
stacked = corrdata.stack(method="pws")
# Stack in-place (overwrites data)
corrdata.stack(method="linear", overwrite=True)
# Save to ASDF
corrdata.to_asdf("output.h5")
# Quick plot
corrdata.plot()
DvvData
Stores dv/v measurements produced by seisgo.monitoring.get_dvv().
Key attributes
Attribute |
Description |
|---|---|
|
dv/v values, shape |
|
Measurement uncertainty (same shape as |
|
Waveform cross-correlation coefficient per measurement |
|
Timestamp of each measurement window |
|
Frequency vector ( |
|
|
|
Component pair |
|
Station pair names |
Key methods
dvvdata.plot()
dvvdata.to_asdf("dvv_output.h5")