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

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

 

from obspy.xseed.blockette import Blockette 

from obspy.xseed.fields import Integer, VariableString 

 

 

class Blockette034(Blockette): 

    """ 

    Blockette 034: Units Abbreviations Blockette. 

 

    This blockette defines the units of measurement in a standard, repeatable 

    way. Mention each unit of measurement only once. 

 

    Sample: 

    0340044001M/S~Velocity in Meters Per Second~ 

    """ 

    id = 34 

    name = "Units Abbreviations" 

    fields = [ 

        Integer(3, "Unit lookup code", 3), 

        VariableString(4, "Unit name", 1, 20, 'UNP'), 

        VariableString(5, "Unit description", 0, 50, 'UNLPS') 

    ]