29 #define SegyTxtHeaderLength 3200 30 #define SegyBinHeaderLength 400 31 #define SegyTrcHeaderLength 240 46 void clear() { clearText(); setLineStarts(); }
48 void setUserInfo(
const char*);
51 void setStartPos(
float);
54 void setText(
const char*);
62 static bool& info2D();
71 void putAt(
int,
int,
int,
const char*);
72 void getFrom(
int,
int,
int,
char*)
const;
85 void setInput(
const void*,
bool needswap=
false);
89 {
return formatBytes( format() ); }
91 {
return frmt == 3 ? 2 : (frmt == 8 ? 1 : 4); }
93 {
return f==1 || f==2 || f==3 || f==5 || f==8; }
96 int valueAt(
int bytenr);
97 void setValueAt(
int bytenr,
int);
99 {
return hdrDef()[idx]->getValue(buf_,needswap_); }
101 {
return hdrDef()[idx]->putValue(buf_,val); }
103 short format()
const {
return (
short) entryVal(EntryFmt()); }
105 float sampleRate(
bool isdpth)
const;
106 bool isInFeet()
const {
return entryVal(EntryMFeet()) == 2; }
107 int revision()
const;
108 bool isRev0()
const {
return revision() < 1; }
113 void guessIsSwapped();
116 void setFormat(
short i ) { setEntryVal(EntryFmt(),i); }
118 void setSampleRate(
float,
bool isdpth);
119 void setInFeet(
bool yn ) { setEntryVal(EntryMFeet(),yn?2:1); }
123 static const HdrDef& hdrDef();
124 unsigned char*
buf() {
return buf_; }
125 const unsigned char*
buf()
const {
return buf_; }
155 : buf_(0), mybuf_(false), hdef_(oth.hdef_)
159 TrcHeader& operator =(
const TrcHeader&);
161 static const HdrDef& hdrDef();
163 unsigned short nrSamples()
const;
170 float postScale(
int numbfmt)
const;
171 Coord getCoord(
bool rcv,
float extcoordsc)
const;
190 double getCoordScale(
float extcoordsc)
const;
226 {
return hdrDef()[idx]->getValue(buf_,needswap_); }
228 {
return hdrDef()[idx]->putValue(buf_,val); }
#define mExpClass(module)
Definition: commondefs.h:160
Summary for a Seismic object.
Definition: segydirectdef.h:23
OD class for stream write common access to the user log file, or std::cout in batch progs...
Definition: od_ostream.h:26
A cartesian coordinate in 2D space.
Definition: coord.h:25
Definition: coordsystem.h:31
OD class for stream read.
Definition: od_istream.h:24
byte-level data characteristics of stored data.
Definition: datachar.h:37
Definition: segyhdrdef.h:85
Information for a seismic trace, AKA trace header info.
Definition: seisinfo.h:27
#define SegyBinHeaderLength
Definition: segyhdr.h:30
OD::String with its own variable length buffer. The buffer has a guaranteed minimum size...
Definition: bufstring.h:40
#define SegyTxtHeaderLength
Definition: segyhdr.h:29
Keys that should be used with od_process_segyio.cc.
Definition: segybatchio.h:22