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).
Returns a pointer to the data segment of the trace header.
Returns:
null for invalid id.
Parameters:
id identification number of the seismic trace header instance to access
Creates a new seismic trace header object instance.
Parameters:
seisioHdrDefnID identification number of an open seimic header defnition instance
Returns:
id of new seismic trace header object.
Put a value (float) into the data segment.
Returns non-zero on failure (see seisio.h for error definitions). Put fails if the corresponding data type is not defined in the seismic header definition at the requested byte.
Arguments: id identification number of the seismic trace header instance to access hdrName name of the header to access value value to place in the header
Put a value (int16) into the data segment.
Put 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 value to place in the header
Returns:
non-zero on failure (see seisio.h for error definitions).
Put a value (int32) into the data segment.
Returns non-zero on failure (see seisio.h for error definitions). Put fails if the corresponding data type is not defined in the seismic header definition at the requested byte.
Arguments: id identification number of the seismic trace header instance to access hdrName name of the header to access value value to place in the header
Sets the trace header from an array of chars (length must be 240).
The header should be 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 trace header source
seisio Utilities - don't operate on any seisio objects.
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "seisio.h"
#include "seisioHdrDefn.h"
· int seisioUtl_getEndian (void)
Gets the processor's native byte ordering (endian-ness).
· char* seisioUtl_getErrorStr (int errNum)
Gets the error message text associated with a seisio error number.
· int16 seisioUtl_reverseBytes_int16 (int16 arg)
Reverses the two bytes in a 16 bit integer.
· int32 seisioUtl_reverseBytes_int32 (int32 arg)
Reverses the four bytes in a 32 bit integer.
· float seisioUtl_reverseBytes_float (float arg)
Reverse the four bytes in a 32 bit floating point number.
· void seisioUtl_ieeeflt32_ibmflt32 (float *in, float *out, int n)
Converts a 32 bit IEEE floating point number to 32 bit IBM floating point format.
· void seisioUtl_ibmflt32_ieeeflt32 (float *in, float *out, int n)
Converts a 32 bit IBM floating point number to 32 bit IEEE floating point format.
· void seisioUtl_gain32_flt32 (int32 *i, float*o, int n)
Converts 32 bit gain/value number to 32 bit floating-point number.
· void seisioUtl_ascii_ebcdic (const char *input, char *output, int n)
Уважаемый посетитель!
Чтобы распечатать файл, скачайте его (в формате Word).
Ссылка на скачивание - внизу страницы.