extract_from_param_format#
- PySeismoSoil.helper_generic.extract_from_param_format(params: ndarray) list[numpy.ndarray] [source]#
Extract soil constitutive model parameters from a 2D numpy array.
- The 2D numpy array should follow the following format:
param_layer_1
param_layer_2
param_layer_3
…
1.1
2.2
3.3
…
1.2
2.3
3.4
…
…
…
…
…
- Parameters:
params (np.ndarray) – A 2D numpy array containing soil constitutive model parameters for each soil layer. Such an array can be constructed by hand, or directly imported from a “HH_x_STATION_NAME.txt” file or something similar.
- Returns:
param_list – The parsed parameters for each layer. Each element of param_list is a 1D numpy array with length N, where N is the number of parameters for the particular soil constitutive model.
- Return type:
list[np.ndarray]
- Raises:
TypeError – When the input has invalid types