# http://pyrocko.org - GPLv3 # # The Pyrocko Developers, 21st Century # ---|P------/S----------~Lg----------
''' Get events from GEOFON catalog. '''
'''Customization of the snuffling.'''
else:
'''Main work routine of the snuffling.'''
# get time range visible in viewer viewer = self.get_viewer() tmin, tmax = viewer.get_time_range()
# download event information from GEOFON web page # 1) get list of event names geofon = catalog.Geofon() event_names = geofon.get_event_names( time_range=(tmin, tmax), magmin=self._magmin)
# 2) get event information and add a marker in the snuffler window for event_name in event_names: event = geofon.get_event(event_name) marker = EventMarker(event) self.add_markers([marker])
'''Returns a list of snufflings to be exported by this module.'''
GeofonEvents(), GeofonEvents(magmin=6), GeofonEvents(magmin=7), GeofonEvents(magmin=8)] |