1# https://pyrocko.org - GPLv3
2#
3# The Pyrocko Developers, 21st Century
4# ---|P------/S----------~Lg----------
6from __future__ import absolute_import, print_function, division
8from pyrocko.guts import Object, String, Float, List
11class XMLEventMarker(Object):
12 xmltagname = 'eventmarker'
13 active = String.T(default='no', xmlstyle='attribute')
14 eventname = String.T(default='')
15 latitude = Float.T(optional=False)
16 longitude = Float.T(optional=False)
17 origintime = String.T(default='')
18 magnitude = Float.T(optional=False, default=0.0)
19 depth = Float.T(optional=False)
22class EventMarkerList(Object):
23 xmltagname = 'eventmarkerlist'
24 events = List.T(XMLEventMarker.T())
27class XMLStationMarker(Object):
28 xmltagname = 'stationmarker'
29 active = String.T(default='no', xmlstyle='attribute')
30 nsl = String.T()
31 latitude = Float.T(optional=False)
32 longitude = Float.T(optional=False)
35class StationMarkerList(Object):
36 xmltagname = 'stationmarkerlist'
37 stations = List.T(XMLStationMarker.T())
40class MarkerLists(Object):
41 xmltagname = 'markerlists'
42 station_marker_list = StationMarkerList.T()
43 event_marker_list = EventMarkerList.T()