obspy.core.event.catalog.Catalog.clear

Catalog.clear()[source]

Clears event list (convenient method).

Example

>>> from obspy.core.event import read_events
>>> cat = read_events()
>>> len(cat)
3
>>> cat.clear()
>>> cat.events
[]