Importing 3-D Lookup Table Data from a Text File

GoldSim allows you to directly import a text file representing a 3-D Lookup Table. The format for this text file is as follows:

   number of dimensions (must be 3) 

   the number of columns, the number of rows, number of layers

   column value 1, column value 2, …, column value n

   row value1, row value 2, …, row value n

   layer value1, layer value 2, …, layer value n

   dependent(row 1, column 1, layer 1), …, dependent(row 1,column n, layer 1)

   dependent(row 2, column 1, layer 1), …, dependent(row 2,column n, layer 1)

  

   dependent(row n, column 1, layer 1), …, dependent(row n, column n, layer 1)

   .
.
.

   dependent(row 1, column 1, layer n), …, dependent(row 1,column n, layer n)

   dependent(row 2, column 1, layer n), …, dependent(row 2,column n, layer n)

  

   dependent(row n, column 1, layer n), …, dependent(row n, column n, layer n)

The data in the file can be comma delimited or space delimited, and lines beginning with "!" are ignored.

To import the text file press the Import Table… button in the Edit 3-D Table dialog. You will be prompted for the name of the text file.

You can also import a text file representing a two-dimensional look-up table into a layer. To do this, you define a 2-D table in a text file and press the Import Layer… button. You will be prompted for the file to import. The data from the table overwrites the information in the current layer.

   Note:  In addition to importing from a text file into a Lookup Table directly from the Edit dialog, you can also link a text file to a Lookup Table, so that it is imported automatically when the file changes.

Related Topics…

Learn more about: