FLAGSAMPDB

Use this to run the Flag Samples option as a separate executable from Vulcan.

This option provides a series of options that will result in flagging similar to the use of Geology > Sampling > Flag Samples.


Usage

flagsampdb.exe -P <SFF_specification_file> [database_file] [smp_file]
<> indicates a mandatory switch.
[ ] indicates an optional switch.

The last argument is optionally the .smp file.

Usage for block models

flagsampdb.exe -bm <database> <groups> <bm_name> <bm_variable> <flag_field> [smp_file][default_value]

<> indicates a mandatory switch.
[ ] indicates an optional switch.

Use -bm to flag samples via block model.

Where:

Option

Description

-bm

Activates block model flagging.

database

Refers to the Isis database to flag.

groups

Can be set to '*' to flag all groups.

bm_name

Refers to the name of the BMF file.

bm_variable

Refers to the field in the database that will store the results.

flag_field

Refers to the field in the database where the flagging results will be stored.

<default_value>

Optional argument where <default_value> is the value if samples in the database do not meet the flagging criteria.

<smp_file>

The sampling specification file that stores database field associations such as the drillhole id, x, y, z position (if using non-standard field names).

Usage for polygons

flagsampdb.exe -poly <database> <groups> <dgd_name> <layer_name> <object_name> <polygon_attribute> <backward_projection_value> <forward_projection_value> <projection_axis> <flag_field> [smp_file] [default_value]

<> indicates a mandatory switch.
[ ] indicates an optional switch.

Use -poly to flag samples via polygons.

Where:

Option

Description

-poly

Activates polygon flagging.

database

Refers to the Isis database that contains the fields to flag.

groups

Can be set to '*' to flag all groups.

dgd_name

Refers to the Design Database that contains the layer to be used for flagging.

layer_name

Refers to the layer in the design database.

object_name

Refers to the name of the object in the layer.

polygon_attribute

Can be set to "Colour", "Name", "Group, or "Feature".

backward_projection_value

Refers to the projection distance backward from polygon position.

forward_projection_value

Refers to the projection distance forward from polygon position.

projection_axis

Can be set to "X", "Y", or "Z".

flag_field

Refers to the field in the database where the flagging results will be stored.

<default_value>

Optional argument where <default_value> is the value if samples in the database do not meet the flagging criteria.

<smp_file>

The sampling specification file that stores database field associations such as the drillhole ID and the X, Y, and Z position (if using non-standard field names).

Usage for triangulations

flagsampdb.exe -tri <database> <groups> <triangulation> <inversion> <projection_axis> <database_field> <flag_value> [smp_file] [default_value]

<> indicates a mandatory switch.
[ ] indicates an optional switch.

Use -tri to flag samples via triangulations.

The last two arguments are optionally the .smp file (or blank) and the default value when no flagging match occurs. Projection axis is "X","Y", or "Z". Inversion is "None", "Partial", or "Complete". Use "*" for groups to use all groups.

Where:

Option

Description

-tri

Activates triangulation flagging.

database

Refers to the Isis database to flag.

groups

Can be set to '*' to flag all groups.

triangulation

Refers to the triangulation name with.00t extension.

inversion

Can be set to "None", "Complete", or "Partial".

projection_axis

Can be set to "X", "Y", or "Z".

database_field

Refers to the field in the database that will store the results.

flag_value

Refers to the value to assign if flagging criteria is met.

<default_value>

Optional argument where <default_value> is the value if samples in the database do not meet the flagging criteria.

<smp_file>

The sampling specification file that stores database field associations such as the drillhole id, x, y, z position (if using non-standard field names).


Examples:

flagsampdb -bm straight.st0.isis "*" LG_303020.bmf subdomain SUBDOM

flagsampdb -tri straight.st0.isis "*" flagtri.00t "Complete" Z SUBDOM 100000

flagsampdb -poly straight.st0.isis "*" dhole.dgd.isis FLAGPOLY RECT_1 Colour 50 50 Z SUBDOM