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

23

24

25

26

27

28

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

 

from obspy.xseed.blockette import Blockette 

from obspy.xseed.fields import Integer, FixedString, Loop 

 

 

class Blockette011(Blockette): 

    """ 

    Blockette 011: Volume Station Header Index Blockette. 

 

    This is the index to the Station Identifier Blockettes [50] that appear 

    later in the volume. This blockette refers to each station described in 

    the station header section. 

 

    Sample: 

    0110054004AAK  000003ANMO 000007ANTO 000010BJI  000012 

    """ 

 

    id = 11 

    name = "Volume Station Header Index" 

    fields = [ 

        Integer(3, "Number of stations", 3), 

        # REPEAT fields 4 — 5 for the Number of stations: 

        Loop("Station identifier", "Number of stations", [ 

            FixedString(4, "Station identifier code", 5), 

            Integer(5, "Sequence number of station header", 6, ignore=True) 

        ], repeat_title=True) 

    ]