calc_Vs30#
- PySeismoSoil.helper_site_response.calc_Vs30(profile: ndarray, option_for_profile_shallower_than_30m: Literal[1, 2] = 1, *, verbose: bool = False) float[source]#
Calculate Vs30 from the given Vs profile, where Vs30 is the reciprocal of the weighted average travel time from Z meters deep to the ground surface.
- Parameters:
profile (np.ndarray) – Vs profile, which should have at least two columns.
option_for_profile_shallower_than_30m (Literal[1, 2], default=1) –
If the provided
profilehas a total depth smaller than 30 m, then:1: assume last layer extends to 30 meters
2: only use actual total depth
verbose (bool, default=False) – Whether to show a warning message when the Vs profile is shallower than 30 m.
- Returns:
Vs30.
- Return type:
float
Notes
Rewritten into Python from MATLAB on 3/4/2017.