typedef struct {
XtPointer data;
XintSeismicKeyRec *key_info;
int ntrace;
int nsample;
float starting_time;
float sample_rate;
int data_type;
Boolean new_data_flag;
int data_format;
} XintSeismicDataRec;
where:
| Member | Description |
|---|---|
| data | Address of two dimensional (ntrace rows and nsample columns) array containing the trace data. |
| key_info | Pointer to a single dimensional array (ntrace elements) of keys associated with the traces. |
| ntrace | The number of traces in the data array. |
| nsample | The number of samples in each trace. |
| starting_time | The starting time in seconds of the trace data. |
| sample_rate | The sample rate in seconds (or feet or meters, etc.). |
| data_type | Specifies the type of trace data specified as XintTIME_DATA or XintDEPTH_DATA. |
| new_data_flag | Indicates whether the data array has changed and must be set to True or False before each call to XtSetValues. |
| data_format | Specifies the format of the data in the data array using XintFLOAT_DATA_FORMAT, for single precision floating point data, XintBYTE_DATA_FORMAT for signed byte data, XintINT_DATA_FORMAT for signed 32 bit integer data, and Xint16BIT_DATA_FORMAT for 16 bit signed integer data |
typedef struct {
long user_data;
int pkey;
int skey;
float pakey;
float sakey;
} XintSeismicKeyRec;
where
| Member | Description |
|---|---|
| user_data | Optional field used for application defined data associated with the trace. |
| pkey | Primary key value. |
| skey | Secondary key value. |
| pakey | Primary annotation key value. |
| sakey | Secondary annotation key value. |
The keys pkey and skey can be used for selecting the traces. They will be used if resources XmNprimaryKeyName and XmNsecondaryKeyName are not NULL. If you need only one key for selecting the traces, set XmNprimaryKeyName to a non NULL value and XmNsecondaryKeyName to NULL, and assign a value to the pkey field of each trace in your dataset.
The keys pakey and sakey can be used to contain the values to display as annotation. As with the above mentioned pkey and skey, pakey and sakey need to be set only if resources XmNprimaryAnnotationName and XmNsecondaryAnnotationName are non NULL.