RockWorks | ModOps | Grid | Math | Grid & Constant
This program performs arithmetical operations with the node Z-values in a single grid model (.RwGrd file) and a constant.
Examples: You might add or subtract a constant to/from each node in a grid file representing surface elevations to correct for a measuring error. A grid file with nodes representing elevations in meters could be converted to feet by multiplying by a constant conversion factor.
Menu Options
Step-by-Step Summary
- Options
- Grid A (Input): Click here to browse for the name of the existing grid file (.RwGrd file) that the program is to read and manipulate.
- Constant: Enter the real number value to be added to, subtracted from, multiplied to, or divided into each node in the input grid file.
- Grid B (Output): Click here to type in the name to assign to the new grid file that the program will create, which results from the grid (+ - * or /) constant operation.
- Type of Operation
- Add: B = A + Constant: Each node in the grid model is added to the constant value, and the resulting sum is stored in the corresponding node in the output grid.
- Subtract: B = A - Constant: The specified constant value is subtracted from each node value in the source grid model, and the difference is stored for the corresponding node in the output file.
- Subtract: B = Constant - A: Each node value in the source grid model is subtracted from the specified constant, and the difference is stored in the corresponding node in the output file.
- Multiply: B = A x Constant: Each node in the input grid model is multiplied by the defined constant, with the product stored for each node in the output grid.
- Divide: B = A / Constant: Each source grid node is divided by the defined constant value, and the result is stored for each node in the output model.
- Divide: B = Constant / A: Each node in the source grid is divided into the constant value, and the result is stored for each corresponding node in the output grid.
- 2D Grid Map
Check this box to display the output grid as a 2D map at this time.
Click this tab to set up the 2D map layers (bitmap, symbols, labels, line contours, color-filled contours, labeled cells, map border, etc.).
- 3D Grid Diagram
Check this box to display the output grid as a 3D surface at this time.
Click this tab to set up the 3D map layers (surface colors, images, reference cage, etc.).
! You can request both a 2D and 3D representation of the grid model.
- Select the ModOps | Grid | Math | Grid & Constant menu option.
- Enter the requested menu settings, described above.
- Click the Process button to continue.
The program will load the input grid file, perform the requested operation on each of the grid node Z-values with the specified constant, and store the resulting grid file on disk under the output file name you selected.
The requested diagram(s) will be displayed in a RockPlot2D tab and/or RockPlot3D tab in the Options window.
- You can adjust any of the settings in the Options window and then click the Process button again to regenerate the diagram(s).
- View / save / manipulate / export / print the diagram in the RockPlot2D or RockPlot3D window.
Back to Grid Menu Summary
RockWare home page