Crewes Seismic I/O Library File Index. Function Documentation. Functions to access seimic header definitions, страница 3

#include "seisioHdrDefn.h"

#include "seisioFileHdr.h"

Functions

·  int seisio_open (const char *filename, const char *readWriteMode, int seisioHdrDefnID)

Opens a SEG-Y file.

·  int seisio_close (int id)

Closes a SEG-Y file.

·  int seisio_getNumTrcs (int id)

Gets the number of traces in the file, else -1 if unable to determine.

·  int seisio_getDataFmt (int id)

Gets the data format of a SEG-Y file.

·  int seisio_setDataFmt (int id, int dataFmt)

Sets the data format for a new or existing SEG-Y file.

·  int seisio_getTrcLength (int id, int trcNum)

Gets the number bytes (not samples) per trace for the specified trace.

·  int seisio_setTrcLengthFmt (int id, int fmt)

Sets the file to be fixed-trace-length or variable-trace-length.

·  int seisio_getNSamp (int id, int trcNum)

Gets the number of data samples per trace for the given trace.

·  int seisio_getMaxNSamp (int id)

Gets the maximum number of samples per trace in a file.

·  int seisio_writeTrcI2 (int id, const int trcNum, const int nSamp, char *trcHdr, int16 *trcData)

Writes a trace of 2-byte integer data and an associated trace header to a file.

·  int seisio_writeTrcI4 (int id, const int trcNum, const int nSamp, char *trcHdr, int32 *trcData)

Writes a trace of 4-byte integer data and an associated trace header to a file.

·  int seisio_writeTrcF4IEEE (int id, const int trcNum, const int nSamp, char *trcHdr, float *trcData)

Writes a trace of 4-byte IEEE floating point data and an associated trace header to a file.

·  int seisio_writeTrcF4IBM (int id, const int trcNum, const int nSamp, char *trcHdr, float *trcData)

Writes a trace of 4-byte IBM floating point data and an associated trace header to a file.

·  int seisio_readTrcI2 (int id, const int trcNum, char* trcHdr, int16 *trcData)

Reads a trace of SEG-Y data an its associated trace header from a file.

·  int seisio_readTrcI4 (int id, const int trcNum, char* trcHdr, int32 *trcData)

Reads a trace of SEG-Y data an its associated trace header from a file.

·  int seisio_readTrcF4 (int id, const int trcNum, char* trcHdr, float *trcData)

Reads a trace of SEG-Y data an its associated trace header from a file.

·  int seisio_writeFileHdr (int id, char *fileHdr)

Writes the file header to a SEG-Y file.

·  int seisio_writeFileTextHdr (int id, char *fileTextHdr)

Writes the text portion of file header to a SEG-Y file.

·  int seisio_writeFileDataHdr (int id, char *fileDataHdr)

Writes a file data header to a SEG-Y file.

·  int seisio_readFileHdr (int id, char *fileHdr)

Reads the entire file header from a SEG-Y file - both the text (EBCDIC) and data (binary) portions.

·  int seisio_readFileTextHdr (int id, char *fileTextHdr)

Reads the text header from a SEG-Y file.

·  int seisio_readFileDataHdr (int id, char *fileDataHdr)

Reads the data portion of the file header of a SEG-Y file.

·  int seisio_buildVarTrcLength (int id)

Builds a table which allow random access to variable-trace-length SEG-Y files.

·  long seisio_getTrcPos (int id, int trcNum)

Gets the byte-position of the start of a trace in a Seismic file.

·  int seisio_getHdrDefnID (int id)

Gets the header definition object id associated with this seisio file object.

·  int seisio_getNSampFixed (int id)

Gets the number of samples per trace from fixed-trace-length files.

Detailed Description

seisio File object.

Function Documentation

int seisio_buildVarTrcLength (int id)

Builds a table which allow random access to variable-trace-length SEG-Y files.

Scans the entire file and builds an array of trace lengths. This array contains one element for each trace in the file. This array is stored in the seisioFile object for use by other routines.

Parameters:

id   seisio file identification number