gemlog.calc_channel_stats

gemlog.calc_channel_stats(DB, t1, t2)

Calculate uptime and other statistics for all channels in a database.

Parameters
  • DB (pandas.DataFrame) – Output of make_db().

  • t1 (time-like) – Start time for which statistics should be calculated.

  • t2 (time-like) – End time for which statistics should be calculated.

Returns

pandas.DataFrame containing the following columns

  • station : station name

  • goodData : proportion of time window (t1-t2) that is not obviously bad (e.g., clipped)

  • anyData : proportion of time window (t1-t2) for which data are available

  • q1 : first quartile amplitude

  • q3 : third quartile amplitude