calc_VsZ#

PySeismoSoil.helper_site_response.calc_VsZ(profile: ndarray, Z: float, option_for_profile_shallower_than_Z: Literal[1, 2] = 1, verbose: bool = False) float[source]#

Calculate VsZ from the given Vs profile, where VsZ 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.

  • Z (float) – The depth from which to calculate the weighted average travel time.

  • option_for_profile_shallower_than_Z (Literal[1, 2]) – If the provided profile has a total depth smaller than Z, then 1 - assume last layer extends to Z meters 2 - only use actual total depth

  • verbose (bool) – Whether to show a warning message when the Vs profile is shallower than 30 m.

Returns:

VsZ – VsZ.

Return type:

float

Notes

Rewritten into Python from MATLAB on 3/4/2017.