| CDULabTemplate Method |
Makes a default template from a lab assay file.
Available since Oasis montaj version: 5.0.0
License: Available to anyone.
Namespace: Geosoft.Desktop.GXNetAssembly: geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll)
Notes
The template can be used to import the file using
sImportBIN_DU.
The first column is assumed to be the sample number.
If the unit label line is the same as the column label
line, column labels are assummed to be followed by
unit labels using the format "Au-ppm", "Au ppm" or
"Au(ppm)".
The number of channels is determined from the number of
columns in the data channel. If there are more column
labels or unit labels, the last labels are assumed to
be correct. If there are fewer line labels, default
labels "Col_n", where n is the column number, will be
created and no unit labels will be defined.
Syntax public static void LabTemplate(
string str1,
string str2,
int i3,
string str4,
int i5,
int i6,
int i7,
int i8,
int i9
)
Public Shared Sub LabTemplate (
str1 As String,
str2 As String,
i3 As Integer,
str4 As String,
i5 As Integer,
i6 As Integer,
i7 As Integer,
i8 As Integer,
i9 As Integer
)
public:
static void LabTemplate(
String^ str1,
String^ str2,
int i3,
String^ str4,
int i5,
int i6,
int i7,
int i8,
int i9
)
static member LabTemplate :
str1 : string *
str2 : string *
i3 : int *
str4 : string *
i5 : int *
i6 : int *
i7 : int *
i8 : int *
i9 : int -> unit
Parameters
- str1
- Type: SystemString
data file name - str2
- Type: SystemString
new template name - i3
- Type: SystemInt32
See DU_LAB_TYPEConstant - str4
- Type: SystemString
delimiter string - i5
- Type: SystemInt32
Offset to column labels line (0 for first line) - i6
- Type: SystemInt32
Offset to unit labels line, -1 if none - i7
- Type: SystemInt32
Offset to first line that contains data - i8
- Type: SystemInt32
Sample channel element type, recommend -10 for 10-character ASCII, or GS_LONG for numbers. - i9
- Type: SystemInt32
Default channel element type, recommend GS_FLOAT
See Also