Geosoft Oasis Montaj 7.0 Quick Start Manual page 102

Geophysical data processing quick start guide
Table of Contents

Advertisement

96 Appendix 2: Displaying Data Formats
#define GS_LONG
#define GS_FLOAT
#define GS_DOUBLE
// A string type is indicated by the negative string length.
example,
// a 10 byte string would be type -10.
// terminated.
// --- dummy values ---
#define GS_U1DM
#define GS_S1DM
#define GS_U2DM
#define GS_S2DM
#define GS_S4DM
#define GS_R8DM
// --- 4-byte float dummies require a variable to prevent compiler
problems ---
#ifndef GS_R4DM
float GBN_r4dm = (float) GS_R8DM
#define GS_R4DM
#endif
// --- display formats ---
#define GSF_NORMAL
#define GSF_EXP
(1.2E+23)
#define GSF_TIME
#define GSF_DATE
#define GSF_GGRAPH
// --- end of defines ---
#endif
// --- simple channel record ---
typedef struct {char
case tolerant,
// NULL terminated
/ ---------------------------------------------------------------
/ If the channel does not already exist, the following 4
parameters
// are used to create the Oasis montaj channel structure.
channel
// exists, this information is ignored.
// --------------------------------------------------------------
long
long
long
long
} GBN_ChanRec;
// ---
Array channel record for array elements ---
typedef struct {
char
// --------------------------------------------------------------
// If the channel does not already exist, the following 5
parameters
// are used to create the Oasis montaj channel structure.
channel
// exists, this information is ignored.
// --------------------------------------------------------------
long
long
long
long
long
} GBN_ArrayChanRec;
// --- line record ---
3
4
5
(char
(signed char
(unsigned short)
(short
(long
(double
(GBN_r4dum)
0
1
2
3
4
szName[64];
lChannelType;
lDisplayFormat;
lDisplayWidth;
lDisplayDecimals;
// record type <01>
szName[64];
lChannelType;
lArrayDepth;
lDisplayFormat;
lDisplayWidth;
lDisplayDecimals;
// record type <04>
// signed 4-byte integer
// 4-byte floating point
// 8-byte floating point
String data should be NULL
)
255U
)
-127
65535U
)
-32767
)
-2147483647L
)
-1.0E32
// Normal decimal number format
// Exponential floating point
// Time (HH:MM:SS.SSSS)
// Date (YYYY/MM/DD)
// Geographical (DEG.MM.SS.SSS)
// channel data type, one of GS_?
// one of GSF_?
// display width in characters
// digits after decimal place
// channel name, case tolerant,
// NULL terminated
// channel data type, one of GS_?
// number of samples per element
// one of GSF_?
// display width in characters
// digits after decimal place
For
// channel name,
If the
If the

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

Oasis montaj 7.0 viewer

Table of Contents