 | CDULabTemplate Method |
Makes a default template from a lab assay file.
Namespace:
Geosoft.Desktop.GXNet
Assembly:
geosoft.desktop.gxnet (in geosoft.desktop.gxnet.dll) Version: 2024.2.0.25
Syntaxpublic static void LabTemplate(
string data,
string templ,
int type,
string delimit,
int name_off,
int unit_off,
int data_off,
int sample_type,
int data_type
)
public static void LabTemplate(
string data,
string templ,
int type,
string delimit,
int name_off,
int unit_off,
int data_off,
int sample_type,
int data_type
)
Public Shared Sub LabTemplate (
data As String,
templ As String,
type As Integer,
delimit As String,
name_off As Integer,
unit_off As Integer,
data_off As Integer,
sample_type As Integer,
data_type As Integer
)
Public Shared Sub LabTemplate (
data As String,
templ As String,
type As Integer,
delimit As String,
name_off As Integer,
unit_off As Integer,
data_off As Integer,
sample_type As Integer,
data_type As Integer
)
public:
static void LabTemplate(
String^ data,
String^ templ,
int type,
String^ delimit,
int name_off,
int unit_off,
int data_off,
int sample_type,
int data_type
)
public:
static void LabTemplate(
String^ data,
String^ templ,
int type,
String^ delimit,
int name_off,
int unit_off,
int data_off,
int sample_type,
int data_type
)
static member LabTemplate :
data : string *
templ : string *
type : int *
delimit : string *
name_off : int *
unit_off : int *
data_off : int *
sample_type : int *
data_type : int -> unit
static member LabTemplate :
data : string *
templ : string *
type : int *
delimit : string *
name_off : int *
unit_off : int *
data_off : int *
sample_type : int *
data_type : int -> unit
Parameters
- data
- Type: SystemString
Data file name - templ
- Type: SystemString
New template name - type
- Type: SystemInt32
<define>DU_LAB_TYPE</define> - delimit
- Type: SystemString
Delimiter string - name_off
- Type: SystemInt32
Offset to column labels line (0 for first line) - unit_off
- Type: SystemInt32
Offset to unit labels line, -1 if none - data_off
- Type: SystemInt32
Offset to first line that contains data - sample_type
- Type: SystemInt32
Sample channel element type, recommend -10 for 10-character ASCII, or <define>GS_LONG</define> for numbers. - data_type
- Type: SystemInt32
Default channel element type, recommend <define>GS_FLOAT</define>
Remarks
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.
See Also