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

Get a value 4-byte (32 bit) floating point value from the trace header given a starting byte location.

·  int seisioTrcHdr_getHdr (int id, char **hdr)

Gets the trace header as an array of chars.

·  int seisioTrcHdr_setHdr (int id, char *hdr)

Sets the trace header from an array of chars (length must be 240).

·  char* seisioTrcHdr_getInternalData (int id)

Returns a pointer to the data segment of the trace header.

Detailed Description

seismic file trace header object.

Function Documentation

int seisioTrcHdr_free (int id)

Deallocates the corresponding seismic trace header definition instance.

Parameters:

id   identification number of the seismic trace header instance to free

Returns:

non-zero on error (see seisio.h for error definitions).

int seisioTrcHdr_getF4 (int id, const char * hdrName, float * hdrValue)

Get a value (float) from the data segment.

Get fails if the corresponding data type is not defined in the seismic header definition  at the requested byte.

Parameters:

id   identification number of the seismic trace header instance to access

hdrName   name of the header to access

value   output argument for value of the header

Returns:

non-zero on failure (see seisio.h for error definitions).

int seisioTrcHdr_getF4ByByte (int id, int byt, float * hdrValue)

Get a value 4-byte (32 bit) floating point value from the trace header given a starting byte location.

Get fails if the corresponding data type is not defined in the seismic header definition  at the requested byte.

Parameters:

id   identification number of the seismic file header instance to access

byt   byte number in trace header from which the value should be retrieved. Starts at 0.

hdrValue   output argument for value of the header

Returns:

non-zero on failure (see seisio.h for error definitions).

int seisioTrcHdr_getHdr (int id, char ** hdr)

Gets the trace header as an array of chars.

The header is formatted in big endian binary.

Returns:

non-zero on error (see seisio.h for error definitions).

Parameters:

id   identification number of the seismic trace header instance to access

hdr   pointer to trace header

int seisioTrcHdr_getI2 (int id, const char * hdrName, int16 * hdrValue)

Get a value (int16) from the data segment.

Returns non-zero on failure (see seisio.h for error definitions). Get fails if the corresponding data type is not defined in the seismic header definition  at the requested byte.

Parameters:

id   identification number of the seismic trace header instance to access

hdrName   name of the header to access

value   output argument for value of the header

int seisioTrcHdr_getI2ByByte (int id, int byt, int16 * hdrValue)

Get a value 2-byte (16 bit) integer value from the trace header given a starting byte location.

Get fails if the corresponding data type is not defined in the seismic header definition  at the requested byte.

Parameters:

id   identification number of the seismic file header instance to access

byt   byte number in trace header from which the value should be retrieved. Starts at 0.

hdrValue   output argument for value of the header

Returns:

non-zero on failure (see seisio.h for error definitions).

int seisioTrcHdr_getI4 (int id, const char * hdrName, int32 * hdrValue)

Get a value (int32) from the data segment.

Returns non-zero on failure (see seisio.h for error definitions). Get fails if the corresponding data type is not defined in the seismic header definition  at the requested byte.

Parameters:

id   identification number of the seismic trace header instance to access

hdrName   name of the header to access

value   output argument for value of the header

int seisioTrcHdr_getI4ByByte (int id, int byt, int32 * hdrValue)

Get a value 4-byte (32 bit) integer value from the trace header given a starting byte location.