DATRW++ library: seismic data I/O with multiple formats
datrw::mseed::SEED::Steim2Word Class Reference

#include <seedstructs.h>

Collaboration diagram for datrw::mseed::SEED::Steim2Word:

Public Types

enum  ESteim2Control { Fspecial =0, Fbyte =1, Fdnib1 =2, Fdnib2 =3 }
 
enum  ESteim2dnib { Fdnib00 =0, Fdnib01 =1, Fdnib10 =2, Fdnib11 =3 }
 

Public Member Functions

 Steim2Word (const ESteim2Control &c, const int &word)
 store control code and data word More...
 
int dnib () const
 return dnib More...
 
int nval () const
 return number of values in this word More...
 
int value (const int &i) const
 

Private Member Functions

int extract (const int &b, const int &p) const
 

Private Attributes

ESteim2Control Mctrl
 
int Mword
 

Detailed Description

a class to hold a four-byte word in a Steim 2 frame

A Steim 2 frame knows eight different types of data encoding:

  • c=00 special (like Steim 1)
  • c=01 four 1 Byte (8 Bit) differences (like Steim 1)
    - c=10 look for dnib (high order two bits) in data word
    • dnib=01 one 30-bit difference
    • dnib=10 two 15-bit differences
    • dnib=11 three 10-bit differences
  • c=11 look for dnib (high order two bits) in data word
    • dnib=00 five 6-bit differences
    • dnib=01 six 5-bit differences
    • dnib=10 seven 4-bit differences

Definition at line 415 of file seedstructs.h.


The documentation for this class was generated from the following files: