dep2thk#
- PySeismoSoil.helper_site_response.dep2thk(depth_array_starting_from_0: ndarray, include_halfspace: bool = True) ndarray [source]#
Convert a soil layer depth array into thickness array.
- Parameters:
depth_array_starting_from_0 (np.ndarray) – Needs to be a 1D numpy array.
include_halfspace (bool) – Whether to include the last layer (i.e., “half space”), which always have 0 thickness.
- Returns:
h – Thickness array.
- Return type:
np.ndarray
- Raises:
ValueError – The value of the input parameter is incorrect