⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 hdrpkge.su.lib

📁 su 的源代码库
💻 LIB
字号:
HDRPKGE - routines to access the SEGY header via the hdr structure. gethval		get a trace header word by indexputhval		put a trace header word by indexgetbhval	get a binary header word by indexputbhval	put a binary header word by indexgethdval	get a trace header word by nameputhdval	put a trace header word by namehdtype		get the data type of a trace header word by namegetkey		get the name of a trace header word from its indexgetindex	get the index of a trace header word from the nameswaphval	swap the trace header words by indexswapbhval	swap the binary header words by indexgettapehval	get a tape trace header word by indexputtapehval	put a tape trace header word by indexgettapebhval	get a tape binary header word by indexputtapebhval	put a tape binary header word by indexprintheader	display non-null header field valuesFunction Prototypes:void gethval(const segy *tr, int index, Value *valp);void puthval(segy *tr, int index, Value *valp);void putbhval(bhed *bh, int index, Value *valp);void getbhval(const bhed *bh, int index, Value *valp);void gethdval(const segy *tr, char *key, Value *valp);void puthdval(segy *tr, char *key, Value *valp);char *hdtype(const char *key);char *getkey(const int index);int getindex(const char *key);void swaphval(segy *tr, int index);void swapbhval(bhed *bh, int index);void gettapehval(tapesegy *tapetr, int index, Value *valp);void puttapehval(tapesegy *tapetr, int index, Value *valp);void gettapebhval(tapebhed *tapetr, int index, Value *valp);void puttapebhval(tapebhed *tapetr, int index, Value *valp);void printheader(const segy *tp);Notes:This package includes only those routines that directly accessthe "hdr" or "bhdr" structures.  It does not include routinessuch as printfval, printftype, printfhead that use the routinesin this package to indirectly access these structures.Note that while gethdval and puthdval are more convenient to usethan gethval and puthval, they incur an inefficiency in thecommon case of iterating code over a set of traces with a fixedkey or keys.  In such cases, it is advisable to set the indexor indices outside the loop using getindex.swaphval:Byte-swapping is needed for converting SU data from big-endian to little-endian formats, and vice versa. The swap_.... subroutines are basedon subroutines provided by Jens Hartmann of the Institut fur Geophysikin Hamburg. These are found in .../cwp/lib/swapbyte.c.Authors: SEP: Einar Kjartansson	CWP: Jack Cohen, Shuki Ronenswaphval: CWP: John Stockwell

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -