1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

23

24

25

26

27

28

29

30

31

32

33

34

35

36

from pyrocko.guts import Object, String, Float, List 

 

 

class XMLEventMarker(Object): 

xmltagname = 'eventmarker' 

active = String.T(default='no', xmlstyle='attribute') 

eventname = String.T(default='') 

latitude = Float.T(optional=False) 

longitude = Float.T(optional=False) 

origintime = String.T(default='') 

magnitude = Float.T(optional=False, default=0.0) 

depth = Float.T(optional=False) 

 

 

class EventMarkerList(Object): 

xmltagname = 'eventmarkerlist' 

events = List.T(XMLEventMarker.T()) 

 

 

class XMLStationMarker(Object): 

xmltagname = 'stationmarker' 

active = String.T(default='no', xmlstyle='attribute') 

nsl = String.T() 

latitude = Float.T(optional=False) 

longitude = Float.T(optional=False) 

 

 

class StationMarkerList(Object): 

xmltagname = 'stationmarkerlist' 

stations = List.T(XMLStationMarker.T()) 

 

 

class MarkerLists(Object): 

xmltagname = 'markerlists' 

station_marker_list = StationMarkerList.T() 

event_marker_list = EventMarkerList.T()