compare_two_accel#

PySeismoSoil.helper_site_response.compare_two_accel(input_accel: np.ndarray, output_accel: np.ndarray, *, smooth: bool = True, input_accel_label: str = 'Input', output_accel_label: str = 'Output', amplification_ylabel: str = 'Amplification', phase_shift_ylabel: str = 'Phase shift [rad]') → tuple[Figure, Axes][source]#

Compare two acceleration time histories: plot comparison figures showing two time histories and the transfer function between them.

Parameters:
  • input_accel (np.ndarray) – Input acceleration. (2 columns: time and acceleration.)

  • output_accel (np.ndarray) – Output acceleration. (2 columns: time and acceleration.)

  • smooth (bool, default=True) – In the comparison plot, whether to also show the smoothed amplification factor.

  • input_accel_label (str, default='Input') – The text label for the input acceleration in the figure legend.

  • output_accel_label (str, default='Output') – The text label for the output acceleration in the figure legend.

  • amplification_ylabel (str, default='Amplification') – The Y label for amplification

  • phase_shift_ylabel (str, default='Phase shift [rad]') – The Y label for the phase shift

Returns:

  • fig (Figure) – The figure object created in this function.

  • ax (Axes) – The axes object created in this function.