DATRW++ library: seismic data I/O with multiple formats

◆ counit

short datrw::su::TraceHeaderStruct::counit

Coordinate units (see details).

Coordinate units: (for previous 4 entries and for the 7 entries before scalel).

  • 1 = Length (meters or feet)
  • 2 = Seconds of arc
  • 3 = Decimal degrees
  • 4 = Degrees, minutes, seconds (DMS)

In case 2, the X values are longitude and the Y values are latitude, a positive value designates the number of seconds east of Greenwich or north of the equator.

In case 4,

  • to encode +-DDDMMSS: counit = +-DDD*10^4 + MM*10^2 + SS, with scalco = 1.
  • To encode +-DDDMMSS.ss: counit = +-DDD*10^6 + MM*10^4 + SS*10^2 with scalco = -100.

Definition at line 211 of file suheaderstruct.h.

Referenced by datrw::su::SUheader::info(), datrw::su::SUheader::setdefaults(), and datrw::su::SUheader::srce().