Returns the local dip for a given cell of a surface. In order to obtain a more stable dip, the values for the dips are averaged over a specified number of cells in each direction (window parameter). Because the returned values can be quite small, be sure to output the results to as amplitude. Note that "dip" computations are actually a measurement of the magnitude of change between data points. So you can use the "dip" function to create a magnitude of change surface for any input surface.
You can create dip maps using a 2 cell default for averaging directly from the WinPICS map window. Use PICScript to compute dip if want to adjust averaging or if you want to use dip as a part of a more complex script.
This is a stand alone surface function. Therefore it can not be used inside a function block (func { }). The results of a function block or other surface function can be used as input to the dip function. Similarly, the results of the dip function can be stored in a temporary surface variable and the variable can be used in another function. See Surfacetemp.
surfacein Kinshu_T1 from time as structure_grid;
output amp;
//GridScriptMode
amp = dip (structure_grid,2);
Output to the amplitude field of the database, the dip of structure_grid. Average the results over 2 cells in each of four directions.