feat(regionalGroundMotion): route Vs30 / Z1 / Z2.5 lookups through OpenSHA by name#429
Merged
Merged
Conversation
…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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.