Skip to content

feat(regionalGroundMotion): route Vs30 / Z1 / Z2.5 lookups through OpenSHA by name#429

Merged
fmckenna merged 2 commits into
NHERI-SimCenter:masterfrom
zsarnoczay:master
May 21, 2026
Merged

feat(regionalGroundMotion): route Vs30 / Z1 / Z2.5 lookups through OpenSHA by name#429
fmckenna merged 2 commits into
NHERI-SimCenter:masterfrom
zsarnoczay:master

Conversation

@zsarnoczay
Copy link
Copy Markdown
Contributor

No description provided.

…enSHA by name

CreateStation's Vs30 dispatch is collapsed to a single OpenSHA path
(plus User-specified and an unreachable NCM stub). The bundled Thompson
California vs30 tarball is removed; the get_vs30_thompson() and
get_vs30_global() are also removed.

FetchOpenSHA gets a Vs30 name resolver (_resolve_vs30_model_name) that
accepts canonical OpenSHA NAMEs, NAMEs with the UI's
" [California only]" suffix, or legacy substrings from older R2D
configurations. get_site_z1pt0_from_opensha and ..._z2pt5_... grow an
optional model_name argument: None (or 'OpenSHA default model') keeps
the current sequenced fallback; a specific OpenSHA basin-depth NAME
queries only that provider. NaN flows to the empirical Chiou & Youngs /
Campbell & Bozorgnia equations at the per-station level.

CreateStation grows the matching basin-depth NAME set and dispatch
helper, used by both the upfront parallel-fetch block and the
per-station fallback loop. The Wills-2015-outside-CA fallback to Wald &
Allen now applies uniformly to every CA-only Vs30 product.

EventGrid.csv now also includes Vs30, z1pt0, and z2pt5 columns per
grid point (DepthToRock omitted, as CreateStation does not emit it to
the site CSV that the EventGrid writer reads).

ScenarioForecast drops the Vs30 entries from the startup tar.gz
extract loop; only global_zTR_4km.tar.gz (used by liquefaction /
landslide) is still unpacked.

A new database/site/CMakeLists.txt registers the two remaining
tarballs; database/CMakeLists.txt picks it up. The NCM helpers in
CreateStation are annotated as UI-unreachable and flag the duplicated
'/ws/nshmp/ncm/' URL segment as a likely 2021-era typo.
@fmckenna fmckenna merged commit c465729 into NHERI-SimCenter:master May 21, 2026
0 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants