Grid File Utilities

Function

This command has many functions to modify grid files. The modifications can be done manually and in a batch mode using the grid macros. To modify manually, start by picking the Select Grid(s) button. There is another option to use inclusion and exclusion polylines. With this option active, the program will prompt for inclusion and exclusion polylines when a grid action is started. Only grid cells inside the inclusion polylines will be modified. Grid cells inside the exclusion polylines will not be modified. If no inclusion and exclusion polylines are selected, then the entire grid will be modified. Each function is described below.




 


Import from ASCII File creates a grid file from X Y Z data in any text file. There does not need to be a current grid file loaded since this routine will create a grid file. The text file should consist of one X Y Z coordinate per row with the first coordinate being the lower left grid corner and the last coordinate as the upper right grid corner. There are options for space or comma separated coordinates and for the order of the coordinates as either row (left to right) or column (bottom to top). The prompting will be as follows:
Separation type [<Space>/Comma/FixedWidth]?
Column number for X coordinate <1>:
Column number for Y coordinate <2>:
Column number for Z value <3>:











The Macro Command Recorder allows you to store the grid manipulation steps to a (.GFU) file. The macro can be recalled with the LOAD button to re-run the steps. The Record button will prompt for a macro file name to create. Then start choosing grid action buttons and each grid file function will be stored to this file. Each grid file in the script is represented as a variable name such as A or B or COALTHK. The current grid file that is being modified is specified in the Current Variable edit box.

When recording a step that involves another grid file, there are three options for storing this grid into the script. Use Grid Variable will use the grid assigned to the Grid Variable Name. Prompt for Grid File Name will bring up a grid file selection dialog each time the macro is run. Store the Grid File Name will save the specific grid file name into the macro.

To start the recording process, choose Record. Then go through the functions. Each will appear in the macro window. When done recording, choose Stop. The Append will add on to the end of an existing GFU file. Load will recall a save GFU file. Run will execute the Macro, and Edit will bring the text editor up for editing the GFU file. If Copy, Paste, Search and Replace are useful tools here. Sometimes it helps to record a function once, then copy and paste it many times while using the Search and Replace function to change grid file names etc.

Pulldown Menu Location: Surface
Keyboard Command: GFU
Prerequisite: Make a grid (.GRD) file with the Make 3D Grid File command.
File Name: \lsp\makegrid.arx