thk2dep#
- PySeismoSoil.helper_site_response.thk2dep(thk: ndarray, midpoint: bool = False) ndarray [source]#
Convert a soil layer thickness array into depth array.
- Parameters:
thk (np.ndarray) – 1D numpy array of layer thickness.
midpoint (bool) – If
True
, the returned depth values are at the mid points of each layer. If False, the returned array are at the top of layers.
- Returns:
dep – Depth array.
- Return type:
np.ndarray