Click or drag to resize
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.GXNet
Assembly: 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
)

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