seispy.pandas.catalog

class seispy.pandas.catalog.Catalog(path=None, fmt='fwf', schema='css3.0', **kwargs)[source]

An earthquake catalog.

Parameters:
  • fmt (str) – Data format - (“csv”, fwf”).
  • schema (str) – Data schema - (“css3.0”, “scsn1.0”, “hys1.0”, “growclust1.0”).
  • kwargs (dict) – Passed directly to underlying IO function.
add_null(tables)[source]

Add null row to table(s).

Parameters:tables (str,list) – Table or list of tables to add null row(s) to.
add_row(table, data)[source]

Add a new row of data to table.

Parameters:
  • table (str) – Table to add data to.
  • data (dict) – Data to append.
append(*args, **kwargs)[source]

Append catalog data to existing Catalog instance.

save(outfile)[source]

Save a catalog using pandas.HDFStore.

write(path, tables=None)[source]

Output as formatted text files.

Parameters:
  • path (str) – Output path.
  • tables (list) – List of tables to write.