svtk metrics
Command Tree
Command Details
Usage
svtk metrics [-h] {plan,run,run-batch,merge-batches,outputs,slurm} ...
Parameters
Name |
Required |
Default / choices |
Description |
|---|---|---|---|
|
No |
show this help message and exit |
svtk metrics merge-batches
Usage
svtk metrics merge-batches [-h] --manifest MANIFEST --output OUTPUT
[--allow-missing]
Parameters
Name |
Required |
Default / choices |
Description |
|---|---|---|---|
|
No |
show this help message and exit |
|
|
Yes |
Value: |
|
|
Yes |
Value: |
|
|
No |
Flag |
Allow missing batch outputs. |
svtk metrics outputs
Usage
svtk metrics outputs [-h] --metrics METRICS --output-dir OUTPUT_DIR
[--events EVENTS] [--stations STATIONS]
[--residual-column RESIDUAL_COLUMN]
[--score-column SCORE_COLUMN]
[--format {parquet,csv}] [--dashboard-partitioned]
Parameters
Name |
Required |
Default / choices |
Description |
|---|---|---|---|
|
No |
show this help message and exit |
|
|
Yes |
Value: |
|
|
Yes |
Value: |
|
|
No |
Value: |
|
|
No |
Value: |
|
|
No |
Value: |
|
|
No |
Value: |
|
|
No |
Default: |
Value: |
|
No |
Flag |
Partition dashboard metric rows. |
svtk metrics plan
Usage
svtk metrics plan [-h] [--observed-inventory OBSERVED_INVENTORY]
[--waveforms-preprocessed]
[--synthetic-inventory SYNTHETIC_INVENTORY]
[--config CONFIG] [--run-scenario RUN_SCENARIO]
[--metric METRICS] [--metric-group METRIC_GROUPS]
[--component COMPONENTS] [--passband PASSBANDS]
[--model MODELS] [--transform TRANSFORMS]
[--output-mode OUTPUT_MODE] --output OUTPUT
[--manifest] [--batch-output-dir BATCH_OUTPUT_DIR]
[--batch-size BATCH_SIZE] [--qc-table QC_TABLE]
[--no-qc]
Parameters
Name |
Required |
Default / choices |
Description |
|---|---|---|---|
|
No |
show this help message and exit |
|
|
No |
Value: |
|
|
No |
Flag |
Inputs already have configured preprocessing; do not repeat lowpass/resampling. |
|
No |
Value: |
|
|
No |
Value: |
|
|
No |
Value: |
|
|
No |
Repeatable |
Value: |
|
No |
Repeatable |
Value: |
|
No |
Repeatable |
Value: |
|
No |
Repeatable |
Value: |
|
No |
Repeatable |
Value: |
|
No |
Repeatable |
Value: |
|
No |
Value: |
|
|
Yes |
Value: |
|
|
No |
Flag |
Write a JSON manifest instead of a task table. |
|
No |
Value: |
|
|
No |
Default: |
Value: |
|
No |
Value: |
|
|
No |
Flag |
Do not mark planned tasks as QC-filtered by default. |
svtk metrics run
Usage
svtk metrics run [-h] --tasks TASKS --output OUTPUT
[--qc-table QC_TABLE]
Parameters
Name |
Required |
Default / choices |
Description |
|---|---|---|---|
|
No |
show this help message and exit |
|
|
Yes |
Value: |
|
|
Yes |
Value: |
|
|
No |
Value: |
svtk metrics run-batch
Usage
svtk metrics run-batch [-h] --manifest MANIFEST --batch-index
BATCH_INDEX [--overwrite]
Parameters
Name |
Required |
Default / choices |
Description |
|---|---|---|---|
|
No |
show this help message and exit |
|
|
Yes |
Value: |
|
|
Yes |
Value: |
|
|
No |
Flag |
Replace an existing batch output. |
svtk metrics slurm
Usage
svtk metrics slurm [-h] --manifest MANIFEST --output OUTPUT --config
CONFIG [--run-scenario RUN_SCENARIO] [--submit]
Parameters
Name |
Required |
Default / choices |
Description |
|---|---|---|---|
|
No |
show this help message and exit |
|
|
Yes |
Value: |
|
|
Yes |
Value: |
|
|
Yes |
Value: |
|
|
No |
Value: |
|
|
No |
Flag |
Submit the script with sbatch after writing it. |
Spectral waveform processing
PSA and FAS run once per waveform pair/component, independently of configured
passbands. Supply raw acceleration files in raw_waveform_path in each
inventory; when this optional column is absent, waveform_path must itself
contain raw records. --waveforms-preprocessed applies to ordinary metrics;
it does not bypass the spectral lowpass. Tutorial inventories retain both paths.
The spectral branch demeans and cosine-tapers each full raw record (5 percent),
applies one fourth-order zero-phase lowpass at synthetics.max_frequency_hz,
and linearly interpolates the common time window onto a 25 Hz grid. The cutoff
is capped at 45 percent of the input sample rate and at 9.5 Hz when downsampling.
PSA uses 5 percent damping; FAS uses its Hann-windowed amplitude calculation.
The example period grid is 1.5, 2, 2.5, 3, 3.5, 4, 4.5, and 5 seconds.
Both metrics exclude periods less than or equal to the reciprocal simulation
frequency (1 second for a 1 Hz simulation). An entirely unsupported request
raises an error; partially unsupported grids are reduced in the task manifest.
Spectral tasks are labeled lowpass 1 Hz for this example. They do not inherit
passband QC windows or relative-amplitude rejection at 0.25. Record-length QC
still requires the configured minimum number of cycles, and nonfinite values
cannot yield usable comparisons. Lowpass settings, raw paths, and the actual
common grid are recorded on output rows. These processing records do not establish
physical acceleration units; those still require source calibration provenance.
Existing mixed or bandpassed spectral task manifests must be replanned.