SEG-Y Seismic Data Log .SGY, .SEGY 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

SEGY

Segy_ForceIBM

0, 1

0 = Do not force an assumption that the data is in IBM 360 floating-point format.

1 = Do force IBM 360 floating point format.

Segy_ForceIEEE

0, 1

0 = Do not force an assumption that the data is in IEEE floating-point format.

1 = Do force IEEE floating-point format.

Segy_ForceINT16

0, 1

0 = Do not force an assumption that the data is in 16-bit integer format.

1 = Do force 16-bit integer format.

Segy_ForceINT32

0, 1

0 = Do not force an assumption that the data is in 32-bit integer format.

1 = Do force 32-bit integer format.

Segy_ForceINT64

0, 1

0 = Do not force an assumption that the data is in 64-bit integer format.

1 = Do force 64-bit integer format.

Segy_ForceINT8

0, 1

0 = Do not force an assumption that the data is in 8-bit integer format.

1 = Do force 8-bit integer format.

Segy_LittleEnding

0, 1

0 = Do not force an assumption that the data is in little endian format.

1 = Do force little endian format.

Segy_NoBinaryReelHeader

0, 1

0 = Data has a binary header.

1 = Data does not have a binary header.

Segy_NoDisplayReelHeader

0, 1

0 = File has a display reel header.

1 = File does not have a display reel header.

Segy_PassFormat

0, 1, 2

0 = A pointset. See "Segy_XCoordType", "Segy_YCoordType", "Segy_ZCoordType".

1 = 2D lattice.

2 = 1 D lattice.

Segy_XCoordType

0, 1, 2, 3, 4

If Segy_Passformat = 0, specifies which data to use for X coords of pointset.

0=Sample value

1=Trace number

2=Relative sample number

3=Absolute sample number

4=Zero

Segy_YCoordType

0, 1, 2, 3, 4

If Segy_Passformat = 0, specifies which data to use for y coords of pointset.

0=Sample value

1=Trace number

2=Relative sample number

3=Absolute sample number

4=Zero

Segy_ZCoordType

0, 1, 2, 3, 4

If Segy_Passformat = 0, specifies which data to use for z coords of pointset.

0=Sample value

1=Trace number

2=Relative sample number

3=Absolute sample number

4=Zero

 

Example

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

 

CommandApi.Construct("Import")

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

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

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

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

  CommandApi.Option("Options", "Segy_ForceIBM=0;Segy_ForceIEEE=0;Segy_ForceINT16=0;Segy_ForceINT32=0;Segy_ForceINT8=0;Segy_LittleEndian=0;Segy_NoBinaryReelHeader=0;Segy_NoDisplayReelHeader=0;Segy_PassFormat=1;Segy_XCoordType=0;Segy_YCoordType=0;Segy_ZCoordType=0")

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

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

CommandApi.Do()

 

Used by: Import

 

 

See Also

Automation Model