GridBlank
GridBlank is superceded by GridAssignNoData. Consider using GridAssignNoData instead. GridBlank has been retained for backward compatibility.
GridBlank assigns the NoData value to grid nodes inside or outside specified boundaries. Returns a Boolean. If the value is 'True', the grid was assigned the NoData value. If the value is 'False', the grid was not assigned any NoData values.
Syntax
object.GridBlank( InGrid, BlankFile, OutGrid, OutFmt )
Parameter |
Type |
Required/ Optional |
Default |
Description |
InGrid |
String |
Required |
|
This provides the path and file name of the input grid file. |
BlankFile |
String |
Optional |
"" |
This provides the path and file name of the input blanking file [.BLN] file. |
OutGrid |
String |
Required |
"" |
This provides the path and file name of the output grid file. |
OutFmt |
Optional |
|
This specifies the output grid format. |
Remarks
See Golden Software Blanking File Description for more information on BLN files used for BlankFile.
Example 1
This example demonstrates how to assign the NoData value to the middle of demogrid.grd and saves the grid as
dgrid1.grd.SurferApp.GridBlank(InGrid:= SurferApp.Path+"\Samples\demogrid.grd", _
NoData:= SurferApp.Path+"\Samples\demogrid.bln", _
OutGrid:="c:\temp\dgrid1.grd", OutFmt:=srfGridFmtS7)
Example 2
This script displays all the methods in the Application object.
Used by: Application object