pyacs.gts.lib.primitive.get_coseismic2 module

pyacs.gts.lib.primitive.get_coseismic2.get_coseismic2(self, eq_date, window_days=5, sample_after=1, method='median', exclude_eq_day=True, verbose=False)[source]

Get coseismic displacement at a given date.

Coseismic displacement is the position difference between the median (or mean) of window_days before the earthquake and the median (or mean) of sample_after samples after the earthquake date.

Parameters:
  • eq_date (datetime or float) – Earthquake date as datetime instance or decimal year.

  • window_days (int, optional) – Number of days before the earthquake used to compute position before.

  • sample_after (int, optional) – Number of data after the earthquake used to compute position after.

  • method (str, optional) – Method to compute positions: ‘median’ or ‘mean’.

  • exclude_eq_day (bool, optional) – If True, exclude the day of the earthquake from the data.

  • verbose (bool, optional) – Verbose mode.