Hot-keys on this page

r m x p   toggle line displays

j k   next/prev highlighted chunk

0   (zero) top of page

1   (one) first highlighted chunk

1

2

3

4

5

6

7

8

9

10

11

12

13

14

15

16

17

18

19

20

21

22

# -*- coding: utf-8 -*- 

 

from obspy.xseed.blockette import Blockette 

from obspy.xseed.fields import Integer, VariableString 

 

 

class Blockette051(Blockette): 

    """ 

    Blockette 051: Station Comment Blockette. 

 

    Sample: 

    05100351992,001~1992,002~0740000000 

    """ 

 

    id = 51 

    name = "Station Comment" 

    fields = [ 

        VariableString(3, "Beginning effective time", 1, 22, 'T'), 

        VariableString(4, "End effective time", 1, 22, 'T', optional=True), 

        Integer(5, "Comment code key", 4, xpath=31), 

        Integer(6, "Comment level", 6, ignore=True) 

    ]