GridSlice
GridSlice computes cross sectional data through a grid surface. Returns a Boolean. It returns 'True' if the cross sectional data are generated successfully, else it returns 'False'.
Syntax
object.GridSlice( InGrid, BlankFile, OutBlankFile, OutDataFile, OutsideVal, BlankVal )
Parameter |
Type |
Required/ Optional |
Default |
Description |
InGrid |
String |
Required |
This provides the path and file name of the input grid file. |
|
BlankFile |
String |
Required |
This provides the path and file name of the blanking file [.BLN]. A BLN file is required, see Remarks |
|
OutBlankFile |
String |
Optional |
"" |
This provides the path and file name of the output blanking file. |
OutDataFile |
String |
Optional |
This provides the path and file name of the output data file. |
|
OutsideVal |
Variant |
Optional |
This specifies the numeric value to which the values outside grid are set to. |
|
BlankVal |
Variant |
Optional |
This specifies the numeric value to which the portions of the cross section corresponding to NoData grid nodes are set to. |
Remarks
A Golden Software Blanking File *.BLN is required for the GridSlice method. Any vector file format can be used in the Surfer user interface (UI). Consider importing your vector data file and using Export2 to save it as a BLN file for use with GridSlice.
See Golden Software Blanking File Description for more information on BLN files used for BlankFile. Golden Software's NoData value (BlankVal) is 1.70141e+038.
Example 1
This example demonstrates how to compute the cross section of demogrid.grd using demogrid.bln, saving the result as slice.dat.
SurferApp.GridSlice(InGrid:=SurferApp.Path+\Samples\demogrid.grd, _
NoDataFile:=SurferApp.Path+"\Samples\demogrid.bln", _
OutDataFile:="c:\temp\slice.dat", OutsideVal:=-8888, BlankVal:=-9999)
Example 2
This script displays all the methods in the Application object.
Used by: Application object