.LAS Import Automation Options

 

When the program is driven from an automation script, an options string can be specified in the script that acts as the import options dialogs do in the program. The string consists of comma-separated parameters, which specify the behavior of the various import options.

 

Parameter

Type

Description

Filter

string

LAS

CreateModule

1 or 0

If 1, create a new module. If 0, add to an existing module (use TargetName).

NullValue

Number

The null value to use in the logs.

OverwriteLogs

1 or 0

If 1, overwrite any logs with duplicate names. If 0, use unique naming to append logs.

SetWellTop

1 or 0

If 1, use the well top passed in the WellTop field. If 0, set the well top automatically if possible or leave undefined.

TargetName

string

The name of the existing module to add data to, used when CreateModule is 0.

WellName

string

The name of the well to create or the name of the existing well to add new data to.

WellTop

XYZ point

The optional top value to assign to a newly created well or to an existing well if the current top information is invalid.

Logs

string list

A comma delimited collection of all logs.

SelectedLogs

string list

A comma delimited collection of all logs to import.

 

Example

This example shows how to import a LAS file with the various options.

 

CommandApi.Construct("Import")

CommandApi.Option("GuiEnabled", "False")

CommandApi.Option("AutoConnect", "True")

CommandApi.Option("ClearOptions", "False")

CommandApi.Option("Path", "C:/Path/To/Import/file.las")

CommandApi.Option("Filter", "las")

CommandApi.Option ("CreateModule", "1")

CommandApi.Option ("NullValue", "15")

CommandApi.Option ("OverwriteLogs", "1")

CommandApi.Option ("SetWellTop", "1")

CommandApi.Option ("WellName", "New_Well")

CommandApi.Option ("WellTop","15,20,25")

CommandApi.Option ("SelectedLogs", "ILM, NPHI,RHOB,SP")

CommandApi.Option("PersistOptions", "True")

CommandApi.Do()

 

Used by: Import

 

 

See Also

Automation Model