25 #define SegyTxtHeaderLength 3200 26 #define SegyBinHeaderLength 400 27 #define SegyTrcHeaderLength 240 42 void clear() { clearText(); setLineStarts(); }
44 void setUserInfo(
const char*);
46 void setStartPos(
float);
49 void setText(
const char*);
57 static bool& info2D();
66 void putAt(
int,
int,
int,
const char*);
67 void getFrom(
int,
int,
int,
char*)
const;
80 void setInput(
const void*,
bool needswap=
false);
84 {
return formatBytes( format() ); }
86 {
return frmt == 3 ? 2 : (frmt == 8 ? 1 : 4); }
88 {
return f==1 || f==2 || f==3 || f==5 || f==8; }
91 int valueAt(
int bytenr);
92 void setValueAt(
int bytenr,
int);
94 {
return hdrDef()[idx]->getValue(buf_,needswap_); }
96 {
return hdrDef()[idx]->putValue(buf_,val); }
98 short format()
const {
return (
short) entryVal(EntryFmt()); }
99 int nrSamples()
const {
return entryVal(EntryNs()); }
100 float sampleRate(
bool isdpth)
const;
101 bool isInFeet()
const {
return entryVal(EntryMFeet()) == 2; }
102 int revision()
const;
103 bool isRev0()
const {
return revision() < 1; }
108 void guessIsSwapped();
111 void setFormat(
short i ) { setEntryVal(EntryFmt(),i); }
113 void setSampleRate(
float,
bool isdpth);
114 void setInFeet(
bool yn ) { setEntryVal(EntryMFeet(),yn?2:1); }
118 static const HdrDef& hdrDef();
119 unsigned char*
buf() {
return buf_; }
120 const unsigned char*
buf()
const {
return buf_; }
150 : buf_(0), mybuf_(false), hdef_(oth.hdef_)
154 TrcHeader& operator =(
const TrcHeader&);
156 static const HdrDef& hdrDef();
158 unsigned short nrSamples()
const;
165 float postScale(
int numbfmt)
const;
166 Coord getCoord(
bool rcv,
float extcoordsc)
const;
185 double getCoordScale(
float extcoordsc)
const;
221 {
return hdrDef()[idx]->getValue(buf_,needswap_); }
223 {
return hdrDef()[idx]->putValue(buf_,val); }
#define mExpClass(module)
Definition: commondefs.h:157
Seismics.
Definition: segydirectdef.h:20
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:25
OD class for stream read.
Definition: od_istream.h:23
byte-level data characteristics of stored data.
Definition: datachar.h:35
Definition: segyhdrdef.h:82
Information for a seismic trace, AKA trace header info.
Definition: seisinfo.h:24
#define SegyBinHeaderLength
Definition: segyhdr.h:26
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:38
#define SegyTxtHeaderLength
Definition: segyhdr.h:25
Keys that should be used with od_process_segyio.cc.
Definition: segybatchio.h:18
2D point or vector class.
Definition: commontypes.h:58